|
bool | isRoleSet () |
| Check whether role has been set.
|
|
boost::optional< const uint8_t > | getRole () |
| Get the value of role if it has been set.
|
|
const uint8_t | getRole (const uint8_t defaultValue) |
| Get the value of role if set, otherwise the value of default passed in.
|
|
modelgbp::span::LocalEpToEpRSrc & | setRole (const uint8_t newValue) |
| Set role to the specified value in the currently-active mutator.
|
|
modelgbp::span::LocalEpToEpRSrc & | unsetRole () |
| Unset role in the currently-active mutator.
|
|
bool | isTargetSet () |
| Check whether target has been set.
|
|
boost::optional< opflex::modb::class_id_t > | getTargetClass () |
| Get the value of targetClass if it has been set.
|
|
boost::optional< opflex::modb::URI > | getTargetURI () |
| Get the value of targetURI if it has been set.
|
|
opflex::modb::class_id_t | getTargetClass (opflex::modb::class_id_t defaultValue) |
| Get the value of targetClass if set, otherwise the value of default passed in.
|
|
opflex::modb::URI | getTargetURI (opflex::modb::URI defaultValue) |
| Get the value of targetURI if set, otherwise the value of default passed in.
|
|
modelgbp::span::LocalEpToEpRSrc & | setTargetL2Ep (const opflex::modb::URI &uri) |
| Set the reference to point to an instance of L2Ep with the specified URI.
|
|
modelgbp::span::LocalEpToEpRSrc & | setTargetL2Ep (const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac) |
| Set the reference to point to an instance of L2Ep in the currently-active mutator by constructing its URI from the path elements that lead to it.
|
|
modelgbp::span::LocalEpToEpRSrc & | setTargetL3Ep (const opflex::modb::URI &uri) |
| Set the reference to point to an instance of L3Ep with the specified URI.
|
|
modelgbp::span::LocalEpToEpRSrc & | setTargetL3Ep (const std::string &eprL3EpContext, const std::string &eprL3EpIp) |
| Set the reference to point to an instance of L3Ep in the currently-active mutator by constructing its URI from the path elements that lead to it.
|
|
modelgbp::span::LocalEpToEpRSrc & | unsetTarget () |
| Unset target in the currently-active mutator.
|
|
bool | isTypeSet () |
| Check whether type has been set.
|
|
boost::optional< const uint8_t > | getType () |
| Get the value of type if it has been set.
|
|
const uint8_t | getType (const uint8_t defaultValue) |
| Get the value of type if set, otherwise the value of default passed in.
|
|
modelgbp::span::LocalEpToEpRSrc & | setType (const uint8_t newValue) |
| Set type to the specified value in the currently-active mutator.
|
|
modelgbp::span::LocalEpToEpRSrc & | unsetType () |
| Unset type in the currently-active mutator.
|
|
void | remove () |
| Remove this instance using the currently-active mutator.
|
|
| LocalEpToEpRSrc (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi) |
| Construct an instance of LocalEpToEpRSrc.
|
|
|
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > | resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri) |
| Retrieve an instance of LocalEpToEpRSrc from the managed object store.
|
|
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > | resolve (const opflex::modb::URI &uri) |
| Retrieve an instance of LocalEpToEpRSrc from the managed object store using the default framework instance.
|
|
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > | resolve (opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanLocalEpName) |
| Retrieve an instance of LocalEpToEpRSrc from the managed object store by constructing its URI from the path elements that lead to it.
|
|
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > | resolve (const std::string &platformConfigName, const std::string &spanLocalEpName) |
| Retrieve an instance of LocalEpToEpRSrc 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 LocalEpToEpRSrc object with the specified URI using the currently-active mutator.
|
|
static void | remove (const opflex::modb::URI &uri) |
| Remove the LocalEpToEpRSrc 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 &platformConfigName, const std::string &spanLocalEpName) |
| Remove the LocalEpToEpRSrc object with the specified path elements from the managed object store.
|
|
static void | remove (const std::string &platformConfigName, const std::string &spanLocalEpName) |
| Remove the LocalEpToEpRSrc 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::span::LocalEpToEpRSrc::remove |
( |
const std::string & | platformConfigName, |
|
|
const std::string & | spanLocalEpName ) |
|
inlinestatic |
Remove the LocalEpToEpRSrc 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/PlatformConfig/[platformConfigName]/SpanLocalEp/[spanLocalEpName]/SpanLocalEpToEpRSrc
- Parameters
-
platformConfigName | the value of platformConfigName, a naming property for Config |
spanLocalEpName | the value of spanLocalEpName, a naming property for LocalEp |
- Exceptions
-
std::logic_error | if no mutator is active |
References remove().
static void modelgbp::span::LocalEpToEpRSrc::remove |
( |
opflex::ofcore::OFFramework & | framework, |
|
|
const std::string & | platformConfigName, |
|
|
const std::string & | spanLocalEpName ) |
|
inlinestatic |
Remove the LocalEpToEpRSrc 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/PlatformConfig/[platformConfigName]/SpanLocalEp/[spanLocalEpName]/SpanLocalEpToEpRSrc
- Parameters
-
framework | the framework instance to use |
platformConfigName | the value of platformConfigName, a naming property for Config |
spanLocalEpName | the value of spanLocalEpName, a naming property for LocalEp |
- Exceptions
-
std::logic_error | if no mutator is active |
References CLASS_ID.
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > modelgbp::span::LocalEpToEpRSrc::resolve |
( |
const std::string & | platformConfigName, |
|
|
const std::string & | spanLocalEpName ) |
|
inlinestatic |
Retrieve an instance of LocalEpToEpRSrc 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/PlatformConfig/[platformConfigName]/SpanLocalEp/[spanLocalEpName]/SpanLocalEpToEpRSrc
- Parameters
-
platformConfigName | the value of platformConfigName, a naming property for Config |
spanLocalEpName | the value of spanLocalEpName, a naming property for LocalEp |
- Returns
- a shared pointer to the object or boost::none if it does not exist.
References resolve().
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpToEpRSrc > > modelgbp::span::LocalEpToEpRSrc::resolve |
( |
opflex::ofcore::OFFramework & | framework, |
|
|
const std::string & | platformConfigName, |
|
|
const std::string & | spanLocalEpName ) |
|
inlinestatic |
Retrieve an instance of LocalEpToEpRSrc 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/PlatformConfig/[platformConfigName]/SpanLocalEp/[spanLocalEpName]/SpanLocalEpToEpRSrc
- Parameters
-
framework | the framework instance to use |
platformConfigName | the value of platformConfigName, a naming property for Config |
spanLocalEpName | the value of spanLocalEpName, a naming property for LocalEp |
- Returns
- a shared pointer to the object or boost::none if it does not exist.
References resolve().