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.
 
boost::optional< const uint8_tgetControlBits ()
 Get the value of controlBits if it has been set.
 
const uint8_t getControlBits (const uint8_t defaultValue)
 Get the value of controlBits if set, otherwise the value of default passed in.
 
modelgbp::lacp::ConfigsetControlBits (const uint8_t newValue)
 Set controlBits to the specified value in the currently-active mutator.
 
modelgbp::lacp::ConfigunsetControlBits ()
 Unset controlBits in the currently-active mutator.
 
bool isMaxLinksSet ()
 Check whether maxLinks has been set.
 
boost::optional< uint16_tgetMaxLinks ()
 Get the value of maxLinks if it has been set.
 
uint16_t getMaxLinks (uint16_t defaultValue)
 Get the value of maxLinks if set, otherwise the value of default passed in.
 
modelgbp::lacp::ConfigsetMaxLinks (uint16_t newValue)
 Set maxLinks to the specified value in the currently-active mutator.
 
modelgbp::lacp::ConfigunsetMaxLinks ()
 Unset maxLinks in the currently-active mutator.
 
bool isMinLinksSet ()
 Check whether minLinks has been set.
 
boost::optional< uint16_tgetMinLinks ()
 Get the value of minLinks if it has been set.
 
uint16_t getMinLinks (uint16_t defaultValue)
 Get the value of minLinks if set, otherwise the value of default passed in.
 
modelgbp::lacp::ConfigsetMinLinks (uint16_t newValue)
 Set minLinks to the specified value in the currently-active mutator.
 
modelgbp::lacp::ConfigunsetMinLinks ()
 Unset minLinks in the currently-active mutator.
 
bool isModeSet ()
 Check whether mode has been set.
 
boost::optional< const uint8_tgetMode ()
 Get the value of mode if it has been set.
 
const uint8_t getMode (const uint8_t defaultValue)
 Get the value of mode if set, otherwise the value of default passed in.
 
modelgbp::lacp::ConfigsetMode (const uint8_t newValue)
 Set mode to the specified value in the currently-active mutator.
 
modelgbp::lacp::ConfigunsetMode ()
 Unset mode 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::lacp::ConfigsetName (const std::string &newValue)
 Set name to the specified value in the currently-active mutator.
 
modelgbp::lacp::ConfigunsetName ()
 Unset name in the currently-active mutator.
 
void remove ()
 Remove this instance using the currently-active mutator.
 
 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.
 

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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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 Public Attributes

static const opflex::modb::class_id_t CLASS_ID = 64
 The unique class ID for Config.
 

Constructor & Destructor Documentation

◆ Config()

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

◆ getControlBits() [1/2]

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(), and resolve().

Referenced by getControlBits().

◆ getControlBits() [2/2]

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(), and resolve().

◆ getMaxLinks() [1/2]

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(), and resolve().

Referenced by getMaxLinks().

◆ getMaxLinks() [2/2]

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(), and resolve().

◆ getMinLinks() [1/2]

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(), and resolve().

Referenced by getMinLinks().

◆ getMinLinks() [2/2]

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(), and resolve().

◆ getMode() [1/2]

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(), and resolve().

Referenced by getMode().

◆ getMode() [2/2]

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(), and resolve().

◆ getName() [1/2]

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(), and resolve().

Referenced by getName().

◆ getName() [2/2]

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(), and resolve().

◆ isControlBitsSet()

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

Check whether controlBits has been set.

Returns
true if controlBits has been set

References resolve().

Referenced by getControlBits().

◆ isMaxLinksSet()

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

Check whether maxLinks has been set.

Returns
true if maxLinks has been set

References resolve().

Referenced by getMaxLinks().

◆ isMinLinksSet()

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

Check whether minLinks has been set.

Returns
true if minLinks has been set

References resolve().

Referenced by getMinLinks().

◆ isModeSet()

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

Check whether mode has been set.

Returns
true if mode has been set

References resolve().

Referenced by getMode().

◆ isNameSet()

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

Check whether name has been set.

Returns
true if name has been set

References resolve().

Referenced by getName().

◆ registerListener() [1/2]

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(), and resolve().

◆ registerListener() [2/2]

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, and resolve().

Referenced by registerListener().

◆ remove() [1/5]

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, and resolve().

Referenced by remove(), and remove().

◆ remove() [2/5]

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

References remove(), and resolve().

◆ remove() [3/5]

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

References remove(), and resolve().

◆ remove() [4/5]

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, and resolve().

◆ remove() [5/5]

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, and resolve().

◆ resolve() [1/4]

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, and resolve().

◆ resolve() [2/4]

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().

◆ resolve() [3/4]

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, and resolve().

Referenced by getControlBits(), getControlBits(), getMaxLinks(), getMaxLinks(), getMinLinks(), getMinLinks(), getMode(), getMode(), getName(), getName(), isControlBitsSet(), isMaxLinksSet(), isMinLinksSet(), isModeSet(), isNameSet(), registerListener(), registerListener(), remove(), remove(), remove(), remove(), remove(), resolve(), resolve(), resolve(), resolve(), modelgbp::platform::Config::resolveLacpConfig(), setControlBits(), setMaxLinks(), setMinLinks(), setMode(), setName(), unregisterListener(), unregisterListener(), unsetControlBits(), unsetMaxLinks(), unsetMinLinks(), unsetMode(), and unsetName().

◆ resolve() [4/4]

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().

◆ setControlBits()

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

References resolve().

◆ setMaxLinks()

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

References resolve().

◆ setMinLinks()

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

References resolve().

◆ setMode()

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

References resolve().

◆ setName()

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

References resolve().

◆ unregisterListener() [1/2]

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 resolve(), and unregisterListener().

◆ unregisterListener() [2/2]

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, and resolve().

Referenced by unregisterListener().

◆ unsetControlBits()

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

References resolve().

◆ unsetMaxLinks()

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

References resolve().

◆ unsetMinLinks()

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

References resolve().

◆ unsetMode()

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

References resolve().

◆ unsetName()

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

References resolve().


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