11#ifndef GI_INV_STATICROUTE_HPP
12#define GI_INV_STATICROUTE_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 = 133;
44 boost::optional<const std::string&>
getDest()
139 getTLMutator().modify(
getClassId(),
getURI())->unset(4358147ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::inv::StaticRoute> >
resolve(
212 const opflex::modb::URI&
uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::StaticRoute>(
framework,
CLASS_ID,
uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::inv::StaticRoute> >
resolve(
229 const opflex::modb::URI&
uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::StaticRoute>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
258 static boost::optional<OF_SHARED_PTR<modelgbp::inv::StaticRoute> >
resolve(
292 static boost::optional<OF_SHARED_PTR<modelgbp::inv::StaticRoute> >
resolve(
326 const opflex::modb::URI&
uri)
343 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
424 opflex::modb::ObjectListener*
listener)
426 opflex::modb::mointernal
442 opflex::modb::ObjectListener*
listener)
455 opflex::modb::ObjectListener*
listener)
457 opflex::modb::mointernal
468 opflex::modb::ObjectListener*
listener)
479 const opflex::modb::URI&
uri,
Definition StaticRoute.hpp:23
const std::string & getDest(const std::string &defaultValue)
Get the value of dest if set, otherwise the value of default passed in.
Definition StaticRoute.hpp:56
const std::string & getNextHop(const std::string &defaultValue)
Get the value of nextHop if set, otherwise the value of default passed in.
Definition StaticRoute.hpp:112
void remove()
Remove this instance using the currently-active mutator.
Definition StaticRoute.hpp:310
static void remove(const opflex::modb::URI &uri)
Remove the StaticRoute object with the specified URI using the currently-active mutator and the defau...
Definition StaticRoute.hpp:341
static boost::optional< OF_SHARED_PTR< modelgbp::inv::StaticRoute > > resolve(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invStaticRouteDest, const uint8_t invStaticRoutePrefixLen, const std::string &invStaticRouteNextHop)
Retrieve an instance of StaticRoute from the managed object store by constructing its URI from the pa...
Definition StaticRoute.hpp:258
static boost::optional< OF_SHARED_PTR< modelgbp::inv::StaticRoute > > resolve(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invStaticRouteDest, const uint8_t invStaticRoutePrefixLen, const std::string &invStaticRouteNextHop)
Retrieve an instance of StaticRoute from the default managed object store by constructing its URI fro...
Definition StaticRoute.hpp:292
boost::optional< const uint8_t > getPrefixLen()
Get the value of prefixLen if it has been set.
Definition StaticRoute.hpp:156
modelgbp::inv::StaticRoute & setPrefixLen(const uint8_t newValue)
Set prefixLen to the specified value in the currently-active mutator.
Definition StaticRoute.hpp:181
modelgbp::inv::StaticRoute & unsetDest()
Unset dest in the currently-active mutator.
Definition StaticRoute.hpp:81
modelgbp::inv::StaticRoute & setDest(const std::string &newValue)
Set dest to the specified value in the currently-active mutator.
Definition StaticRoute.hpp:69
bool isNextHopSet()
Check whether nextHop has been set.
Definition StaticRoute.hpp:91
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition StaticRoute.hpp:467
static boost::optional< OF_SHARED_PTR< modelgbp::inv::StaticRoute > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of StaticRoute from the managed object store using the default framework instanc...
Definition StaticRoute.hpp:228
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 StaticRoute.hpp:441
modelgbp::inv::StaticRoute & unsetPrefixLen()
Unset prefixLen in the currently-active mutator.
Definition StaticRoute.hpp:193
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for StaticRoute.
Definition StaticRoute.hpp:29
modelgbp::inv::StaticRoute & unsetNextHop()
Unset nextHop in the currently-active mutator.
Definition StaticRoute.hpp:137
StaticRoute(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of StaticRoute.
Definition StaticRoute.hpp:477
const uint8_t getPrefixLen(const uint8_t defaultValue)
Get the value of prefixLen if set, otherwise the value of default passed in.
Definition StaticRoute.hpp:168
boost::optional< const std::string & > getDest()
Get the value of dest if it has been set.
Definition StaticRoute.hpp:44
bool isDestSet()
Check whether dest has been set.
Definition StaticRoute.hpp:35
bool isPrefixLenSet()
Check whether prefixLen has been set.
Definition StaticRoute.hpp:147
static boost::optional< OF_SHARED_PTR< modelgbp::inv::StaticRoute > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of StaticRoute from the managed object store.
Definition StaticRoute.hpp:210
static void remove(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invStaticRouteDest, const uint8_t invStaticRoutePrefixLen, const std::string &invStaticRouteNextHop)
Remove the StaticRoute object with the specified path elements from the managed object store.
Definition StaticRoute.hpp:368
modelgbp::inv::StaticRoute & setNextHop(const std::string &newValue)
Set nextHop to the specified value in the currently-active mutator.
Definition StaticRoute.hpp:125
static void remove(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid, const std::string &invStaticRouteDest, const uint8_t invStaticRoutePrefixLen, const std::string &invStaticRouteNextHop)
Remove the StaticRoute object with the specified path elements from the managed object store using th...
Definition StaticRoute.hpp:401
boost::optional< const std::string & > getNextHop()
Get the value of nextHop if it has been set.
Definition StaticRoute.hpp:100
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 StaticRoute.hpp:422
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition StaticRoute.hpp:453
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the StaticRoute object with the specified URI using the currently-active mutator.
Definition StaticRoute.hpp:325
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12