OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
< MatchProtocolType
PathSourceList
 

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

Definition at line 125 of file routing_policy_match.h.

Member Enumeration Documentation

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 ( 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 ( )
virtual

Definition at line 530 of file routing_policy_match.cc.

Member Function Documentation

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:

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:

const PathSourceList& MatchProtocol::protocols ( ) const
inline

Definition at line 132 of file routing_policy_match.h.

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

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: