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>
bool operator==(const config_cmd &i) const
Comparison operator - only used for UT.
Error codes that VPP will return during a HW write.
A command class that configures the interface span.
A cmd class that Unconfigs interface span.
vhost_vring_state_t state
A representation of the connection to VPP.
config_cmd(HW::item< bool > &item, const handle_t &itf_from, const handle_t &itf_to, const interface_span::state_t &state)
Constructor.
A base class for all RPC commands to VPP.
A cmd class that Dumps all the interface spans.
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.
The VPP Object Model (VOM) library.
A base class for VPP dump commands.
The state of the interface - rx/tx or both to be mirrored.
HW::item< bool > & item()
return the HW item the command updates