|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_GBP_CONTRACT_CMDS_H__
17 #define __VOM_GBP_CONTRACT_CMDS_H__
22 #include <vapi/gbp.api.vapi.hpp>
25 namespace gbp_contract_cmds {
31 :
public rpc_cmd<HW::item<uint32_t>, vapi::Gbp_contract_add_del>
73 :
public rpc_cmd<HW::item<uint32_t>, vapi::Gbp_contract_add_del>
std::string to_string() const
convert to string format for debug purposes
delete_cmd(HW::item< uint32_t > &item, scope_t scope, sclass_t sclass, sclass_t dclass)
Constructor.
The VPP Object Model (VOM) library.
A base class for all RPC commands to VPP.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
A command class that creates or updates the GBP contract.
std::string to_string() const
convert to string format for debug purposes
u16 allowed_ethertypes[16]
std::string to_string() const
convert to string format for debug purposes
std::set< ethertype_t > ethertype_set_t
A set of allowed ethertypes.
A cmd class that deletes a GBP contract.
create_cmd(HW::item< uint32_t > &item, scope_t scope, sclass_t sclass, sclass_t dclass, const handle_t &acl, const gbp_contract::gbp_rules_t &gbp_rules, const gbp_contract::ethertype_set_t &allowed_ethertypes)
Constructor.
A representation of the connection to VPP.
dump_cmd()=default
Constructor.
rc_t issue(connection &con)
Issue the command to VPP/HW.
sll srl srl sll sra u16x4 i
A type declaration of an interface handle in VPP.
A cmd class that Dumps all the GBP contracts.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
HW::item< uint32_t > & item()
return the HW item the command updates
std::set< gbp_rule > gbp_rules_t
set of gbp rules
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.
rc_t issue(connection &con)
Issue the command to VPP/HW.
rc_t issue(connection &con)
Issue the command to VPP/HW.