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/vpe.api.vapi.hpp> 34 namespace interface_cmds {
39 const vapi_payload_sw_interface_details& vd);
181 :
public rpc_cmd<HW::item<handle_t>, rc_t, vapi::Sw_interface_tag_add_del>
216 vapi::Sw_interface_set_flags>
252 vapi::Sw_interface_set_table>
295 vapi::Sw_interface_set_mac_address>
330 :
public event_cmd<vapi::Want_interface_events, vapi::Sw_interface_event>
374 :
public event_cmd<vapi::Want_per_interface_combined_stats,
375 vapi::Vnet_per_interface_combined_counters>
424 :
public rpc_cmd<HW::item<bool>,
426 vapi::Want_per_interface_combined_stats>
std::string to_string() const
convert to string format for debug purposes
sll srl srl sll sra u16x4 i
A command class represents our desire to recieve interface stats.
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.
Types belonging to Routing.
A command class to create TAP interfaces in VPP.
virtual void retire(connection &con)
Retire/cancel a long running command.
A command class that binds an interface to an L3 table.
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.
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 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.
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.