16 #ifndef __VOM_NEIGHBOUR_H__ 17 #define __VOM_NEIGHBOUR_H__ 35 flags_t(
int v,
const std::string s);
58 typedef std::pair<interface::key_t, boost::asio::ip::address>
key_t;
81 const key_t
key()
const;
91 std::shared_ptr<neighbour>
singular()
const;
96 static std::shared_ptr<neighbour>
find(
const key_t& k);
101 static void dump(std::ostream& os);
131 void handle_replay();
136 void show(std::ostream& os);
158 std::shared_ptr<interface> itf,
164 static std::shared_ptr<neighbour> find_or_add(
const neighbour& temp);
189 std::shared_ptr<interface> m_itf;
const key_t key() const
Return the object's key.
A template base class for all enum types.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
std::shared_ptr< neighbour > singular() const
Return the matching 'singular instance'.
static const flags_t STATIC
An L3 protocol can be used to construct a prefix that is used to match packets are part of a route...
neighbour(const interface &itf, const boost::asio::ip::address &ip_addr, const mac_address_t &mac, const flags_t flags=flags_t::STATIC)
Construct an ARP entry.
static const flags_t NONE
A Database to store the unique 'singular' instances of a single object type.
A entry in the neighbour entry (ARP or IPv6 ND)
bool operator==(const enum_base &e) const
Comparison operator.
flags_t(int v, const std::string s)
Constructor.
A representation of an interface in VPP.
Class definition for listeners to OM events.
inspect command handler Handler
static const flags_t NO_FIB_ENTRY
void event_handler(void *tls_async)
void replay(void)
replay the object to create it in hardware
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.
static void dump(std::ostream &os)
Dump all neighbours into the stream provided.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
static std::shared_ptr< neighbour > find(const key_t &k)
Find the neighbour fromits key.
The VPP Object Model (VOM) library.
~flags_t()=default
Destructor.
const std::string & to_string() const
convert to string format for debug purposes
std::pair< interface::key_t, boost::asio::ip::address > key_t
The key for a neighbour entry; the interface and IP address.
Type def of a Ethernet address.
flags_t operator|(const flags_t &e1) const