modelgbp Generated OpFlex Model  1.7.0
modelgbp::gbp::ExternalSubnet Class Reference
Inheritance diagram for modelgbp::gbp::ExternalSubnet:

Public Member Functions

bool isAddressSet ()
 Check whether address has been set. More...
 
boost::optional< const std::string & > getAddress ()
 Get the value of address if it has been set. More...
 
const std::string & getAddress (const std::string &defaultValue)
 Get the value of address if set, otherwise the value of default passed in. More...
 
modelgbp::gbp::ExternalSubnetsetAddress (const std::string &newValue)
 Set address to the specified value in the currently-active mutator. More...
 
modelgbp::gbp::ExternalSubnetunsetAddress ()
 Unset address in the currently-active mutator. More...
 
bool isNameSet ()
 Check whether name has been set. More...
 
boost::optional< const std::string & > getName ()
 Get the value of name if it has been set. More...
 
const std::string & getName (const std::string &defaultValue)
 Get the value of name if set, otherwise the value of default passed in. More...
 
modelgbp::gbp::ExternalSubnetsetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator. More...
 
modelgbp::gbp::ExternalSubnetunsetName ()
 Unset name in the currently-active mutator. More...
 
bool isPrefixLenSet ()
 Check whether prefixLen has been set. More...
 
boost::optional< const uint8_t > getPrefixLen ()
 Get the value of prefixLen if it has been set. More...
 
const uint8_t getPrefixLen (const uint8_t defaultValue)
 Get the value of prefixLen if set, otherwise the value of default passed in. More...
 
modelgbp::gbp::ExternalSubnetsetPrefixLen (const uint8_t newValue)
 Set prefixLen to the specified value in the currently-active mutator. More...
 
modelgbp::gbp::ExternalSubnetunsetPrefixLen ()
 Unset prefixLen in the currently-active mutator. More...
 
void remove ()
 Remove this instance using the currently-active mutator. More...
 
 ExternalSubnet (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
 Construct an instance of ExternalSubnet. More...
 

Static Public Member Functions

static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ExternalSubnet > > resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Retrieve an instance of ExternalSubnet from the managed object store. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ExternalSubnet > > resolve (const opflex::modb::URI &uri)
 Retrieve an instance of ExternalSubnet from the managed object store using the default framework instance. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ExternalSubnet > > resolve (opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, const std::string &gbpExternalSubnetName)
 Retrieve an instance of ExternalSubnet from the managed object store by constructing its URI from the path elements that lead to it. More...
 
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ExternalSubnet > > resolve (const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, const std::string &gbpExternalSubnetName)
 Retrieve an instance of ExternalSubnet from the default managed object store by constructing its URI from the path elements that lead to it. More...
 
static void remove (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Remove the ExternalSubnet object with the specified URI using the currently-active mutator. More...
 
static void remove (const opflex::modb::URI &uri)
 Remove the ExternalSubnet object with the specified URI using the currently-active mutator and the default framework instance. More...
 
static void remove (opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, const std::string &gbpExternalSubnetName)
 Remove the ExternalSubnet object with the specified path elements from the managed object store. More...
 
static void remove (const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, const std::string &gbpExternalSubnetName)
 Remove the ExternalSubnet object with the specified path elements from the managed object store using the default framework instance. More...
 
static void registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class. More...
 
static void registerListener (opflex::modb::ObjectListener *listener)
 Register a listener that will get called for changes related to this class with the default framework instance. More...
 
static void unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class. More...
 
static void unregisterListener (opflex::modb::ObjectListener *listener)
 Unregister a listener from updates to this class from the default framework instance. More...
 

Static Public Attributes

static const opflex::modb::class_id_t CLASS_ID = 179
 The unique class ID for ExternalSubnet.
 

Constructor & Destructor Documentation

◆ ExternalSubnet()

modelgbp::gbp::ExternalSubnet::ExternalSubnet ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri,
const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &  oi 
)
inline

Construct an instance of ExternalSubnet.

This should not typically be called from user code.

Member Function Documentation

◆ getAddress() [1/2]

boost::optional<const std::string&> modelgbp::gbp::ExternalSubnet::getAddress ( )
inline

Get the value of address if it has been set.

Returns
the value of address or boost::none if not set

References isAddressSet().

Referenced by getAddress().

◆ getAddress() [2/2]

const std::string& modelgbp::gbp::ExternalSubnet::getAddress ( const std::string &  defaultValue)
inline

Get the value of address if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of address if set, otherwise the value of default passed in

References getAddress().

◆ getName() [1/2]

boost::optional<const std::string&> modelgbp::gbp::ExternalSubnet::getName ( )
inline

Get the value of name if it has been set.

Returns
the value of name or boost::none if not set

References isNameSet().

Referenced by getName().

◆ getName() [2/2]

const std::string& modelgbp::gbp::ExternalSubnet::getName ( const std::string &  defaultValue)
inline

Get the value of name if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of name if set, otherwise the value of default passed in

References getName().

◆ getPrefixLen() [1/2]

boost::optional<const uint8_t> modelgbp::gbp::ExternalSubnet::getPrefixLen ( )
inline

Get the value of prefixLen if it has been set.

Returns
the value of prefixLen or boost::none if not set

References isPrefixLenSet().

Referenced by getPrefixLen().

◆ getPrefixLen() [2/2]

const uint8_t modelgbp::gbp::ExternalSubnet::getPrefixLen ( const uint8_t  defaultValue)
inline

Get the value of prefixLen if set, otherwise the value of default passed in.

Parameters
defaultValuedefault value returned if the property is not set
Returns
the value of prefixLen if set, otherwise the value of default passed in

References getPrefixLen().

◆ isAddressSet()

bool modelgbp::gbp::ExternalSubnet::isAddressSet ( )
inline

Check whether address has been set.

Returns
true if address has been set

Referenced by getAddress().

◆ isNameSet()

bool modelgbp::gbp::ExternalSubnet::isNameSet ( )
inline

Check whether name has been set.

Returns
true if name has been set

Referenced by getName().

◆ isPrefixLenSet()

bool modelgbp::gbp::ExternalSubnet::isPrefixLenSet ( )
inline

Check whether prefixLen has been set.

Returns
true if prefixLen has been set

Referenced by getPrefixLen().

◆ registerListener() [1/2]

static void modelgbp::gbp::ExternalSubnet::registerListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Register a listener that will get called for changes related to this class.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
frameworkthe framework instance
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References CLASS_ID.

Referenced by registerListener().

◆ registerListener() [2/2]

static void modelgbp::gbp::ExternalSubnet::registerListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Register a listener that will get called for changes related to this class with the default framework instance.

This listener will be called for any modifications of this class or any transitive children of this class.

Parameters
listenerthe listener functional object that should be called when changes occur related to the class. This memory is owned by the caller and should be freed only after it has been unregistered.

References registerListener().

◆ remove() [1/5]

void modelgbp::gbp::ExternalSubnet::remove ( )
inline

Remove this instance using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [2/5]

static void modelgbp::gbp::ExternalSubnet::remove ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Remove the ExternalSubnet object with the specified URI using the currently-active mutator.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
frameworkthe framework instance to use
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [3/5]

static void modelgbp::gbp::ExternalSubnet::remove ( const opflex::modb::URI &  uri)
inlinestatic

Remove the ExternalSubnet object with the specified URI using the currently-active mutator and the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

Parameters
urithe URI of the object to remove
Exceptions
std::logic_errorif no mutator is active

◆ remove() [4/5]

static void modelgbp::gbp::ExternalSubnet::remove ( opflex::ofcore::OFFramework &  framework,
const std::string &  policySpaceName,
const std::string &  gbpRoutingDomainName,
const std::string &  gbpL3ExternalDomainName,
const std::string &  gbpL3ExternalNetworkName,
const std::string &  gbpExternalSubnetName 
)
inlinestatic

Remove the ExternalSubnet object with the specified path elements from the managed object store.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpRoutingDomain/[gbpRoutingDomainName]/GbpL3ExternalDomain/[gbpL3ExternalDomainName]/GbpL3ExternalNetwork/[gbpL3ExternalNetworkName]/GbpExternalSubnet/[gbpExternalSubnetName]

Parameters
frameworkthe framework instance to use
policySpaceNamethe value of policySpaceName, a naming property for Space
gbpRoutingDomainNamethe value of gbpRoutingDomainName, a naming property for RoutingDomain
gbpL3ExternalDomainNamethe value of gbpL3ExternalDomainName, a naming property for L3ExternalDomain
gbpL3ExternalNetworkNamethe value of gbpL3ExternalNetworkName, a naming property for L3ExternalNetwork
gbpExternalSubnetNamethe value of gbpExternalSubnetName, a naming property for ExternalSubnet
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

◆ remove() [5/5]

static void modelgbp::gbp::ExternalSubnet::remove ( const std::string &  policySpaceName,
const std::string &  gbpRoutingDomainName,
const std::string &  gbpL3ExternalDomainName,
const std::string &  gbpL3ExternalNetworkName,
const std::string &  gbpExternalSubnetName 
)
inlinestatic

Remove the ExternalSubnet object with the specified path elements from the managed object store using the default framework instance.

If the object does not exist, then this will be a no-op. If this object has any children, they will be garbage-collected at some future time.

The object URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpRoutingDomain/[gbpRoutingDomainName]/GbpL3ExternalDomain/[gbpL3ExternalDomainName]/GbpL3ExternalNetwork/[gbpL3ExternalNetworkName]/GbpExternalSubnet/[gbpExternalSubnetName]

Parameters
policySpaceNamethe value of policySpaceName, a naming property for Space
gbpRoutingDomainNamethe value of gbpRoutingDomainName, a naming property for RoutingDomain
gbpL3ExternalDomainNamethe value of gbpL3ExternalDomainName, a naming property for L3ExternalDomain
gbpL3ExternalNetworkNamethe value of gbpL3ExternalNetworkName, a naming property for L3ExternalNetwork
gbpExternalSubnetNamethe value of gbpExternalSubnetName, a naming property for ExternalSubnet
Exceptions
std::logic_errorif no mutator is active

◆ resolve() [1/4]

static boost::optional<OF_SHARED_PTR<modelgbp::gbp::ExternalSubnet> > modelgbp::gbp::ExternalSubnet::resolve ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Retrieve an instance of ExternalSubnet from the managed object store.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
frameworkthe framework instance to use
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

Referenced by resolve(), and modelgbp::gbp::L3ExternalNetwork::resolveGbpExternalSubnet().

◆ resolve() [2/4]

static boost::optional<OF_SHARED_PTR<modelgbp::gbp::ExternalSubnet> > modelgbp::gbp::ExternalSubnet::resolve ( const opflex::modb::URI &  uri)
inlinestatic

Retrieve an instance of ExternalSubnet from the managed object store using the default framework instance.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

Parameters
urithe URI of the object to retrieve
Returns
a shared pointer to the object or boost::none if it does not exist.

References CLASS_ID.

◆ resolve() [3/4]

static boost::optional<OF_SHARED_PTR<modelgbp::gbp::ExternalSubnet> > modelgbp::gbp::ExternalSubnet::resolve ( opflex::ofcore::OFFramework &  framework,
const std::string &  policySpaceName,
const std::string &  gbpRoutingDomainName,
const std::string &  gbpL3ExternalDomainName,
const std::string &  gbpL3ExternalNetworkName,
const std::string &  gbpExternalSubnetName 
)
inlinestatic

Retrieve an instance of ExternalSubnet from the managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpRoutingDomain/[gbpRoutingDomainName]/GbpL3ExternalDomain/[gbpL3ExternalDomainName]/GbpL3ExternalNetwork/[gbpL3ExternalNetworkName]/GbpExternalSubnet/[gbpExternalSubnetName]

Parameters
frameworkthe framework instance to use
policySpaceNamethe value of policySpaceName, a naming property for Space
gbpRoutingDomainNamethe value of gbpRoutingDomainName, a naming property for RoutingDomain
gbpL3ExternalDomainNamethe value of gbpL3ExternalDomainName, a naming property for L3ExternalDomain
gbpL3ExternalNetworkNamethe value of gbpL3ExternalNetworkName, a naming property for L3ExternalNetwork
gbpExternalSubnetNamethe value of gbpExternalSubnetName, a naming property for ExternalSubnet
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

◆ resolve() [4/4]

static boost::optional<OF_SHARED_PTR<modelgbp::gbp::ExternalSubnet> > modelgbp::gbp::ExternalSubnet::resolve ( const std::string &  policySpaceName,
const std::string &  gbpRoutingDomainName,
const std::string &  gbpL3ExternalDomainName,
const std::string &  gbpL3ExternalNetworkName,
const std::string &  gbpExternalSubnetName 
)
inlinestatic

Retrieve an instance of ExternalSubnet from the default managed object store by constructing its URI from the path elements that lead to it.

If the object does not exist in the local store, returns boost::none. Note that even though it may not exist locally, it may still exist remotely.

The object URI generated by this function will take the form: /PolicyUniverse/PolicySpace/[policySpaceName]/GbpRoutingDomain/[gbpRoutingDomainName]/GbpL3ExternalDomain/[gbpL3ExternalDomainName]/GbpL3ExternalNetwork/[gbpL3ExternalNetworkName]/GbpExternalSubnet/[gbpExternalSubnetName]

Parameters
policySpaceNamethe value of policySpaceName, a naming property for Space
gbpRoutingDomainNamethe value of gbpRoutingDomainName, a naming property for RoutingDomain
gbpL3ExternalDomainNamethe value of gbpL3ExternalDomainName, a naming property for L3ExternalDomain
gbpL3ExternalNetworkNamethe value of gbpL3ExternalNetworkName, a naming property for L3ExternalNetwork
gbpExternalSubnetNamethe value of gbpExternalSubnetName, a naming property for ExternalSubnet
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

◆ setAddress()

modelgbp::gbp::ExternalSubnet& modelgbp::gbp::ExternalSubnet::setAddress ( const std::string &  newValue)
inline

Set address to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See also
opflex::modb::Mutator

◆ setName()

modelgbp::gbp::ExternalSubnet& modelgbp::gbp::ExternalSubnet::setName ( const std::string &  newValue)
inline

Set name to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See also
opflex::modb::Mutator

◆ setPrefixLen()

modelgbp::gbp::ExternalSubnet& modelgbp::gbp::ExternalSubnet::setPrefixLen ( const uint8_t  newValue)
inline

Set prefixLen to the specified value in the currently-active mutator.

Parameters
newValuethe new value to set.
Returns
a reference to the current object
Exceptions
std::logic_errorif no mutator is active
See also
opflex::modb::Mutator

◆ unregisterListener() [1/2]

static void modelgbp::gbp::ExternalSubnet::unregisterListener ( opflex::ofcore::OFFramework &  framework,
opflex::modb::ObjectListener *  listener 
)
inlinestatic

Unregister a listener from updates to this class.

Parameters
frameworkthe framework instance
listenerThe listener to unregister.

References CLASS_ID.

Referenced by unregisterListener().

◆ unregisterListener() [2/2]

static void modelgbp::gbp::ExternalSubnet::unregisterListener ( opflex::modb::ObjectListener *  listener)
inlinestatic

Unregister a listener from updates to this class from the default framework instance.

Parameters
listenerThe listener to unregister.

References unregisterListener().

◆ unsetAddress()

modelgbp::gbp::ExternalSubnet& modelgbp::gbp::ExternalSubnet::unsetAddress ( )
inline

Unset address in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See also
opflex::modb::Mutator

◆ unsetName()

modelgbp::gbp::ExternalSubnet& modelgbp::gbp::ExternalSubnet::unsetName ( )
inline

Unset name in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See also
opflex::modb::Mutator

◆ unsetPrefixLen()

modelgbp::gbp::ExternalSubnet& modelgbp::gbp::ExternalSubnet::unsetPrefixLen ( )
inline

Unset prefixLen in the currently-active mutator.

Exceptions
std::logic_errorif no mutator is active
Returns
a reference to the current object
See also
opflex::modb::Mutator

The documentation for this class was generated from the following file: