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);
88 static std::string mk_name(
const interface& parent, vlan_id_t vlan);
93 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.
vhost_vring_state_t state
std::shared_ptr< sub_interface > singular() const
Return the matching 'singular instance' of the sub-interface.
The admin state of the interface.
A representation of an interface in VPP.
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.