25 singular_db<interface::key_t, arp_proxy_binding> arp_proxy_binding::m_db;
27 arp_proxy_binding::event_handler arp_proxy_binding::m_evh;
31 : m_itf(itf.singular())
32 , m_arp_proxy_cfg(proxy_cfg.singular())
39 , m_arp_proxy_cfg(o.m_arp_proxy_cfg)
40 , m_binding(o.m_binding)
49 m_db.release(m_itf->key(),
this);
53 arp_proxy_binding::sweep()
69 arp_proxy_binding::replay()
81 s <<
"ArpProxy-binding: " << m_itf->to_string();
98 std::shared_ptr<arp_proxy_binding>
101 return (m_db.find_or_add(temp.m_itf->key(), temp));
104 std::shared_ptr<arp_proxy_binding>
107 return find_or_add(*
this);
110 arp_proxy_binding::event_handler::event_handler()
118 arp_proxy_binding::event_handler::handle_replay()
124 arp_proxy_binding::event_handler::handle_populate(
const client_db::key_t& key)
130 arp_proxy_binding::event_handler::order()
const
void db_dump(const DB &db, std::ostream &os)
Print each of the objects in the DB into the stream provided.
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 register_handler(const std::vector< std::string > &cmds, const std::string &help, command_handler *ch)
Register a command handler for inspection.
static rc_t write()
Write/Execute all commands hitherto enqueued.
std::shared_ptr< arp_proxy_binding > singular() const
Return the 'singular' of the LLDP binding that matches this object.
static void dump(std::ostream &os)
Dump all LLDP bindings into the stream provided.
std::string to_string() const
convert to string format for debug purposes
A representation of LLDP client configuration on an interface.
A cmd class that Unbinds ArpProxy Config from an interface.
A representation of an interface in VPP.
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
static void enqueue(cmd *f)
Enqueue A command for execution.
A representation of LLDP client configuration on an interface.
Then L2/objects that bind to interfaces, BD, ACLS, etc.
A command class that binds the LLDP config to the interface.
The VPP Object Model (VOM) library.
arp_proxy_binding(const interface &itf, const arp_proxy_config &proxy_cfg)
Construct a new object matching the desried state.
static bool register_listener(listener *listener)
Register a listener of events.
~arp_proxy_binding()
Destructor.