16 #ifndef __VOM_IP_PUNT_REDIRECT_H__ 17 #define __VOM_IP_PUNT_REDIRECT_H__ 67 std::shared_ptr<ip_punt_redirect>
singular()
const;
77 static void dump(std::ostream& os);
87 const key_t
key()
const;
112 void handle_replay();
117 void show(std::ostream& os);
138 static std::shared_ptr<ip_punt_redirect> find_or_add(
164 const std::shared_ptr<interface> m_rx_itf;
168 const std::shared_ptr<interface> m_tx_itf;
static std::shared_ptr< ip_punt_redirect > find(const interface &i)
Find an singular instance in the DB for the interface passed.
std::string to_string() const
convert to string format for debug purposes
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
static void dump(std::ostream &os)
Dump all ip_punt_redirects into the stream provided.
A Database to store the unique 'singular' instances of a single object type.
~ip_punt_redirect()
Destructor.
interface::key_t key_t
The key type for ip_punt_redirects.
A representation of an interface in VPP.
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 ...
std::shared_ptr< ip_punt_redirect > singular() const
Return the 'singular instance' of the ip_punt_redirect that matches this object.
The interface to writing objects into VPP OM.
A base class for all object_base in the VPP object_base-Model.
ip_punt_redirect(const interface &rx_itf, const interface &tx_itf, const boost::asio::ip::address &addr)
Construct a new object matching the desried state.
The VPP Object Model (VOM) library.
A representation of IP punt_redirect configuration on an interface.
const key_t key() const
return the object's key
std::string key_t
The key for interface's key.