|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_SUB_INTERFACE_H__
17 #define __VOM_SUB_INTERFACE_H__
30 typedef uint16_t vlan_id_t;
60 std::shared_ptr<sub_interface>
singular()
const;
65 static std::shared_ptr<sub_interface>
find(
const key_t& k);
72 std::shared_ptr<interface> singular_i()
const;
77 virtual std::queue<cmd*>& mk_create_cmd(std::queue<cmd*>& cmds);
82 virtual std::queue<cmd*>& mk_delete_cmd(std::queue<cmd*>& cmds);
93 const std::shared_ptr<interface> m_parent;
bool operator==(const sub_interface &s) const
comparison operator - for UT
The VPP Object Model (VOM) library.
vl_api_dhcp_client_state_t state
std::shared_ptr< sub_interface > singular() const
Return the matching 'singular instance' of the sub-interface.
A representation of an interface in VPP.
~sub_interface()
Destructor.
sub_interface(const interface &parent, admin_state_t state, vlan_id_t vlan)
Construct a new object matching the desried state.
The admin state of the interface.
static std::shared_ptr< sub_interface > find(const key_t &k)
Find a subinterface from its key.
std::string key_t
The key for interface's key.