16 #ifndef __VOM_SUB_INTERFACE_H__ 17 #define __VOM_SUB_INTERFACE_H__ 30 typedef uint16_t vlan_id_t;
54 std::shared_ptr<sub_interface>
singular()
const;
59 static std::shared_ptr<sub_interface>
find(
const key_t& k);
66 std::shared_ptr<interface> singular_i()
const;
71 virtual std::queue<cmd*>& mk_create_cmd(std::queue<cmd*>& cmds);
76 virtual std::queue<cmd*>& mk_delete_cmd(std::queue<cmd*>& cmds);
82 static std::string mk_name(
const interface& parent, vlan_id_t vlan);
87 const std::shared_ptr<interface> m_parent;
~sub_interface()
Destructor.
sub_interface(const interface &parent, admin_state_t state, vlan_id_t vlan)
Construct a new object matching the desried state.
static std::shared_ptr< sub_interface > find(const key_t &k)
Find a subinterface from its key.
The admin state of the interface.
A representation of an interface in VPP.
vhost_vring_state_t state
The VPP Object Model (VOM) library.
bool operator==(const sub_interface &s) const
comparison operator - for UT
std::string key_t
The key for interface's key.
std::shared_ptr< sub_interface > singular() const
Return the matching 'singular instance' of the sub-interface.