11 #ifndef GI_GBP_FORWARDINGBEHAVIORALGROUPTOSUBNETSRSRC_HPP
12 #define GI_GBP_FORWARDINGBEHAVIORALGROUPTOSUBNETSRSRC_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
22 :
public opflex::modb::mointernal::MO
29 static const opflex::modb::class_id_t
CLASS_ID = 155;
37 return getObjectInstance().isSet(5079042ul, opflex::modb::PropertyInfo::ENUM8);
47 return (
const uint8_t)getObjectInstance().getUInt64(5079042ul);
56 const uint8_t
getRole(
const uint8_t defaultValue)
58 return getRole().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setUInt64(5079042ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(5079042ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(5079043ul, opflex::modb::PropertyInfo::REFERENCE);
103 return getObjectInstance().getReference(5079043ul).first;
114 return getObjectInstance().getReference(5079043ul).second;
149 getTLMutator().modify(getClassId(), getURI())->setReference(5079043ul, 152, uri);
171 const std::string& policySpaceName,
172 const std::string& gbpSubnetsName)
174 getTLMutator().modify(getClassId(), getURI())->setReference(5079043ul, 152, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpSubnets").addElement(gbpSubnetsName).build());
186 getTLMutator().modify(getClassId(), getURI())->unset(5079043ul, opflex::modb::PropertyInfo::REFERENCE, opflex::modb::PropertyInfo::SCALAR);
196 return getObjectInstance().isSet(5079041ul, opflex::modb::PropertyInfo::ENUM8);
206 return (
const uint8_t)getObjectInstance().getUInt64(5079041ul);
215 const uint8_t
getType(
const uint8_t defaultValue)
217 return getType().get_value_or(defaultValue);
230 getTLMutator().modify(getClassId(), getURI())->setUInt64(5079041ul, newValue);
242 getTLMutator().modify(getClassId(), getURI())->unset(5079041ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
257 static boost::optional<boost::shared_ptr<modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc> >
resolve(
258 opflex::ofcore::OFFramework& framework,
259 const opflex::modb::URI& uri)
261 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc>(framework,
CLASS_ID, uri);
275 static boost::optional<boost::shared_ptr<modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc> >
resolve(
276 const opflex::modb::URI& uri)
278 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
300 opflex::ofcore::OFFramework& framework,
301 const std::string& policySpaceName,
302 const std::string& gbpBridgeDomainName)
304 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpBridgeDomain").addElement(gbpBridgeDomainName).addElement(
"GbpForwardingBehavioralGroupToSubnetsRSrc").build());
325 const std::string& policySpaceName,
326 const std::string& gbpBridgeDomainName)
350 opflex::ofcore::OFFramework& framework,
351 const std::string& policySpaceName,
352 const std::string& gbpFloodDomainName)
354 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpFloodDomain").addElement(gbpFloodDomainName).addElement(
"GbpForwardingBehavioralGroupToSubnetsRSrc").build());
375 const std::string& policySpaceName,
376 const std::string& gbpFloodDomainName)
400 opflex::ofcore::OFFramework& framework,
401 const std::string& policySpaceName,
402 const std::string& gbpRoutingDomainName)
404 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpRoutingDomain").addElement(gbpRoutingDomainName).addElement(
"GbpForwardingBehavioralGroupToSubnetsRSrc").build());
425 const std::string& policySpaceName,
426 const std::string& gbpRoutingDomainName)
441 getTLMutator().remove(
CLASS_ID, getURI());
454 static void remove(opflex::ofcore::OFFramework& framework,
455 const opflex::modb::URI& uri)
457 MO::remove(framework,
CLASS_ID, uri);
470 static void remove(
const opflex::modb::URI& uri)
472 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
492 opflex::ofcore::OFFramework& framework,
493 const std::string& policySpaceName,
494 const std::string& gbpBridgeDomainName)
496 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpBridgeDomain").addElement(gbpBridgeDomainName).addElement(
"GbpForwardingBehavioralGroupToSubnetsRSrc").build());
516 const std::string& policySpaceName,
517 const std::string& gbpBridgeDomainName)
539 opflex::ofcore::OFFramework& framework,
540 const std::string& policySpaceName,
541 const std::string& gbpFloodDomainName)
543 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpFloodDomain").addElement(gbpFloodDomainName).addElement(
"GbpForwardingBehavioralGroupToSubnetsRSrc").build());
563 const std::string& policySpaceName,
564 const std::string& gbpFloodDomainName)
586 opflex::ofcore::OFFramework& framework,
587 const std::string& policySpaceName,
588 const std::string& gbpRoutingDomainName)
590 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpRoutingDomain").addElement(gbpRoutingDomainName).addElement(
"GbpForwardingBehavioralGroupToSubnetsRSrc").build());
610 const std::string& policySpaceName,
611 const std::string& gbpRoutingDomainName)
628 opflex::ofcore::OFFramework& framework,
629 opflex::modb::ObjectListener* listener)
631 opflex::modb::mointernal
632 ::MO::registerListener(framework, listener,
CLASS_ID);
647 opflex::modb::ObjectListener* listener)
659 opflex::ofcore::OFFramework& framework,
660 opflex::modb::ObjectListener* listener)
662 opflex::modb::mointernal
663 ::MO::unregisterListener(framework, listener,
CLASS_ID);
673 opflex::modb::ObjectListener* listener)
683 opflex::ofcore::OFFramework& framework,
684 const opflex::modb::URI& uri,
685 const boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
686 : MO(framework,
CLASS_ID, uri, oi) { }
691 #endif // GI_GBP_FORWARDINGBEHAVIORALGROUPTOSUBNETSRSRC_HPP
bool isRoleSet()
Check whether role has been set.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:35
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for ForwardingBehavioralGroupToSubnetsRSrc.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:29
ForwardingBehavioralGroupToSubnetsRSrc(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of ForwardingBehavioralGroupToSubnetsRSrc.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:682
bool isTargetSet()
Check whether target has been set.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:91
static boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolveUnderPolicyUniversePolicySpaceGbpFloodDomain(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the managed object store by const...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:349
static boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolveUnderPolicyUniversePolicySpaceGbpBridgeDomain(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the managed object store by const...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:299
static void registerListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:627
boost::optional< opflex::modb::URI > getTargetURI()
Get the value of targetURI if it has been set.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:111
modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc & setTargetSubnets(const std::string &policySpaceName, const std::string &gbpSubnetsName)
Set the reference to point to an instance of Subnets in the currently-active mutator by constructing ...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:170
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:658
static void removeUnderPolicyUniversePolicySpaceGbpRoutingDomain(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName)
Remove the ForwardingBehavioralGroupToSubnetsRSrc object with the specified path elements from the ma...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:585
modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc & unsetTarget()
Unset target in the currently-active mutator.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:184
static boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the managed object store using th...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:275
static boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolveUnderPolicyUniversePolicySpaceGbpBridgeDomain(const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the default managed object store ...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:324
static void removeUnderPolicyUniversePolicySpaceGbpRoutingDomain(const std::string &policySpaceName, const std::string &gbpRoutingDomainName)
Remove the ForwardingBehavioralGroupToSubnetsRSrc object with the specified path elements from the ma...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:609
static boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolveUnderPolicyUniversePolicySpaceGbpFloodDomain(const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the default managed object store ...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:374
modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:228
static void registerListener(opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class with the default framework...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:646
boost::optional< const uint8_t > getRole()
Get the value of role if it has been set.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:44
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:215
modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc & unsetRole()
Unset role in the currently-active mutator.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:81
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:203
static void removeUnderPolicyUniversePolicySpaceGbpFloodDomain(const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Remove the ForwardingBehavioralGroupToSubnetsRSrc object with the specified path elements from the ma...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:562
boost::optional< opflex::modb::class_id_t > getTargetClass()
Get the value of targetClass if it has been set.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:100
static void removeUnderPolicyUniversePolicySpaceGbpFloodDomain(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Remove the ForwardingBehavioralGroupToSubnetsRSrc object with the specified path elements from the ma...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:538
static boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolveUnderPolicyUniversePolicySpaceGbpRoutingDomain(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the managed object store by const...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:399
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:21
static void removeUnderPolicyUniversePolicySpaceGbpBridgeDomain(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Remove the ForwardingBehavioralGroupToSubnetsRSrc object with the specified path elements from the ma...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:491
opflex::modb::URI getTargetURI(opflex::modb::URI defaultValue)
Get the value of targetURI if set, otherwise the value of default passed in.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:133
static boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolveUnderPolicyUniversePolicySpaceGbpRoutingDomain(const std::string &policySpaceName, const std::string &gbpRoutingDomainName)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the default managed object store ...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:424
modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc & setTargetSubnets(const opflex::modb::URI &uri)
Set the reference to point to an instance of Subnets with the specified URI.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:147
bool isTypeSet()
Check whether type has been set.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:194
opflex::modb::class_id_t getTargetClass(opflex::modb::class_id_t defaultValue)
Get the value of targetClass if set, otherwise the value of default passed in.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:123
static boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the managed object store...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:257
const uint8_t getRole(const uint8_t defaultValue)
Get the value of role if set, otherwise the value of default passed in.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:56
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:672
modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc & unsetType()
Unset type in the currently-active mutator.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:240
static void removeUnderPolicyUniversePolicySpaceGbpBridgeDomain(const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Remove the ForwardingBehavioralGroupToSubnetsRSrc object with the specified path elements from the ma...
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:515
modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc & setRole(const uint8_t newValue)
Set role to the specified value in the currently-active mutator.
Definition: ForwardingBehavioralGroupToSubnetsRSrc.hpp:69