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 {
std::string to_string() const
convert to string format for debug purposes
uint32_t epg_id_t
EPG IDs are 32 bit integers.
A cmd class that Dumps all the GBP contracts.
Error codes that VPP will return during a HW write.
std::set< ethertype_t > ethertype_set_t
A set of allowed ethertypes.
u16 allowed_ethertypes[n_ether_types]
A representation of the connection to VPP.
A base class for all RPC commands to VPP.
rc_t issue(connection &con)
Issue the command to VPP/HW.
A type declaration of an interface handle in VPP.
A command class that creates or updates the GBP contract.
std::set< gbp_rule > gbp_rules_t
set of gbp rules
The VPP Object Model (VOM) library.
A cmd class that deletes a GBP contract.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
create_cmd(HW::item< bool > &item, epg_id_t src_epg_id, epg_id_t dst_epg_id, const handle_t &acl, const gbp_contract::gbp_rules_t &gbp_rules, const gbp_contract::ethertype_set_t &allowed_ethertypes)
Constructor.
A base class for VPP dump commands.
HW::item< bool > & item()
return the HW item the command updates