11#ifndef GI_GBPE_TUNNELEP_HPP
12#define GI_GBPE_TUNNELEP_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbpe/Attestation.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 45;
160 boost::optional<const opflex::modb::MAC&>
getMac()
255 getTLMutator().modify(
getClassId(),
getURI())->unset(1474562ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
311 getTLMutator().modify(
getClassId(),
getURI())->unset(1474561ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
326 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::TunnelEp> >
resolve(
328 const opflex::modb::URI&
uri)
330 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::TunnelEp>(
framework,
CLASS_ID,
uri);
344 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::TunnelEp> >
resolve(
345 const opflex::modb::URI&
uri)
347 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::TunnelEp>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
366 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::TunnelEp> >
resolve(
388 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::TunnelEp> >
resolve(
450 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::Attestation>(
478 const opflex::modb::URI&
uri)
495 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
552 opflex::modb::ObjectListener*
listener)
554 opflex::modb::mointernal
570 opflex::modb::ObjectListener*
listener)
583 opflex::modb::ObjectListener*
listener)
585 opflex::modb::mointernal
596 opflex::modb::ObjectListener*
listener)
607 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Attestation from the managed object store.
Definition Attestation.hpp:210
Definition TunnelEp.hpp:27
modelgbp::gbpe::TunnelEp & unsetMac()
Unset mac in the currently-active mutator.
Definition TunnelEp.hpp:197
modelgbp::gbpe::TunnelEp & setTerminatorIp(const std::string &newValue)
Set terminatorIp to the specified value in the currently-active mutator.
Definition TunnelEp.hpp:241
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for TunnelEp.
Definition TunnelEp.hpp:33
static void remove(const std::string &gbpeTunnelEpUuid)
Remove the TunnelEp object with the specified path elements from the managed object store using the d...
Definition TunnelEp.hpp:533
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the TunnelEp object with the specified URI using the currently-active mutator.
Definition TunnelEp.hpp:477
modelgbp::gbpe::TunnelEp & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition TunnelEp.hpp:297
static void remove(const opflex::modb::URI &uri)
Remove the TunnelEp object with the specified URI using the currently-active mutator and the default ...
Definition TunnelEp.hpp:493
void resolveGbpeAttestation(std::vector< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::Attestation.
Definition TunnelEp.hpp:448
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 TunnelEp.hpp:569
static void remove(opflex::ofcore::OFFramework &framework, const std::string &gbpeTunnelEpUuid)
Remove the TunnelEp object with the specified path elements from the managed object store.
Definition TunnelEp.hpp:512
bool isEncapIdSet()
Check whether encapId has been set.
Definition TunnelEp.hpp:39
uint32_t getEncapId(uint32_t defaultValue)
Get the value of encapId if set, otherwise the value of default passed in.
Definition TunnelEp.hpp:60
bool isEncapTypeSet()
Check whether encapType has been set.
Definition TunnelEp.hpp:95
modelgbp::gbpe::TunnelEp & setMac(const opflex::modb::MAC &newValue)
Set mac to the specified value in the currently-active mutator.
Definition TunnelEp.hpp:185
bool isTerminatorIpSet()
Check whether terminatorIp has been set.
Definition TunnelEp.hpp:207
void remove()
Remove this instance using the currently-active mutator.
Definition TunnelEp.hpp:462
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 TunnelEp.hpp:550
modelgbp::gbpe::TunnelEp & unsetEncapId()
Unset encapId in the currently-active mutator.
Definition TunnelEp.hpp:85
modelgbp::gbpe::TunnelEp & unsetEncapType()
Unset encapType in the currently-active mutator.
Definition TunnelEp.hpp:141
boost::optional< const uint8_t > getEncapType()
Get the value of encapType if it has been set.
Definition TunnelEp.hpp:104
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::TunnelEp > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of TunnelEp from the managed object store using the default framework instance.
Definition TunnelEp.hpp:344
TunnelEp(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of TunnelEp.
Definition TunnelEp.hpp:605
const std::string & getTerminatorIp(const std::string &defaultValue)
Get the value of terminatorIp if set, otherwise the value of default passed in.
Definition TunnelEp.hpp:228
boost::optional< const opflex::modb::MAC & > getMac()
Get the value of mac if it has been set.
Definition TunnelEp.hpp:160
OF_SHARED_PTR< modelgbp::gbpe::Attestation > addGbpeAttestation(const std::string &gbpeAttestationName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition TunnelEp.hpp:423
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveGbpeAttestation(const std::string &gbpeAttestationName)
Retrieve the child object with the specified naming properties.
Definition TunnelEp.hpp:405
modelgbp::gbpe::TunnelEp & setEncapId(uint32_t newValue)
Set encapId to the specified value in the currently-active mutator.
Definition TunnelEp.hpp:73
boost::optional< const std::string & > getTerminatorIp()
Get the value of terminatorIp if it has been set.
Definition TunnelEp.hpp:216
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition TunnelEp.hpp:272
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::TunnelEp > > resolve(opflex::ofcore::OFFramework &framework, const std::string &gbpeTunnelEpUuid)
Retrieve an instance of TunnelEp from the managed object store by constructing its URI from the path ...
Definition TunnelEp.hpp:366
boost::optional< uint32_t > getEncapId()
Get the value of encapId if it has been set.
Definition TunnelEp.hpp:48
modelgbp::gbpe::TunnelEp & unsetTerminatorIp()
Unset terminatorIp in the currently-active mutator.
Definition TunnelEp.hpp:253
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::TunnelEp > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of TunnelEp from the managed object store.
Definition TunnelEp.hpp:326
const opflex::modb::MAC & getMac(const opflex::modb::MAC &defaultValue)
Get the value of mac if set, otherwise the value of default passed in.
Definition TunnelEp.hpp:172
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition TunnelEp.hpp:581
modelgbp::gbpe::TunnelEp & setEncapType(const uint8_t newValue)
Set encapType to the specified value in the currently-active mutator.
Definition TunnelEp.hpp:129
bool isUuidSet()
Check whether uuid has been set.
Definition TunnelEp.hpp:263
modelgbp::gbpe::TunnelEp & unsetUuid()
Unset uuid in the currently-active mutator.
Definition TunnelEp.hpp:309
bool isMacSet()
Check whether mac has been set.
Definition TunnelEp.hpp:151
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition TunnelEp.hpp:284
const uint8_t getEncapType(const uint8_t defaultValue)
Get the value of encapType if set, otherwise the value of default passed in.
Definition TunnelEp.hpp:116
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition TunnelEp.hpp:595
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::TunnelEp > > resolve(const std::string &gbpeTunnelEpUuid)
Retrieve an instance of TunnelEp from the default managed object store by constructing its URI from t...
Definition TunnelEp.hpp:388
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12