FD.io VPP  v18.11-rc0-18-g2a3fb1a
Vector Packet Processing
VOM::ACL::l2_rule Class Reference

An ACL rule is the building block of an ACL. More...

Public Member Functions

 l2_rule (uint32_t priority, const action_t &action, const route::prefix_t &ip, const mac_address_t &mac, const mac_address_t &mac_mask)
 Construct a new object matching the desried state. More...
 
 l2_rule (const l2_rule &o)=default
 Copy Constructor. More...
 
 ~l2_rule ()=default
 Destructor. More...
 
std::string to_string () const
 convert to string format for debug purposes More...
 
bool operator< (const l2_rule &rule) const
 less-than operator More...
 
bool operator== (const l2_rule &rule) const
 comparison operator (for testing) More...
 
uint32_t priority () const
 Getters. More...
 
const action_taction () const
 
const route::prefix_tsrc_ip () const
 
const mac_address_tmac () const
 
const mac_address_tmac_mask () const
 

Detailed Description

An ACL rule is the building block of an ACL.

An ACL, which is the object applied to an interface, is comprised of an ordersed sequence of ACL rules. This class is a wrapper around the VAPI generated struct and exports an API with better types.

Definition at line 31 of file acl_l2_rule.hpp.

Constructor & Destructor Documentation

VOM::ACL::l2_rule::l2_rule ( uint32_t  priority,
const action_t action,
const route::prefix_t ip,
const mac_address_t mac,
const mac_address_t mac_mask 
)

Construct a new object matching the desried state.

Definition at line 23 of file acl_l2_rule.cpp.

VOM::ACL::l2_rule::l2_rule ( const l2_rule o)
default

Copy Constructor.

VOM::ACL::l2_rule::~l2_rule ( )
default

Destructor.

Member Function Documentation

const action_t & VOM::ACL::l2_rule::action ( ) const

Definition at line 69 of file acl_l2_rule.cpp.

+ Here is the caller graph for this function:

const mac_address_t & VOM::ACL::l2_rule::mac ( ) const

Definition at line 81 of file acl_l2_rule.cpp.

+ Here is the caller graph for this function:

const mac_address_t & VOM::ACL::l2_rule::mac_mask ( ) const

Definition at line 87 of file acl_l2_rule.cpp.

+ Here is the caller graph for this function:

bool VOM::ACL::l2_rule::operator< ( const l2_rule rule) const

less-than operator

Definition at line 37 of file acl_l2_rule.cpp.

bool VOM::ACL::l2_rule::operator== ( const l2_rule rule) const

comparison operator (for testing)

Definition at line 43 of file acl_l2_rule.cpp.

uint32_t VOM::ACL::l2_rule::priority ( ) const

Getters.

Definition at line 63 of file acl_l2_rule.cpp.

const route::prefix_t & VOM::ACL::l2_rule::src_ip ( ) const

Definition at line 75 of file acl_l2_rule.cpp.

+ Here is the caller graph for this function:

std::string VOM::ACL::l2_rule::to_string ( void  ) const

convert to string format for debug purposes

Definition at line 50 of file acl_l2_rule.cpp.

+ Here is the call graph for this function:


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