modelgbp Generated OpFlex Model
1.7.0
|
Public Member Functions | |
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::dci::RouteTargetDef & | setName (const std::string &newValue) |
Set name to the specified value in the currently-active mutator. More... | |
modelgbp::dci::RouteTargetDef & | unsetName () |
Unset name in the currently-active mutator. More... | |
bool | isRtASSet () |
Check whether rtAS has been set. More... | |
boost::optional< uint32_t > | getRtAS () |
Get the value of rtAS if it has been set. More... | |
uint32_t | getRtAS (uint32_t defaultValue) |
Get the value of rtAS if set, otherwise the value of default passed in. More... | |
modelgbp::dci::RouteTargetDef & | setRtAS (uint32_t newValue) |
Set rtAS to the specified value in the currently-active mutator. More... | |
modelgbp::dci::RouteTargetDef & | unsetRtAS () |
Unset rtAS in the currently-active mutator. More... | |
bool | isRtIPSet () |
Check whether rtIP has been set. More... | |
boost::optional< const std::string & > | getRtIP () |
Get the value of rtIP if it has been set. More... | |
const std::string & | getRtIP (const std::string &defaultValue) |
Get the value of rtIP if set, otherwise the value of default passed in. More... | |
modelgbp::dci::RouteTargetDef & | setRtIP (const std::string &newValue) |
Set rtIP to the specified value in the currently-active mutator. More... | |
modelgbp::dci::RouteTargetDef & | unsetRtIP () |
Unset rtIP in the currently-active mutator. More... | |
bool | isRtNNSet () |
Check whether rtNN has been set. More... | |
boost::optional< uint32_t > | getRtNN () |
Get the value of rtNN if it has been set. More... | |
uint32_t | getRtNN (uint32_t defaultValue) |
Get the value of rtNN if set, otherwise the value of default passed in. More... | |
modelgbp::dci::RouteTargetDef & | setRtNN (uint32_t newValue) |
Set rtNN to the specified value in the currently-active mutator. More... | |
modelgbp::dci::RouteTargetDef & | unsetRtNN () |
Unset rtNN in the currently-active mutator. More... | |
bool | isTargetAfSet () |
Check whether targetAf has been set. More... | |
boost::optional< const uint8_t > | getTargetAf () |
Get the value of targetAf if it has been set. More... | |
const uint8_t | getTargetAf (const uint8_t defaultValue) |
Get the value of targetAf if set, otherwise the value of default passed in. More... | |
modelgbp::dci::RouteTargetDef & | setTargetAf (const uint8_t newValue) |
Set targetAf to the specified value in the currently-active mutator. More... | |
modelgbp::dci::RouteTargetDef & | unsetTargetAf () |
Unset targetAf in the currently-active mutator. More... | |
bool | isTypeSet () |
Check whether type has been set. More... | |
boost::optional< const uint8_t > | getType () |
Get the value of type if it has been set. More... | |
const uint8_t | getType (const uint8_t defaultValue) |
Get the value of type if set, otherwise the value of default passed in. More... | |
modelgbp::dci::RouteTargetDef & | setType (const uint8_t newValue) |
Set type to the specified value in the currently-active mutator. More... | |
modelgbp::dci::RouteTargetDef & | unsetType () |
Unset type in the currently-active mutator. More... | |
void | remove () |
Remove this instance using the currently-active mutator. More... | |
RouteTargetDef (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi) | |
Construct an instance of RouteTargetDef. More... | |
Static Public Member Functions | |
static boost::optional < OF_SHARED_PTR < modelgbp::dci::RouteTargetDef > > | resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
Retrieve an instance of RouteTargetDef from the managed object store. More... | |
static boost::optional < OF_SHARED_PTR < modelgbp::dci::RouteTargetDef > > | resolve (const opflex::modb::URI &uri) |
Retrieve an instance of RouteTargetDef from the managed object store using the default framework instance. More... | |
static boost::optional < OF_SHARED_PTR < modelgbp::dci::RouteTargetDef > > | resolve (opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName, const std::string &dciRouteTargetDefName) |
Retrieve an instance of RouteTargetDef 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::dci::RouteTargetDef > > | resolve (const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName, const std::string &dciRouteTargetDefName) |
Retrieve an instance of RouteTargetDef 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 RouteTargetDef object with the specified URI using the currently-active mutator. More... | |
static void | remove (const opflex::modb::URI &uri) |
Remove the RouteTargetDef 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 &dciRouteTargetPdefName, const std::string &dciRouteTargetDefName) |
Remove the RouteTargetDef 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 &dciRouteTargetPdefName, const std::string &dciRouteTargetDefName) |
Remove the RouteTargetDef 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 = 92 |
The unique class ID for RouteTargetDef. | |
|
inline |
Construct an instance of RouteTargetDef.
This should not typically be called from user code.
|
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 rtAS if it has been set.
References isRtASSet().
Referenced by getRtAS().
|
inline |
Get the value of rtAS if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getRtAS().
|
inline |
Get the value of rtIP if it has been set.
References isRtIPSet().
Referenced by getRtIP().
|
inline |
Get the value of rtIP if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getRtIP().
|
inline |
Get the value of rtNN if it has been set.
References isRtNNSet().
Referenced by getRtNN().
|
inline |
Get the value of rtNN if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getRtNN().
|
inline |
Get the value of targetAf if it has been set.
References isTargetAfSet().
Referenced by getTargetAf().
|
inline |
Get the value of targetAf if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getTargetAf().
|
inline |
Get the value of type if it has been set.
References isTypeSet().
Referenced by getType().
|
inline |
Get the value of type if set, otherwise the value of default passed in.
defaultValue | default value returned if the property is not set |
References getType().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Check whether targetAf has been set.
Referenced by getTargetAf().
|
inline |
|
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 RouteTargetDef 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 RouteTargetDef 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 RouteTargetDef 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]/DciRouteTargetPdef/[dciRouteTargetPdefName]/DciRouteTargetDef/[dciRouteTargetDefName]
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 |
dciRouteTargetPdefName | the value of dciRouteTargetPdefName, a naming property for RouteTargetPdef |
dciRouteTargetDefName | the value of dciRouteTargetDefName, a naming property for RouteTargetDef |
std::logic_error | if no mutator is active |
References CLASS_ID.
|
inlinestatic |
Remove the RouteTargetDef 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]/DciRouteTargetPdef/[dciRouteTargetPdefName]/DciRouteTargetDef/[dciRouteTargetDefName]
policySpaceName | the value of policySpaceName, a naming property for Space |
gbpRoutingDomainName | the value of gbpRoutingDomainName, a naming property for RoutingDomain |
dciRouteTargetPdefName | the value of dciRouteTargetPdefName, a naming property for RouteTargetPdef |
dciRouteTargetDefName | the value of dciRouteTargetDefName, a naming property for RouteTargetDef |
std::logic_error | if no mutator is active |
|
inlinestatic |
Retrieve an instance of RouteTargetDef 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::dci::RouteTargetPdef::resolveDciRouteTargetDef().
|
inlinestatic |
Retrieve an instance of RouteTargetDef 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 RouteTargetDef 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]/DciRouteTargetPdef/[dciRouteTargetPdefName]/DciRouteTargetDef/[dciRouteTargetDefName]
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 |
dciRouteTargetPdefName | the value of dciRouteTargetPdefName, a naming property for RouteTargetPdef |
dciRouteTargetDefName | the value of dciRouteTargetDefName, a naming property for RouteTargetDef |
References resolve().
|
inlinestatic |
Retrieve an instance of RouteTargetDef 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]/DciRouteTargetPdef/[dciRouteTargetPdefName]/DciRouteTargetDef/[dciRouteTargetDefName]
policySpaceName | the value of policySpaceName, a naming property for Space |
gbpRoutingDomainName | the value of gbpRoutingDomainName, a naming property for RoutingDomain |
dciRouteTargetPdefName | the value of dciRouteTargetPdefName, a naming property for RouteTargetPdef |
dciRouteTargetDefName | the value of dciRouteTargetDefName, a naming property for RouteTargetDef |
References resolve().
|
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 rtAS 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 rtIP 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 rtNN 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 targetAf 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 type 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 name in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset rtAS in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset rtIP in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset rtNN in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset targetAf in the currently-active mutator.
std::logic_error | if no mutator is active |
|
inline |
Unset type in the currently-active mutator.
std::logic_error | if no mutator is active |