11#ifndef GI_GBP_SUBNETS_HPP
12#define GI_GBP_SUBNETS_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbp/EpGroupFromSubnetsRTgt.hpp"
24#include "modelgbp/gbp/RoutingDomainFromIntSubnetsRTgt.hpp"
28#include "modelgbp/gbp/Subnet.hpp"
32#include "modelgbp/gbp/ForwardingBehavioralGroupFromSubnetsRTgt.hpp"
36#include "modelgbp/gbp/SecGroupRuleFromRemoteAddressRTgt.hpp"
42 :
public opflex::modb::mointernal::MO
49 static const opflex::modb::class_id_t
CLASS_ID = 196;
64 boost::optional<const std::string&>
getName()
103 getTLMutator().modify(
getClassId(),
getURI())->unset(6422529ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
118 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnets> >
resolve(
120 const opflex::modb::URI&
uri)
136 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnets> >
resolve(
137 const opflex::modb::URI&
uri)
139 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::Subnets>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
160 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnets> >
resolve(
185 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnets> >
resolve(
248 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::EpGroupFromSubnetsRTgt>(
308 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::RoutingDomainFromIntSubnetsRTgt>(
368 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::Subnet>(
428 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::ForwardingBehavioralGroupFromSubnetsRTgt>(
488 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::SecGroupRuleFromRemoteAddressRTgt>(
516 const opflex::modb::URI&
uri)
533 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
596 opflex::modb::ObjectListener*
listener)
598 opflex::modb::mointernal
614 opflex::modb::ObjectListener*
listener)
627 opflex::modb::ObjectListener*
listener)
629 opflex::modb::mointernal
640 opflex::modb::ObjectListener*
listener)
651 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroupFromSubnetsRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpGroupFromSubnetsRTgt from the managed object store.
Definition EpGroupFromSubnetsRTgt.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ForwardingBehavioralGroupFromSubnetsRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ForwardingBehavioralGroupFromSubnetsRTgt from the managed object store.
Definition ForwardingBehavioralGroupFromSubnetsRTgt.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::RoutingDomainFromIntSubnetsRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RoutingDomainFromIntSubnetsRTgt from the managed object store.
Definition RoutingDomainFromIntSubnetsRTgt.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupRuleFromRemoteAddressRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SecGroupRuleFromRemoteAddressRTgt from the managed object store.
Definition SecGroupRuleFromRemoteAddressRTgt.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnet > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Subnet from the managed object store.
Definition Subnet.hpp:434
Definition Subnets.hpp:43
OF_SHARED_PTR< modelgbp::gbp::Subnet > addGbpSubnet(const std::string &gbpSubnetName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Subnets.hpp:341
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Subnets.
Definition Subnets.hpp:49
bool isNameSet()
Check whether name has been set.
Definition Subnets.hpp:55
void resolveGbpSubnet(std::vector< OF_SHARED_PTR< modelgbp::gbp::Subnet > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::Subnet.
Definition Subnets.hpp:366
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 Subnets.hpp:594
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnets > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpSubnetsName)
Retrieve an instance of Subnets from the managed object store by constructing its URI from the path e...
Definition Subnets.hpp:160
boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroupRuleFromRemoteAddressRTgt > > resolveGbpSecGroupRuleFromRemoteAddressRTgt(const std::string &gbpSecGroupRuleFromRemoteAddressRTgtSource)
Retrieve the child object with the specified naming properties.
Definition Subnets.hpp:443
OF_SHARED_PTR< modelgbp::gbp::EpGroupFromSubnetsRTgt > addGbpEpGroupFromSubnetsRTgt(const std::string &gbpEpGroupFromSubnetsRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Subnets.hpp:221
modelgbp::gbp::Subnets & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition Subnets.hpp:89
void remove()
Remove this instance using the currently-active mutator.
Definition Subnets.hpp:500
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Subnets object with the specified URI using the currently-active mutator.
Definition Subnets.hpp:515
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition Subnets.hpp:639
void resolveGbpEpGroupFromSubnetsRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbp::EpGroupFromSubnetsRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::EpGroupFromSubnetsRTgt.
Definition Subnets.hpp:246
boost::optional< OF_SHARED_PTR< modelgbp::gbp::ForwardingBehavioralGroupFromSubnetsRTgt > > resolveGbpForwardingBehavioralGroupFromSubnetsRTgt(const std::string &gbpForwardingBehavioralGroupFromSubnetsRTgtSource)
Retrieve the child object with the specified naming properties.
Definition Subnets.hpp:383
boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnet > > resolveGbpSubnet(const std::string &gbpSubnetName)
Retrieve the child object with the specified naming properties.
Definition Subnets.hpp:323
OF_SHARED_PTR< modelgbp::gbp::RoutingDomainFromIntSubnetsRTgt > addGbpRoutingDomainFromIntSubnetsRTgt(const std::string &gbpRoutingDomainFromIntSubnetsRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Subnets.hpp:281
static void remove(const opflex::modb::URI &uri)
Remove the Subnets object with the specified URI using the currently-active mutator and the default f...
Definition Subnets.hpp:531
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition Subnets.hpp:625
Subnets(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Subnets.
Definition Subnets.hpp:649
modelgbp::gbp::Subnets & unsetName()
Unset name in the currently-active mutator.
Definition Subnets.hpp:101
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpSubnetsName)
Remove the Subnets object with the specified path elements from the managed object store.
Definition Subnets.hpp:552
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition Subnets.hpp:76
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 Subnets.hpp:613
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition Subnets.hpp:64
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnets > > resolve(const std::string &policySpaceName, const std::string &gbpSubnetsName)
Retrieve an instance of Subnets from the default managed object store by constructing its URI from th...
Definition Subnets.hpp:185
OF_SHARED_PTR< modelgbp::gbp::SecGroupRuleFromRemoteAddressRTgt > addGbpSecGroupRuleFromRemoteAddressRTgt(const std::string &gbpSecGroupRuleFromRemoteAddressRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Subnets.hpp:461
boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroupFromSubnetsRTgt > > resolveGbpEpGroupFromSubnetsRTgt(const std::string &gbpEpGroupFromSubnetsRTgtSource)
Retrieve the child object with the specified naming properties.
Definition Subnets.hpp:203
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnets > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Subnets from the managed object store using the default framework instance.
Definition Subnets.hpp:136
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnets > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Subnets from the managed object store.
Definition Subnets.hpp:118
static void remove(const std::string &policySpaceName, const std::string &gbpSubnetsName)
Remove the Subnets object with the specified path elements from the managed object store using the de...
Definition Subnets.hpp:576
OF_SHARED_PTR< modelgbp::gbp::ForwardingBehavioralGroupFromSubnetsRTgt > addGbpForwardingBehavioralGroupFromSubnetsRTgt(const std::string &gbpForwardingBehavioralGroupFromSubnetsRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Subnets.hpp:401
void resolveGbpRoutingDomainFromIntSubnetsRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbp::RoutingDomainFromIntSubnetsRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::RoutingDomainFromIntSubnets...
Definition Subnets.hpp:306
void resolveGbpSecGroupRuleFromRemoteAddressRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbp::SecGroupRuleFromRemoteAddressRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::SecGroupRuleFromRemoteAddre...
Definition Subnets.hpp:486
boost::optional< OF_SHARED_PTR< modelgbp::gbp::RoutingDomainFromIntSubnetsRTgt > > resolveGbpRoutingDomainFromIntSubnetsRTgt(const std::string &gbpRoutingDomainFromIntSubnetsRTgtSource)
Retrieve the child object with the specified naming properties.
Definition Subnets.hpp:263
void resolveGbpForwardingBehavioralGroupFromSubnetsRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbp::ForwardingBehavioralGroupFromSubnetsRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::ForwardingBehavioralGroupFr...
Definition Subnets.hpp:426
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12