modelgbp Generated OpFlex Model
1.7.0
|
Public Member Functions | |
bool | isFloatingIpSet () |
Check whether floatingIp has been set. More... | |
boost::optional< const std::string & > | getFloatingIp () |
Get the value of floatingIp if it has been set. More... | |
const std::string & | getFloatingIp (const std::string &defaultValue) |
Get the value of floatingIp if set, otherwise the value of default passed in. More... | |
modelgbp::inv::IpMapping & | setFloatingIp (const std::string &newValue) |
Set floatingIp to the specified value in the currently-active mutator. More... | |
modelgbp::inv::IpMapping & | unsetFloatingIp () |
Unset floatingIp in the currently-active mutator. More... | |
bool | isMappedIpSet () |
Check whether mappedIp has been set. More... | |
boost::optional< const std::string & > | getMappedIp () |
Get the value of mappedIp if it has been set. More... | |
const std::string & | getMappedIp (const std::string &defaultValue) |
Get the value of mappedIp if set, otherwise the value of default passed in. More... | |
modelgbp::inv::IpMapping & | setMappedIp (const std::string &newValue) |
Set mappedIp to the specified value in the currently-active mutator. More... | |
modelgbp::inv::IpMapping & | unsetMappedIp () |
Unset mappedIp 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::inv::IpMapping & | setName (const std::string &newValue) |
Set name to the specified value in the currently-active mutator. More... | |
modelgbp::inv::IpMapping & | unsetName () |
Unset name in the currently-active mutator. More... | |
bool | isNextHopIfSet () |
Check whether nextHopIf has been set. More... | |
boost::optional< const std::string & > | getNextHopIf () |
Get the value of nextHopIf if it has been set. More... | |
const std::string & | getNextHopIf (const std::string &defaultValue) |
Get the value of nextHopIf if set, otherwise the value of default passed in. More... | |
modelgbp::inv::IpMapping & | setNextHopIf (const std::string &newValue) |
Set nextHopIf to the specified value in the currently-active mutator. More... | |
modelgbp::inv::IpMapping & | unsetNextHopIf () |
Unset nextHopIf in the currently-active mutator. More... | |
bool | isNextHopMacSet () |
Check whether nextHopMac has been set. More... | |
boost::optional< const opflex::modb::MAC & > | getNextHopMac () |
Get the value of nextHopMac if it has been set. More... | |
const opflex::modb::MAC & | getNextHopMac (const opflex::modb::MAC &defaultValue) |
Get the value of nextHopMac if set, otherwise the value of default passed in. More... | |
modelgbp::inv::IpMapping & | setNextHopMac (const opflex::modb::MAC &newValue) |
Set nextHopMac to the specified value in the currently-active mutator. More... | |
modelgbp::inv::IpMapping & | unsetNextHopMac () |
Unset nextHopMac in the currently-active mutator. More... | |
boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMappingToGroupRSrc > > | resolveInvIpMappingToGroupRSrc () |
Retrieve the child object with the specified naming properties. More... | |
OF_SHARED_PTR< modelgbp::inv::IpMappingToGroupRSrc > | addInvIpMappingToGroupRSrc () |
Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator. More... | |
void | remove () |
Remove this instance using the currently-active mutator. More... | |
IpMapping (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi) | |
Construct an instance of IpMapping. More... | |
Static Public Member Functions | |
static boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMapping > > | resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
Retrieve an instance of IpMapping from the managed object store. More... | |
static boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMapping > > | resolve (const opflex::modb::URI &uri) |
Retrieve an instance of IpMapping from the managed object store using the default framework instance. More... | |
static boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMapping > > | resolve (opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpMappingName) |
Retrieve an instance of IpMapping 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::inv::IpMapping > > | resolve (const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpMappingName) |
Retrieve an instance of IpMapping 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 IpMapping object with the specified URI using the currently-active mutator. More... | |
static void | remove (const opflex::modb::URI &uri) |
Remove the IpMapping 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 &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpMappingName) |
Remove the IpMapping object with the specified path elements from the managed object store. More... | |
static void | remove (const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invIpMappingName) |
Remove the IpMapping 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 = 124 |
The unique class ID for IpMapping. | |
|
inline |
Construct an instance of IpMapping.
This should not typically be called from user code.
|
inline |
Create a new child object with the specified naming properties and make it a child of this object in the currently-active mutator.
If the object already exists in the store, get a mutable copy of that object. If the object already exists in the mutator, get a reference to the object.
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inline |
Get the value of floatingIp if it has been set.
References isFloatingIpSet().
Referenced by getFloatingIp().
|
inline |
Get the value of floatingIp if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getFloatingIp().
|
inline |
Get the value of mappedIp if it has been set.
References isMappedIpSet().
Referenced by getMappedIp().
|
inline |
Get the value of mappedIp if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getMappedIp().
|
inline |
Get the value of name if it has been set.
References isNameSet().
Referenced by getName().
|
inline |
Get the value of name if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getName().
|
inline |
Get the value of nextHopIf if it has been set.
References isNextHopIfSet().
Referenced by getNextHopIf().
|
inline |
Get the value of nextHopIf if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getNextHopIf().
|
inline |
Get the value of nextHopMac if it has been set.
References isNextHopMacSet().
Referenced by getNextHopMac().
|
inline |
Get the value of nextHopMac if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getNextHopMac().
|
inline |
Check whether floatingIp has been set.
Referenced by getFloatingIp().
|
inline |
Check whether mappedIp has been set.
Referenced by getMappedIp().
|
inline |
|
inline |
Check whether nextHopIf has been set.
Referenced by getNextHopIf().
|
inline |
Check whether nextHopMac has been set.
Referenced by getNextHopMac().
|
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.
framework | the framework instance |
listener | the 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().
|
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.
listener | the 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().
|
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.
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Remove the IpMapping 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.
framework | the framework instance to use |
uri | the URI of the object to remove |
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Remove the IpMapping 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.
uri | the URI of the object to remove |
std::logic_error | if no mutator is active |
|
inlinestatic |
Remove the IpMapping 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: /InvUniverse/InvLocalEndpointInventory/[invLocalEndpointInventoryName]/InvLocalInventoryEp/[invLocalInventoryEpUuid]/InvIpMapping/[invIpMappingName]
framework | the framework instance to use |
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
invIpMappingName | the value of invIpMappingName, a naming property for IpMapping |
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Remove the IpMapping 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: /InvUniverse/InvLocalEndpointInventory/[invLocalEndpointInventoryName]/InvLocalInventoryEp/[invLocalInventoryEpUuid]/InvIpMapping/[invIpMappingName]
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
invIpMappingName | the value of invIpMappingName, a naming property for IpMapping |
std::logic_error | if no mutator is active |
|
inlinestatic |
Retrieve an instance of IpMapping 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.
framework | the framework instance to use |
uri | the URI of the object to retrieve |
References CLASS_ID.
Referenced by resolve(), and modelgbp::inv::LocalInventoryEp::resolveInvIpMapping().
|
inlinestatic |
Retrieve an instance of IpMapping 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.
uri | the URI of the object to retrieve |
References CLASS_ID.
|
inlinestatic |
Retrieve an instance of IpMapping 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: /InvUniverse/InvLocalEndpointInventory/[invLocalEndpointInventoryName]/InvLocalInventoryEp/[invLocalInventoryEpUuid]/InvIpMapping/[invIpMappingName]
framework | the framework instance to use |
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
invIpMappingName | the value of invIpMappingName, a naming property for IpMapping |
References resolve().
|
inlinestatic |
Retrieve an instance of IpMapping 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: /InvUniverse/InvLocalEndpointInventory/[invLocalEndpointInventoryName]/InvLocalInventoryEp/[invLocalInventoryEpUuid]/InvIpMapping/[invIpMappingName]
invLocalEndpointInventoryName | the value of invLocalEndpointInventoryName, a naming property for LocalEndpointInventory |
invLocalInventoryEpUuid | the value of invLocalInventoryEpUuid, a naming property for LocalInventoryEp |
invIpMappingName | the value of invIpMappingName, a naming property for IpMapping |
References resolve().
|
inline |
Retrieve the child object with the specified naming properties.
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.
References modelgbp::inv::IpMappingToGroupRSrc::resolve().
|
inline |
Set floatingIp to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set mappedIp to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set name to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set nextHopIf to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inline |
Set nextHopMac to the specified value in the currently-active mutator.
newValue | the new value to set. |
std::logic_error | if no mutator is active |
|
inlinestatic |
Unregister a listener from updates to this class.
framework | the framework instance |
listener | The listener to unregister. |
References CLASS_ID.
Referenced by unregisterListener().
|
inlinestatic |
Unregister a listener from updates to this class from the default framework instance.
listener | The listener to unregister. |
References unregisterListener().
|
inline |
Unset floatingIp in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset mappedIp in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset name in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset nextHopIf in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset nextHopMac in the currently-active mutator.
std::logic_error | if no mutator is active |