|
bool | isAddressSet () |
| Check whether address has been set.
|
|
boost::optional< const std::string & > | getAddress () |
| Get the value of address if it has been set.
|
|
const std::string & | getAddress (const std::string &defaultValue) |
| Get the value of address if set, otherwise the value of default passed in.
|
|
modelgbp::gbp::ExternalSubnet & | setAddress (const std::string &newValue) |
| Set address to the specified value in the currently-active mutator.
|
|
modelgbp::gbp::ExternalSubnet & | unsetAddress () |
| Unset address in the currently-active mutator.
|
|
bool | isNameSet () |
| Check whether name has been set.
|
|
boost::optional< const std::string & > | getName () |
| Get the value of name if it has been set.
|
|
const std::string & | getName (const std::string &defaultValue) |
| Get the value of name if set, otherwise the value of default passed in.
|
|
modelgbp::gbp::ExternalSubnet & | setName (const std::string &newValue) |
| Set name to the specified value in the currently-active mutator.
|
|
modelgbp::gbp::ExternalSubnet & | unsetName () |
| Unset name in the currently-active mutator.
|
|
bool | isPrefixLenSet () |
| Check whether prefixLen has been set.
|
|
boost::optional< const uint8_t > | getPrefixLen () |
| Get the value of prefixLen if it has been set.
|
|
const uint8_t | getPrefixLen (const uint8_t defaultValue) |
| Get the value of prefixLen if set, otherwise the value of default passed in.
|
|
modelgbp::gbp::ExternalSubnet & | setPrefixLen (const uint8_t newValue) |
| Set prefixLen to the specified value in the currently-active mutator.
|
|
modelgbp::gbp::ExternalSubnet & | unsetPrefixLen () |
| Unset prefixLen in the currently-active mutator.
|
|
void | remove () |
| Remove this instance using the currently-active mutator.
|
|
| 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.
|
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
static void | registerListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener) |
| Register a listener that will get called for changes related to this class.
|
|
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.
|
|
static void | unregisterListener (opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener) |
| Unregister a listener from updates to this class.
|
|
static void | unregisterListener (opflex::modb::ObjectListener *listener) |
| Unregister a listener from updates to this class from the default framework instance.
|
|
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
-
policySpaceName | the value of policySpaceName, a naming property for Space |
gbpRoutingDomainName | the value of gbpRoutingDomainName, a naming property for RoutingDomain |
gbpL3ExternalDomainName | the value of gbpL3ExternalDomainName, a naming property for L3ExternalDomain |
gbpL3ExternalNetworkName | the value of gbpL3ExternalNetworkName, a naming property for L3ExternalNetwork |
gbpExternalSubnetName | the value of gbpExternalSubnetName, a naming property for ExternalSubnet |
- Exceptions
-
std::logic_error | if no mutator is active |
References remove().
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
-
framework | the framework instance to use |
policySpaceName | the value of policySpaceName, a naming property for Space |
gbpRoutingDomainName | the value of gbpRoutingDomainName, a naming property for RoutingDomain |
gbpL3ExternalDomainName | the value of gbpL3ExternalDomainName, a naming property for L3ExternalDomain |
gbpL3ExternalNetworkName | the value of gbpL3ExternalNetworkName, a naming property for L3ExternalNetwork |
gbpExternalSubnetName | the value of gbpExternalSubnetName, a naming property for ExternalSubnet |
- Exceptions
-
std::logic_error | if no mutator is active |
References CLASS_ID.
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
-
policySpaceName | the value of policySpaceName, a naming property for Space |
gbpRoutingDomainName | the value of gbpRoutingDomainName, a naming property for RoutingDomain |
gbpL3ExternalDomainName | the value of gbpL3ExternalDomainName, a naming property for L3ExternalDomain |
gbpL3ExternalNetworkName | the value of gbpL3ExternalNetworkName, a naming property for L3ExternalNetwork |
gbpExternalSubnetName | the 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().
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
-
framework | the framework instance to use |
policySpaceName | the value of policySpaceName, a naming property for Space |
gbpRoutingDomainName | the value of gbpRoutingDomainName, a naming property for RoutingDomain |
gbpL3ExternalDomainName | the value of gbpL3ExternalDomainName, a naming property for L3ExternalDomain |
gbpL3ExternalNetworkName | the value of gbpL3ExternalNetworkName, a naming property for L3ExternalNetwork |
gbpExternalSubnetName | the 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().