|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_GBP_RULE_H__
17 #define __VOM_GBP_RULE_H__
22 #include <vapi/gbp.api.vapi.h>
73 const uint32_t
getBdId(
void)
const;
78 const uint32_t
getRdId(
void)
const;
94 const uint32_t m_bd_id;
99 const uint32_t m_rd_id;
Representation of set of next hops and associated hash mode profile.
const next_hop_set_t & nhs() const
Getters.
const uint32_t getBdId(void) const
get the bridge domain Id
bool operator<(const gbp_rule &rule) const
less-than operator
The VPP Object Model (VOM) library.
const static action_t DENY
Deny action.
std::set< next_hop_t > next_hops_t
unordered set of next hops
const next_hops_t & next_hops(void) const
get the set of next hops
const static hash_mode_t DST_IP
Flow hash is calculated based on DST IP.
next_hop_set_t(const hash_mode_t &hm, next_hops_t &nhs)
Constructor for next_hop_set_t.
const hash_mode_t & hash_mode(void) const
get the hash mode
const static action_t PERMIT
Permit action.
const static action_t REDIRECT
Redirect action.
std::string to_string() const
convert to string format for debug purposes
const static hash_mode_t SYMMETRIC
Flow hash is calculated based on SRC IP, DST IP and Protocol.
std::string to_string() const
convert to string
~next_hop_t()=default
default destructor
A template base class for all enum types.
const mac_address_t & getMac(void) const
get the mac address
bool operator==(const next_hop_t &nh) const
comparison operator (for testing)
bool operator==(const next_hop_set_t &nhs) const
Comparison operator.
manual_print typedef address
~gbp_rule()=default
Destructor.
std::string to_string() const
convert to string
static const action_t & from_int(vapi_enum_gbp_rule_action i)
create the action from int value
const uint32_t getRdId(void) const
get the route domain Id
next_hop_t(const boost::asio::ip::address &ip, const mac_address_t &mac, uint32_t bd_id, uint32_t rd_id)
Constructor for next_hop_t.
Type def of a Ethernet address.
static const hash_mode_t & from_int(vapi_enum_gbp_hash_mode i)
create the hash mode from int value
Representation of next hop.
bool operator==(const gbp_rule &rule) const
comparison operator (for testing)
const action_t & action() const
const boost::asio::ip::address & getIp(void) const
get the IP address
const static hash_mode_t SRC_IP
Flow Hash is calculated based on SRC IP in case of load balancing.
bool operator<(const next_hop_t &nh) const
less-than operator
gbp_rule(uint32_t priority, const next_hop_set_t &nhs, const action_t &a)
Construct a new object matching the desried state.
~next_hop_set_t()=default
Destructor for next_hop_set_t.