modelgbp Generated OpFlex Model  1.7.0
modelgbp::lacp::Config Class Reference
Inheritance diagram for modelgbp::lacp::Config:

Public Member Functions

bool isControlBitsSet ()
 Check whether controlBits has been set. More...
 
boost::optional< const uint8_t > getControlBits ()
 Get the value of controlBits if it has been set. More...
 
const uint8_t getControlBits (const uint8_t defaultValue)
 Get the value of controlBits if set, otherwise the value of default passed in. More...
 
modelgbp::lacp::ConfigsetControlBits (const uint8_t newValue)
 Set controlBits to the specified value in the currently-active mutator. More...
 
modelgbp::lacp::ConfigunsetControlBits ()
 Unset controlBits in the currently-active mutator. More...
 
bool isMaxLinksSet ()
 Check whether maxLinks has been set. More...
 
boost::optional< uint16_t > getMaxLinks ()
 Get the value of maxLinks if it has been set. More...
 
uint16_t getMaxLinks (uint16_t defaultValue)
 Get the value of maxLinks if set, otherwise the value of default passed in. More...
 
modelgbp::lacp::ConfigsetMaxLinks (uint16_t newValue)
 Set maxLinks to the specified value in the currently-active mutator. More...
 
modelgbp::lacp::ConfigunsetMaxLinks ()
 Unset maxLinks in the currently-active mutator. More...
 
bool isMinLinksSet ()
 Check whether minLinks has been set. More...
 
boost::optional< uint16_t > getMinLinks ()
 Get the value of minLinks if it has been set. More...
 
uint16_t getMinLinks (uint16_t defaultValue)
 Get the value of minLinks if set, otherwise the value of default passed in. More...
 
modelgbp::lacp::ConfigsetMinLinks (uint16_t newValue)
 Set minLinks to the specified value in the currently-active mutator. More...
 
modelgbp::lacp::ConfigunsetMinLinks ()
 Unset minLinks in the currently-active mutator. More...
 
bool isModeSet ()
 Check whether mode has been set. More...
 
boost::optional< const uint8_t > getMode ()
 Get the value of mode if it has been set. More...
 
const uint8_t getMode (const uint8_t defaultValue)
 Get the value of mode if set, otherwise the value of default passed in. More...
 
modelgbp::lacp::ConfigsetMode (const uint8_t newValue)
 Set mode to the specified value in the currently-active mutator. More...
 
modelgbp::lacp::ConfigunsetMode ()
 Unset mode 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::lacp::ConfigsetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator. More...
 
modelgbp::lacp::ConfigunsetName ()
 Unset name in the currently-active mutator. More...
 
void remove ()
 Remove this instance using the currently-active mutator. More...
 
 Config (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
 Construct an instance of Config. More...
 

Static Public Member Functions

static boost::optional
< OF_SHARED_PTR
< modelgbp::lacp::Config > > 
resolve (opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
 Retrieve an instance of Config from the managed object store. More...
 
static boost::optional
< OF_SHARED_PTR
< modelgbp::lacp::Config > > 
resolve (const opflex::modb::URI &uri)
 Retrieve an instance of Config from the managed object store using the default framework instance. More...
 
static boost::optional
< OF_SHARED_PTR
< modelgbp::lacp::Config > > 
resolve (opflex::ofcore::OFFramework &framework, const std::string &platformConfigName)
 Retrieve an instance of Config 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::lacp::Config > > 
resolve (const std::string &platformConfigName)
 Retrieve an instance of Config 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 Config object with the specified URI using the currently-active mutator. More...
 
static void remove (const opflex::modb::URI &uri)
 Remove the Config 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 &platformConfigName)
 Remove the Config object with the specified path elements from the managed object store. More...
 
static void remove (const std::string &platformConfigName)
 Remove the Config 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 = 64
 The unique class ID for Config.
 

Constructor & Destructor Documentation

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

Construct an instance of Config.

This should not typically be called from user code.

Member Function Documentation

boost::optional<const uint8_t> modelgbp::lacp::Config::getControlBits ( )
inline

Get the value of controlBits if it has been set.

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

References isControlBitsSet().

Referenced by getControlBits().

const uint8_t modelgbp::lacp::Config::getControlBits ( const uint8_t  defaultValue)
inline

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

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

References getControlBits().

boost::optional<uint16_t> modelgbp::lacp::Config::getMaxLinks ( )
inline

Get the value of maxLinks if it has been set.

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

References isMaxLinksSet().

Referenced by getMaxLinks().

uint16_t modelgbp::lacp::Config::getMaxLinks ( uint16_t  defaultValue)
inline

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

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

References getMaxLinks().

boost::optional<uint16_t> modelgbp::lacp::Config::getMinLinks ( )
inline

Get the value of minLinks if it has been set.

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

References isMinLinksSet().

Referenced by getMinLinks().

uint16_t modelgbp::lacp::Config::getMinLinks ( uint16_t  defaultValue)
inline

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

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

References getMinLinks().

boost::optional<const uint8_t> modelgbp::lacp::Config::getMode ( )
inline

Get the value of mode if it has been set.

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

References isModeSet().

Referenced by getMode().

const uint8_t modelgbp::lacp::Config::getMode ( const uint8_t  defaultValue)
inline

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

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

References getMode().

boost::optional<const std::string&> modelgbp::lacp::Config::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().

const std::string& modelgbp::lacp::Config::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().

bool modelgbp::lacp::Config::isControlBitsSet ( )
inline

Check whether controlBits has been set.

Returns
true if controlBits has been set

Referenced by getControlBits().

bool modelgbp::lacp::Config::isMaxLinksSet ( )
inline

Check whether maxLinks has been set.

Returns
true if maxLinks has been set

Referenced by getMaxLinks().

bool modelgbp::lacp::Config::isMinLinksSet ( )
inline

Check whether minLinks has been set.

Returns
true if minLinks has been set

Referenced by getMinLinks().

bool modelgbp::lacp::Config::isModeSet ( )
inline

Check whether mode has been set.

Returns
true if mode has been set

Referenced by getMode().

bool modelgbp::lacp::Config::isNameSet ( )
inline

Check whether name has been set.

Returns
true if name has been set

Referenced by getName().

static void modelgbp::lacp::Config::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().

static void modelgbp::lacp::Config::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().

void modelgbp::lacp::Config::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.

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

Remove the Config 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.

static void modelgbp::lacp::Config::remove ( const opflex::modb::URI &  uri)
inlinestatic

Remove the Config 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
static void modelgbp::lacp::Config::remove ( opflex::ofcore::OFFramework &  framework,
const std::string &  platformConfigName 
)
inlinestatic

Remove the Config 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]/LacpConfig

Parameters
frameworkthe framework instance to use
platformConfigNamethe value of platformConfigName, a naming property for Config
Exceptions
std::logic_errorif no mutator is active

References CLASS_ID.

static void modelgbp::lacp::Config::remove ( const std::string &  platformConfigName)
inlinestatic

Remove the Config 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]/LacpConfig

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
Exceptions
std::logic_errorif no mutator is active
static boost::optional<OF_SHARED_PTR<modelgbp::lacp::Config> > modelgbp::lacp::Config::resolve ( opflex::ofcore::OFFramework &  framework,
const opflex::modb::URI &  uri 
)
inlinestatic

Retrieve an instance of Config 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::platform::Config::resolveLacpConfig().

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

Retrieve an instance of Config 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.

static boost::optional<OF_SHARED_PTR<modelgbp::lacp::Config> > modelgbp::lacp::Config::resolve ( opflex::ofcore::OFFramework &  framework,
const std::string &  platformConfigName 
)
inlinestatic

Retrieve an instance of Config 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]/LacpConfig

Parameters
frameworkthe framework instance to use
platformConfigNamethe value of platformConfigName, a naming property for Config
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

static boost::optional<OF_SHARED_PTR<modelgbp::lacp::Config> > modelgbp::lacp::Config::resolve ( const std::string &  platformConfigName)
inlinestatic

Retrieve an instance of Config 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]/LacpConfig

Parameters
platformConfigNamethe value of platformConfigName, a naming property for Config
Returns
a shared pointer to the object or boost::none if it does not exist.

References resolve().

modelgbp::lacp::Config& modelgbp::lacp::Config::setControlBits ( const uint8_t  newValue)
inline

Set controlBits 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
modelgbp::lacp::Config& modelgbp::lacp::Config::setMaxLinks ( uint16_t  newValue)
inline

Set maxLinks 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
modelgbp::lacp::Config& modelgbp::lacp::Config::setMinLinks ( uint16_t  newValue)
inline

Set minLinks 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
modelgbp::lacp::Config& modelgbp::lacp::Config::setMode ( const uint8_t  newValue)
inline

Set mode 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
modelgbp::lacp::Config& modelgbp::lacp::Config::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
static void modelgbp::lacp::Config::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().

static void modelgbp::lacp::Config::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().

modelgbp::lacp::Config& modelgbp::lacp::Config::unsetControlBits ( )
inline

Unset controlBits 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
modelgbp::lacp::Config& modelgbp::lacp::Config::unsetMaxLinks ( )
inline

Unset maxLinks 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
modelgbp::lacp::Config& modelgbp::lacp::Config::unsetMinLinks ( )
inline

Unset minLinks 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
modelgbp::lacp::Config& modelgbp::lacp::Config::unsetMode ( )
inline

Unset mode 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
modelgbp::lacp::Config& modelgbp::lacp::Config::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

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