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/stats.api.vapi.hpp> 29 #include <vapi/tap.api.vapi.hpp> 30 #include <vapi/vhost_user.api.vapi.hpp> 31 #include <vapi/vpe.api.vapi.hpp> 35 namespace interface_cmds {
40 const vapi_payload_sw_interface_details& vd);
121 const std::string& name,
122 const std::string& tag);
134 const std::string m_tag;
225 :
public rpc_cmd<HW::item<handle_t>, rc_t, vapi::Sw_interface_tag_add_del>
260 vapi::Sw_interface_set_flags>
296 vapi::Sw_interface_set_table>
339 vapi::Sw_interface_set_mac_address>
374 :
public rpc_cmd<HW::item<interface::stats_type_t>,
376 vapi::Collect_detailed_interface_stats>
418 :
public event_cmd<vapi::Want_interface_events, vapi::Sw_interface_event>
462 :
public event_cmd<vapi::Want_per_interface_combined_stats,
463 vapi::Vnet_per_interface_combined_counters>
489 void set(
const rc_t& rc);
522 :
public rpc_cmd<HW::item<bool>,
524 vapi::Want_per_interface_combined_stats>
std::string to_string() const
convert to string format for debug purposes
A command class represents our desire to recieve interface stats.
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)
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...
A command class to create TAP interfaces in VPP.
A command class that enables detailed stats collection on an interface.
virtual void retire(connection &con)
Retire/cancel a long running command.
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.
A command class to delete TAP interfaces in 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.
~loopback_create_cmd()=default
A class that listens to interface Stats.
HW::item< handle_t > & item()
return the HW item the command updates
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 cmd class that changes the admin state.
A command class that binds an interface to an L3 table.
virtual bool operator==(const create_cmd &o) const
Comparison operator - only used for UT.
A command class represents our desire to recieve interface events.
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.
A functor class that deletes a Vhost interface.
A command class represents our desire to recieve interface stats.
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.
loopback_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 base class for VPP dump commands.
rc_t issue(connection &con)
Issue the command to VPP/HW.