16 #ifndef __VOM_ACL_BINDING_CMDS_H__ 17 #define __VOM_ACL_BINDING_CMDS_H__ 23 #include <vapi/acl.api.vapi.hpp> 27 namespace binding_cmds {
31 template <
typename BIND>
43 , m_direction(direction)
64 return ((m_itf == other.m_itf) && (m_acl == m_acl));
87 template <
typename BIND>
99 , m_direction(direction)
120 return ((m_itf == other.m_itf) && (m_acl == m_acl));
143 template <
typename DUMP>
A command class that binds the ACL to the interface.
rc_t issue(connection &con)
Issue the command to VPP/HW.
bind_cmd(HW::item< bool > &item, const direction_t &direction, const handle_t &itf, const handle_t &acl)
Constructor.
Error codes that VPP will return during a HW write.
bind_cmd< vapi::Macip_acl_interface_add_del > l2_bind_cmd
Typedef the L2 binding type.
bool operator==(const unbind_cmd &other) const
Comparison operator - only used for UT.
unbind_cmd< vapi::Acl_interface_add_del > l3_unbind_cmd
A representation of the connection to VPP.
std::string to_string() const
convert to string format for debug purposes
A base class for all RPC commands to VPP.
unbind_cmd(HW::item< bool > &item, const direction_t &direction, const handle_t &itf, const handle_t &acl)
Constructor.
A command class that binds the ACL to the interface.
A type declaration of an interface handle in VPP.
A cmd class that Dumps all the ACLs.
dump_cmd< vapi::Macip_acl_interface_list_dump > l2_dump_cmd
dump_cmd< vapi::Acl_interface_list_dump > l3_dump_cmd
unbind_cmd< vapi::Macip_acl_interface_add_del > l2_unbind_cmd
bool operator==(const bind_cmd &other) const
Comparison operator - only used for UT.
The VPP Object Model (VOM) library.
A base class for VPP dump commands.
HW::item< bool > & item()
return the HW item the command updates
bind_cmd< vapi::Acl_interface_add_del > l3_bind_cmd
Typedef the L3 ACL binding commands.