16 #ifndef __VOM_INTERFACE_CMDS_H__ 17 #define __VOM_INTERFACE_CMDS_H__ 26 #include <vapi/af_packet.api.vapi.hpp> 27 #include <vapi/interface.api.vapi.hpp> 28 #include <vapi/l2.api.vapi.hpp> 29 #include <vapi/vhost_user.api.vapi.hpp> 30 #include <vapi/vpe.api.vapi.hpp> 34 namespace interface_cmds {
39 const vapi_payload_sw_interface_details& vd);
120 const std::string&
name,
121 const std::string& tag);
133 const std::string m_tag;
224 :
public rpc_cmd<HW::item<handle_t>, vapi::Sw_interface_tag_add_del>
258 vapi::Sw_interface_set_flags>
293 :
public rpc_cmd<HW::item<route::table_id_t>, vapi::Sw_interface_set_table>
335 :
public rpc_cmd<HW::item<l2_address_t>, vapi::Sw_interface_set_mac_address>
370 :
public rpc_cmd<HW::item<interface::stats_type_t>,
371 vapi::Collect_detailed_interface_stats>
413 :
public event_cmd<vapi::Want_interface_events, vapi::Sw_interface_event>
A cmd class that Dumps all the Vpp interfaces.
static clib_error_t * set_tag(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
rc_t issue(connection &con)
Issue the command to VPP/HW.
A command class to set tag on interfaces.
Error codes that VPP will return during a HW write.
An L3 protocol can be used to construct a prefix that is used to match packets are part of a route...
virtual void retire(connection &con)
Retire/cancel a long running command.
A command class that enables detailed stats collection on an interface.
A command class that changes the MAC address on an interface.
const std::string & m_name
The name of the interface to be created.
A representation of the connection to VPP.
std::unique_ptr< interface > new_interface(const vapi_payload_sw_interface_details &vd)
Factory method to construct a new interface from the VPP record.
~bvi_create_cmd()=default
A class that listens to interface Events.
A base class for all RPC commands to VPP.
A command class to create Loopback interfaces in VPP.
A command class to create bvi interfaces in VPP.
A cmd class that changes the admin state.
A command class that binds an interface to an L3 table.
A command class represents our desire to recieve interface events.
sll srl srl sll sra u16x4 i
A cmd class that Dumps all the Vpp Interfaces.
Base class for intterface Delete commands.
A command class to create af_packet interfaces in VPP.
A type declaration of an interface handle in VPP.
std::string to_string() const
convert to string format for debug purposes
A functor class that deletes a Vhost interface.
bvi_create_cmd(HW::item< handle_t > &item, const std::string &name)
Constructor taking the HW::item to update and the name of the interface to create.
A command class to delete bvi interfaces in VPP.
virtual bool operator==(const create_cmd &o) const
Comparison operator - only used for UT.
A command class to delete af-packet interfaces in VPP.
A base class for interface Create commands.
The VPP Object Model (VOM) library.
A command class to delete loopback interfaces in VPP.
A functor class that creates an interface.
An Event command base class.
A cmd class that Dumps all the Vpp interfaces.
A base class for VPP dump commands.
HW::item< handle_t > & item()
return the HW item the command updates