11#ifndef GI_LACP_CONFIG_HPP
12#define GI_LACP_CONFIG_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
22 :
public opflex::modb::mointernal::MO
29 static const opflex::modb::class_id_t
CLASS_ID = 64;
307 getTLMutator().modify(
getClassId(),
getURI())->unset(2097153ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
322 static boost::optional<OF_SHARED_PTR<modelgbp::lacp::Config> >
resolve(
324 const opflex::modb::URI&
uri)
340 static boost::optional<OF_SHARED_PTR<modelgbp::lacp::Config> >
resolve(
341 const opflex::modb::URI&
uri)
343 return opflex::modb::mointernal::MO::resolve<modelgbp::lacp::Config>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
362 static boost::optional<OF_SHARED_PTR<modelgbp::lacp::Config> >
resolve(
384 static boost::optional<OF_SHARED_PTR<modelgbp::lacp::Config> >
resolve(
414 const opflex::modb::URI&
uri)
431 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
488 opflex::modb::ObjectListener*
listener)
490 opflex::modb::mointernal
506 opflex::modb::ObjectListener*
listener)
519 opflex::modb::ObjectListener*
listener)
521 opflex::modb::mointernal
532 opflex::modb::ObjectListener*
listener)
543 const opflex::modb::URI&
uri,
Definition lacp/Config.hpp:23
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Config.
Definition lacp/Config.hpp:29
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.
Definition lacp/Config.hpp:413
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.
Definition lacp/Config.hpp:448
modelgbp::lacp::Config & unsetControlBits()
Unset controlBits in the currently-active mutator.
Definition lacp/Config.hpp:81
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.
Definition lacp/Config.hpp:340
static void registerListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class.
Definition lacp/Config.hpp:486
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition lacp/Config.hpp:268
bool isNameSet()
Check whether name has been set.
Definition lacp/Config.hpp:259
boost::optional< const uint8_t > getControlBits()
Get the value of controlBits if it has been set.
Definition lacp/Config.hpp:44
uint16_t getMaxLinks(uint16_t defaultValue)
Get the value of maxLinks if set, otherwise the value of default passed in.
Definition lacp/Config.hpp:112
modelgbp::lacp::Config & setMaxLinks(uint16_t newValue)
Set maxLinks to the specified value in the currently-active mutator.
Definition lacp/Config.hpp:125
bool isModeSet()
Check whether mode has been set.
Definition lacp/Config.hpp:203
bool isMinLinksSet()
Check whether minLinks has been set.
Definition lacp/Config.hpp:147
static void remove(const std::string &platformConfigName)
Remove the Config object with the specified path elements from the managed object store using the def...
Definition lacp/Config.hpp:469
const uint8_t getMode(const uint8_t defaultValue)
Get the value of mode if set, otherwise the value of default passed in.
Definition lacp/Config.hpp:224
static void remove(const opflex::modb::URI &uri)
Remove the Config object with the specified URI using the currently-active mutator and the default fr...
Definition lacp/Config.hpp:429
modelgbp::lacp::Config & unsetMode()
Unset mode in the currently-active mutator.
Definition lacp/Config.hpp:249
boost::optional< const uint8_t > getMode()
Get the value of mode if it has been set.
Definition lacp/Config.hpp:212
bool isMaxLinksSet()
Check whether maxLinks has been set.
Definition lacp/Config.hpp:91
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.
Definition lacp/Config.hpp:541
modelgbp::lacp::Config & unsetName()
Unset name in the currently-active mutator.
Definition lacp/Config.hpp:305
static void registerListener(opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class with the default framework...
Definition lacp/Config.hpp:505
modelgbp::lacp::Config & setMinLinks(uint16_t newValue)
Set minLinks to the specified value in the currently-active mutator.
Definition lacp/Config.hpp:181
uint16_t getMinLinks(uint16_t defaultValue)
Get the value of minLinks if set, otherwise the value of default passed in.
Definition lacp/Config.hpp:168
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition lacp/Config.hpp:517
modelgbp::lacp::Config & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition lacp/Config.hpp:293
boost::optional< uint16_t > getMinLinks()
Get the value of minLinks if it has been set.
Definition lacp/Config.hpp:156
boost::optional< uint16_t > getMaxLinks()
Get the value of maxLinks if it has been set.
Definition lacp/Config.hpp:100
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition lacp/Config.hpp:531
modelgbp::lacp::Config & setControlBits(const uint8_t newValue)
Set controlBits to the specified value in the currently-active mutator.
Definition lacp/Config.hpp:69
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...
Definition lacp/Config.hpp:384
bool isControlBitsSet()
Check whether controlBits has been set.
Definition lacp/Config.hpp:35
const uint8_t getControlBits(const uint8_t defaultValue)
Get the value of controlBits if set, otherwise the value of default passed in.
Definition lacp/Config.hpp:56
modelgbp::lacp::Config & unsetMinLinks()
Unset minLinks in the currently-active mutator.
Definition lacp/Config.hpp:193
modelgbp::lacp::Config & unsetMaxLinks()
Unset maxLinks in the currently-active mutator.
Definition lacp/Config.hpp:137
void remove()
Remove this instance using the currently-active mutator.
Definition lacp/Config.hpp:398
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.
Definition lacp/Config.hpp:322
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition lacp/Config.hpp:280
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 el...
Definition lacp/Config.hpp:362
modelgbp::lacp::Config & setMode(const uint8_t newValue)
Set mode to the specified value in the currently-active mutator.
Definition lacp/Config.hpp:237
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12