23 singular_db<ip_unnumbered::key_t, ip_unnumbered> ip_unnumbered::m_db;
25 ip_unnumbered::event_handler ip_unnumbered::m_evh;
28 : m_itf(itf.singular())
29 , m_l3_itf(l3_itf.singular())
35 , m_l3_itf(o.m_l3_itf)
36 , m_config(o.m_config)
45 m_db.release(m_itf->key(),
this);
49 ip_unnumbered::sweep()
65 ip_unnumbered::replay()
77 s <<
"IP Unnumbered-config:" 78 <<
" itf:" << m_itf->to_string() <<
" l3-itf:" << m_l3_itf->to_string();
92 std::shared_ptr<ip_unnumbered>
95 return (m_db.find_or_add(temp.m_itf->key(), temp));
98 std::shared_ptr<ip_unnumbered>
101 return find_or_add(*
this);
104 ip_unnumbered::event_handler::event_handler()
111 ip_unnumbered::event_handler::handle_replay()
123 ip_unnumbered::event_handler::order()
const A command class that configures the IP unnumbered.
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 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.
A cmd class that Unconfigs L3 Config from an interface.
std::shared_ptr< ip_unnumbered > singular() const
Return the 'singular instance' of the L3-Config that matches this object.
~ip_unnumbered()
Destructor.
A representation of IP unnumbered configuration on an interface.
A representation of an interface in VPP.
static void dump(std::ostream &os)
Dump all ip_unnumbereds into the stream provided.
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.
ip_unnumbered(const interface &itf, const interface &l3_itf)
Construct a new object matching the desried state.
Then L2/objects that bind to interfaces, BD, ACLS, etc.
The VPP Object Model (VOM) library.
static bool register_listener(listener *listener)
Register a listener of events.