OpenSDN source code
MatchProtocol Class Reference

#include <routing_policy_match.h>

Inheritance diagram for MatchProtocol:
Collaboration diagram for MatchProtocol:

Public Types

enum  MatchProtocolType {
  Unspecified = 0 , BGP , XMPP , StaticRoute ,
  ServiceChainRoute , AggregateRoute , Interface , InterfaceStatic ,
  ServiceInterface , BGPaaS
}
 
typedef std::vector< MatchProtocolTypePathSourceList
 

Public Member Functions

 MatchProtocol (const std::vector< std::string > &protocols)
 
virtual ~MatchProtocol ()
 
virtual bool Match (const BgpRoute *route, const BgpPath *path, const BgpAttr *attr) const
 
virtual std::string ToString () const
 
virtual bool IsEqual (const RoutingPolicyMatch &community) const
 
const PathSourceListprotocols () const
 
- Public Member Functions inherited from RoutingPolicyMatch
virtual ~RoutingPolicyMatch ()
 
bool operator() (const BgpRoute *route, const BgpPath *path, const BgpAttr *attr) const
 
virtual bool operator== (const RoutingPolicyMatch &match) const
 
virtual bool operator!= (const RoutingPolicyMatch &match) const
 

Private Attributes

PathSourceList to_match_
 

Detailed Description

Definition at line 111 of file routing_policy_match.h.

Member Typedef Documentation

◆ PathSourceList

Definition at line 125 of file routing_policy_match.h.

Member Enumeration Documentation

◆ MatchProtocolType

Enumerator
Unspecified 
BGP 
XMPP 
StaticRoute 
ServiceChainRoute 
AggregateRoute 
Interface 
InterfaceStatic 
ServiceInterface 
BGPaaS 

Definition at line 113 of file routing_policy_match.h.

Constructor & Destructor Documentation

◆ MatchProtocol()

MatchProtocol::MatchProtocol ( const std::vector< std::string > &  protocols)
explicit

Definition at line 514 of file routing_policy_match.cc.

Here is the call graph for this function:

◆ ~MatchProtocol()

MatchProtocol::~MatchProtocol ( )
virtual

Definition at line 530 of file routing_policy_match.cc.

Member Function Documentation

◆ IsEqual()

bool MatchProtocol::IsEqual ( const RoutingPolicyMatch community) const
virtual

Implements RoutingPolicyMatch.

Definition at line 577 of file routing_policy_match.cc.

Here is the call graph for this function:

◆ Match()

bool MatchProtocol::Match ( const BgpRoute route,
const BgpPath path,
const BgpAttr attr 
) const
virtual

Implements RoutingPolicyMatch.

Definition at line 533 of file routing_policy_match.cc.

Here is the call graph for this function:

◆ protocols()

const PathSourceList& MatchProtocol::protocols ( ) const
inline

Definition at line 132 of file routing_policy_match.h.

◆ ToString()

string MatchProtocol::ToString ( ) const
virtual

Implements RoutingPolicyMatch.

Definition at line 565 of file routing_policy_match.cc.

Here is the call graph for this function:

Member Data Documentation

◆ to_match_

PathSourceList MatchProtocol::to_match_
private

Definition at line 137 of file routing_policy_match.h.


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