libbgp  0.6
A C++ BGP Library.
Public Member Functions | Public Attributes | List of all members
libbgp::BgpFilterRule Class Referenceabstract

The base of BgpFilterRule. More...

#include <bgp-filter.h>

Inheritance diagram for libbgp::BgpFilterRule:
Inheritance graph
[legend]

Public Member Functions

virtual BgpFilterOP apply (const Prefix &prefix, const std::vector< std::shared_ptr< BgpPathAttrib >> &attribs)=0
 Apply the rule on a route. More...
 

Public Attributes

uint8_t filter_type
 
uint8_t match_type
 
BgpFilterOP op
 

Detailed Description

The base of BgpFilterRule.

Definition at line 79 of file bgp-filter.h.

Member Function Documentation

◆ apply()

virtual BgpFilterOP libbgp::BgpFilterRule::apply ( const Prefix prefix,
const std::vector< std::shared_ptr< BgpPathAttrib >> &  attribs 
)
pure virtual

Apply the rule on a route.

Parameters
prefixRoute prefix.
attribsPath attribues.
Returns
BgpFilterOP Action to take.

Implemented in libbgp::BgpFilterRuleCommunity, and libbgp::BgpFilterRuleAsPath.

Referenced by libbgp::BgpFilterRules::append().


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