11 #ifndef GI_GBPE_ATTESTATION_HPP
12 #define GI_GBPE_ATTESTATION_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 = 47;
37 return getObjectInstance().isSet(1540097ul, opflex::modb::PropertyInfo::STRING);
44 boost::optional<const std::string&>
getName()
47 return getObjectInstance().getString(1540097ul);
56 const std::string&
getName(
const std::string& defaultValue)
58 return getName().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setString(1540097ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(1540097ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(1540098ul, opflex::modb::PropertyInfo::STRING);
103 return getObjectInstance().getString(1540098ul);
127 getTLMutator().modify(getClassId(), getURI())->setString(1540098ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(1540098ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(1540099ul, opflex::modb::PropertyInfo::STRING);
159 return getObjectInstance().getString(1540099ul);
183 getTLMutator().modify(getClassId(), getURI())->setString(1540099ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(1540099ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::Attestation> >
resolve(
211 opflex::ofcore::OFFramework& framework,
212 const opflex::modb::URI& uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::Attestation>(framework,
CLASS_ID, uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::Attestation> >
resolve(
229 const opflex::modb::URI& uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::Attestation>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
253 opflex::ofcore::OFFramework& framework,
254 const std::string& gbpeVMEpUuid,
255 const std::string& gbpeAttestationName)
257 return resolve(framework,opflex::modb::URIBuilder().addElement(
"GbpeVMUniverse").addElement(
"GbpeVMEp").addElement(gbpeVMEpUuid).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
278 const std::string& gbpeVMEpUuid,
279 const std::string& gbpeAttestationName)
303 opflex::ofcore::OFFramework& framework,
304 const std::string& gbpeTunnelEpUuid,
305 const std::string& gbpeAttestationName)
307 return resolve(framework,opflex::modb::URIBuilder().addElement(
"GbpeTunnelEpUniverse").addElement(
"GbpeTunnelEp").addElement(gbpeTunnelEpUuid).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
328 const std::string& gbpeTunnelEpUuid,
329 const std::string& gbpeAttestationName)
355 opflex::ofcore::OFFramework& framework,
356 const std::string& eprL2EpContext,
357 const opflex::modb::MAC& eprL2EpMac,
358 const std::string& gbpeAttestationName)
360 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
383 const std::string& eprL2EpContext,
384 const opflex::modb::MAC& eprL2EpMac,
385 const std::string& gbpeAttestationName)
413 opflex::ofcore::OFFramework& framework,
414 const std::string& eprL2EpContext,
415 const opflex::modb::MAC& eprL2EpMac,
416 const std::string& eprL3NetIp,
417 const std::string& gbpeAttestationName)
419 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"EprL3Net").addElement(eprL3NetIp).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
444 const std::string& eprL2EpContext,
445 const opflex::modb::MAC& eprL2EpMac,
446 const std::string& eprL3NetIp,
447 const std::string& gbpeAttestationName)
473 opflex::ofcore::OFFramework& framework,
474 const std::string& eprL3EpContext,
475 const std::string& eprL3EpIp,
476 const std::string& gbpeAttestationName)
478 return resolve(framework,opflex::modb::URIBuilder().addElement(
"EprL3Universe").addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
501 const std::string& eprL3EpContext,
502 const std::string& eprL3EpIp,
503 const std::string& gbpeAttestationName)
518 getTLMutator().remove(
CLASS_ID, getURI());
531 static void remove(opflex::ofcore::OFFramework& framework,
532 const opflex::modb::URI& uri)
534 MO::remove(framework,
CLASS_ID, uri);
547 static void remove(
const opflex::modb::URI& uri)
549 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
569 opflex::ofcore::OFFramework& framework,
570 const std::string& gbpeVMEpUuid,
571 const std::string& gbpeAttestationName)
573 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"GbpeVMUniverse").addElement(
"GbpeVMEp").addElement(gbpeVMEpUuid).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
593 const std::string& gbpeVMEpUuid,
594 const std::string& gbpeAttestationName)
616 opflex::ofcore::OFFramework& framework,
617 const std::string& gbpeTunnelEpUuid,
618 const std::string& gbpeAttestationName)
620 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"GbpeTunnelEpUniverse").addElement(
"GbpeTunnelEp").addElement(gbpeTunnelEpUuid).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
640 const std::string& gbpeTunnelEpUuid,
641 const std::string& gbpeAttestationName)
665 opflex::ofcore::OFFramework& framework,
666 const std::string& eprL2EpContext,
667 const opflex::modb::MAC& eprL2EpMac,
668 const std::string& gbpeAttestationName)
670 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
692 const std::string& eprL2EpContext,
693 const opflex::modb::MAC& eprL2EpMac,
694 const std::string& gbpeAttestationName)
720 opflex::ofcore::OFFramework& framework,
721 const std::string& eprL2EpContext,
722 const opflex::modb::MAC& eprL2EpMac,
723 const std::string& eprL3NetIp,
724 const std::string& gbpeAttestationName)
726 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL2Universe").addElement(
"EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).addElement(
"EprL3Net").addElement(eprL3NetIp).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
750 const std::string& eprL2EpContext,
751 const opflex::modb::MAC& eprL2EpMac,
752 const std::string& eprL3NetIp,
753 const std::string& gbpeAttestationName)
777 opflex::ofcore::OFFramework& framework,
778 const std::string& eprL3EpContext,
779 const std::string& eprL3EpIp,
780 const std::string& gbpeAttestationName)
782 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"EprL3Universe").addElement(
"EprL3Ep").addElement(eprL3EpContext).addElement(eprL3EpIp).addElement(
"GbpeAttestation").addElement(gbpeAttestationName).build());
804 const std::string& eprL3EpContext,
805 const std::string& eprL3EpIp,
806 const std::string& gbpeAttestationName)
823 opflex::ofcore::OFFramework& framework,
824 opflex::modb::ObjectListener* listener)
826 opflex::modb::mointernal
827 ::MO::registerListener(framework, listener,
CLASS_ID);
842 opflex::modb::ObjectListener* listener)
854 opflex::ofcore::OFFramework& framework,
855 opflex::modb::ObjectListener* listener)
857 opflex::modb::mointernal
858 ::MO::unregisterListener(framework, listener,
CLASS_ID);
868 opflex::modb::ObjectListener* listener)
878 opflex::ofcore::OFFramework& framework,
879 const opflex::modb::URI& uri,
880 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
881 : MO(framework,
CLASS_ID, uri, oi) { }
886 #endif // GI_GBPE_ATTESTATION_HPP
bool isValidatorSet()
Check whether validator has been set.
Definition: Attestation.hpp:91
static void removeUnderEprL2UniverseEprL2Ep(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store using th...
Definition: Attestation.hpp:691
bool isValidatorMacSet()
Check whether validatorMac has been set.
Definition: Attestation.hpp:147
modelgbp::gbpe::Attestation & setValidator(const std::string &newValue)
Set validator to the specified value in the currently-active mutator.
Definition: Attestation.hpp:125
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition: Attestation.hpp:44
modelgbp::gbpe::Attestation & unsetName()
Unset name in the currently-active mutator.
Definition: Attestation.hpp:81
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Attestation from the managed object store using the default framework instanc...
Definition: Attestation.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: Attestation.hpp:841
static void removeUnderEprL2UniverseEprL2Ep(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store...
Definition: Attestation.hpp:664
static void removeUnderGbpeTunnelEpUniverseGbpeTunnelEp(opflex::ofcore::OFFramework &framework, const std::string &gbpeTunnelEpUuid, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store...
Definition: Attestation.hpp:615
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderEprL3UniverseEprL3Ep(opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the managed object store by constructing its URI from the pa...
Definition: Attestation.hpp:472
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderGbpeVMUniverseGbpeVMEp(opflex::ofcore::OFFramework &framework, const std::string &gbpeVMEpUuid, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the managed object store by constructing its URI from the pa...
Definition: Attestation.hpp:252
static void removeUnderGbpeVMUniverseGbpeVMEp(const std::string &gbpeVMEpUuid, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store using th...
Definition: Attestation.hpp:592
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Attestation.
Definition: Attestation.hpp:29
modelgbp::gbpe::Attestation & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition: Attestation.hpp:69
static void removeUnderGbpeTunnelEpUniverseGbpeTunnelEp(const std::string &gbpeTunnelEpUuid, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store using th...
Definition: Attestation.hpp:639
static void removeUnderGbpeVMUniverseGbpeVMEp(opflex::ofcore::OFFramework &framework, const std::string &gbpeVMEpUuid, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store...
Definition: Attestation.hpp:568
static void removeUnderEprL2UniverseEprL2EpEprL3Net(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &eprL3NetIp, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store...
Definition: Attestation.hpp:719
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderEprL2UniverseEprL2EpEprL3Net(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &eprL3NetIp, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the managed object store by constructing its URI from the pa...
Definition: Attestation.hpp:412
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderEprL3UniverseEprL3Ep(const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the default managed object store by constructing its URI fro...
Definition: Attestation.hpp:500
const std::string & getValidator(const std::string &defaultValue)
Get the value of validator if set, otherwise the value of default passed in.
Definition: Attestation.hpp:112
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: Attestation.hpp:853
static void removeUnderEprL2UniverseEprL2EpEprL3Net(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &eprL3NetIp, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store using th...
Definition: Attestation.hpp:749
Attestation(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Attestation.
Definition: Attestation.hpp:877
bool isNameSet()
Check whether name has been set.
Definition: Attestation.hpp:35
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderGbpeTunnelEpUniverseGbpeTunnelEp(const std::string &gbpeTunnelEpUuid, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the default managed object store by constructing its URI fro...
Definition: Attestation.hpp:327
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderEprL2UniverseEprL2EpEprL3Net(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &eprL3NetIp, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the default managed object store by constructing its URI fro...
Definition: Attestation.hpp:443
modelgbp::gbpe::Attestation & unsetValidator()
Unset validator in the currently-active mutator.
Definition: Attestation.hpp:137
static void removeUnderEprL3UniverseEprL3Ep(opflex::ofcore::OFFramework &framework, const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store...
Definition: Attestation.hpp:776
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderEprL2UniverseEprL2Ep(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the managed object store by constructing its URI from the pa...
Definition: Attestation.hpp:354
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderEprL2UniverseEprL2Ep(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the default managed object store by constructing its URI fro...
Definition: Attestation.hpp:382
Definition: Attestation.hpp:21
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderGbpeTunnelEpUniverseGbpeTunnelEp(opflex::ofcore::OFFramework &framework, const std::string &gbpeTunnelEpUuid, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the managed object store by constructing its URI from the pa...
Definition: Attestation.hpp:302
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: Attestation.hpp:822
boost::optional< const std::string & > getValidatorMac()
Get the value of validatorMac if it has been set.
Definition: Attestation.hpp:156
boost::optional< const std::string & > getValidator()
Get the value of validator if it has been set.
Definition: Attestation.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveUnderGbpeVMUniverseGbpeVMEp(const std::string &gbpeVMEpUuid, const std::string &gbpeAttestationName)
Retrieve an instance of Attestation from the default managed object store by constructing its URI fro...
Definition: Attestation.hpp:277
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: Attestation.hpp:867
modelgbp::gbpe::Attestation & setValidatorMac(const std::string &newValue)
Set validatorMac to the specified value in the currently-active mutator.
Definition: Attestation.hpp:181
static void removeUnderEprL3UniverseEprL3Ep(const std::string &eprL3EpContext, const std::string &eprL3EpIp, const std::string &gbpeAttestationName)
Remove the Attestation object with the specified path elements from the managed object store using th...
Definition: Attestation.hpp:803
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition: Attestation.hpp:56
const std::string & getValidatorMac(const std::string &defaultValue)
Get the value of validatorMac if set, otherwise the value of default passed in.
Definition: Attestation.hpp:168
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
modelgbp::gbpe::Attestation & unsetValidatorMac()
Unset validatorMac in the currently-active mutator.
Definition: Attestation.hpp:193