16 #ifndef __VOM_ROUTE_DOMAIN_H__ 17 #define __VOM_ROUTE_DOMAIN_H__ 62 std::shared_ptr<route_domain>
singular()
const;
82 static std::shared_ptr<route_domain>
find(
const key_t& temp);
87 static void dump(std::ostream& os);
117 void handle_replay();
122 void show(std::ostream& os);
143 static std::shared_ptr<route_domain> find_or_add(
const route_domain& temp);
179 static
singular_db<route::table_id_t, route_domain> m_db;
bool operator==(const route_domain &r) const
comparison operator - for UT
uint32_t table_id_t
type def the table-id
static std::shared_ptr< route_domain > find(const key_t &temp)
Find the instnace of the route domain in the OM.
route::table_id_t table_id() const
Get the table ID.
std::string to_string() const
Debug print function.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
A HW::item is data that is either to be written to or read from VPP/HW.
key_t key() const
Get the route-domain's key.
static std::shared_ptr< route_domain > get_default()
Return the sigular instance for the default table.
void replay(void)
replay the object to create it in hardware
A Database to store the unique 'singular' instances of a single object type.
Class definition for listeners to OM events.
inspect command handler Handler
void event_handler(void *tls_async)
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
The interface to writing objects into VPP OM.
A base class for all object_base in the VPP object_base-Model.
route_domain(route::table_id_t id)
Construct a new object matching the desried state.
The VPP Object Model (VOM) library.
std::shared_ptr< route_domain > singular() const
Return the matching 'singular instance'.
~route_domain()
Destructor.
static void dump(std::ostream &os)
Dump all route-doamin into the stream provided.
route::table_id_t key_t
The Key for a route-domain.