|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_INTERFACE_SPAN_CMDS_H__
17 #define __VOM_INTERFACE_SPAN_CMDS_H__
23 #include <vapi/span.api.vapi.hpp>
26 namespace interface_span_cmds {
32 :
public rpc_cmd<HW::item<bool>, vapi::Sw_interface_span_enable_disable>
76 :
public rpc_cmd<HW::item<bool>, vapi::Sw_interface_span_enable_disable>
unconfig_cmd(HW::item< bool > &item, const handle_t &itf_from, const handle_t &itf_to)
Constructor.
A command class that configures the interface span.
rc_t issue(connection &con)
Issue the command to VPP/HW.
The VPP Object Model (VOM) library.
A base class for all RPC commands to VPP.
vl_api_dhcp_client_state_t state
config_cmd(HW::item< bool > &item, const handle_t &itf_from, const handle_t &itf_to, const interface_span::state_t &state)
Constructor.
A cmd class that Unconfigs interface span.
The state of the interface - rx/tx or both to be mirrored.
A cmd class that Dumps all the interface spans.
bool operator==(const config_cmd &i) const
Comparison operator - only used for UT.
A representation of the connection to VPP.
std::string to_string() const
convert to string format for debug purposes
A type declaration of an interface handle in VPP.
rc_t issue(connection &con)
Issue the command to VPP/HW.
HW::item< bool > & item()
return the HW item the command updates
std::string to_string() const
convert to string format for debug purposes
Error codes that VPP will return during a HW write.
A base class for VPP dump commands.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
bool operator==(const unconfig_cmd &i) const
Comparison operator - only used for UT.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.