FD.io VPP  v19.08-27-gf4dcae4
Vector Packet Processing
VOM::gbp_rule Class Reference

Data Structures

struct  action_t
 ACL rule action enum. More...
struct  hash_mode_t
 hash mode enum More...
struct  next_hop_set_t
 Representation of set of next hops and associated hash mode profile. More...
struct  next_hop_t
 Representation of next hop. More...

Public Types

typedef std::set< next_hop_tnext_hops_t
 unordered set of next hops More...

Public Member Functions

 gbp_rule (uint32_t priority, const next_hop_set_t &nhs, const action_t &a)
 Construct a new object matching the desried state. More...
 gbp_rule (uint32_t priority, const action_t &a)
 gbp_rule (const gbp_rule &o)=default
 Copy Constructor. More...
 ~gbp_rule ()=default
 Destructor. More...
std::string to_string () const
 convert to string format for debug purposes More...
bool operator< (const gbp_rule &rule) const
 less-than operator More...
bool operator== (const gbp_rule &rule) const
 comparison operator (for testing) More...
const next_hop_set_tnhs () const
 Getters. More...
const action_taction () const

Detailed Description

Definition at line 24 of file gbp_rule.hpp.

Member Typedef Documentation

unordered set of next hops

Definition at line 138 of file gbp_rule.hpp.

Constructor & Destructor Documentation

VOM::gbp_rule::gbp_rule ( uint32_t  priority,
const next_hop_set_t nhs,
const action_t a 

Construct a new object matching the desried state.

Definition at line 168 of file gbp_rule.cpp.

VOM::gbp_rule::gbp_rule ( uint32_t  priority,
const action_t a 

Definition at line 177 of file gbp_rule.cpp.

VOM::gbp_rule::gbp_rule ( const gbp_rule o)

Copy Constructor.

VOM::gbp_rule::~gbp_rule ( )


Member Function Documentation

const gbp_rule::action_t & VOM::gbp_rule::action ( ) const

Definition at line 210 of file gbp_rule.cpp.

const gbp_rule::next_hop_set_t & VOM::gbp_rule::nhs ( ) const


Definition at line 216 of file gbp_rule.cpp.

bool VOM::gbp_rule::operator< ( const gbp_rule rule) const

less-than operator

Definition at line 185 of file gbp_rule.cpp.

bool VOM::gbp_rule::operator== ( const gbp_rule rule) const

comparison operator (for testing)

Definition at line 191 of file gbp_rule.cpp.

std::string VOM::gbp_rule::to_string ( void  ) const

convert to string format for debug purposes

Definition at line 198 of file gbp_rule.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: