24 singular_db<interface::key_t, arp_proxy_binding> arp_proxy_binding::m_db;
26 arp_proxy_binding::event_handler arp_proxy_binding::m_evh;
30 : m_itf(itf.singular())
31 , m_arp_proxy_cfg(proxy_cfg.singular())
38 , m_arp_proxy_cfg(o.m_arp_proxy_cfg)
39 , m_binding(o.m_binding)
48 m_db.release(m_itf->key(),
this);
52 arp_proxy_binding::sweep()
68 arp_proxy_binding::replay()
80 s <<
"ArpProxy-binding: " << m_itf->to_string();
97 std::shared_ptr<arp_proxy_binding>
100 return (m_db.find_or_add(temp.m_itf->key(), temp));
103 std::shared_ptr<arp_proxy_binding>
106 return find_or_add(*
this);
109 arp_proxy_binding::event_handler::event_handler()
116 arp_proxy_binding::event_handler::handle_replay()
122 arp_proxy_binding::event_handler::handle_populate(
const client_db::key_t& key)
128 arp_proxy_binding::event_handler::order()
const
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.