16 #ifndef __VOM_NEIGHBOUR_H__ 17 #define __VOM_NEIGHBOUR_H__ 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.
vl_api_wireguard_peer_flags_t flags
std::shared_ptr< neighbour > singular() const
Return the matching 'singular instance'.
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.
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...
bool operator==(const enum_base &e) const
Comparison operator.
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
flags_t operator|(const flags_t &e1) const
A Database to store the unique 'singular' instances of a single object type.
A entry in the neighbour entry (ARP or IPv6 ND)
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
const std::string & to_string() const
convert to string format for debug purposes
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 ...
manual_print typedef address
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.
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.