OpenSDN source code
UpdateExtCommunity Class Reference

#include <routing_policy_action.h>

Inheritance diagram for UpdateExtCommunity:
Collaboration diagram for UpdateExtCommunity:

Public Types

enum  CommunityUpdateOp { ADD , REMOVE , SET }
 

Public Member Functions

 UpdateExtCommunity (const std::vector< std::string > &communities, std::string op)
 
virtual ~UpdateExtCommunity ()
 
virtual void operator() (BgpAttr *out_attr) const
 
std::string ToString () const
 
virtual bool IsEqual (const RoutingPolicyAction &community) const
 
const ExtCommunity::ExtCommunityListcommunities () const
 
- Public Member Functions inherited from RoutingPolicyUpdateAction
virtual ~RoutingPolicyUpdateAction ()
 
bool terminal () const
 
bool accept () const
 
- Public Member Functions inherited from RoutingPolicyAction
virtual ~RoutingPolicyAction ()
 
virtual bool operator== (const RoutingPolicyAction &action) const
 
virtual bool operator!= (const RoutingPolicyAction &action) const
 

Private Attributes

ExtCommunity::ExtCommunityList communities_
 
CommunityUpdateOp op_
 

Detailed Description

Definition at line 118 of file routing_policy_action.h.

Member Enumeration Documentation

◆ CommunityUpdateOp

Enumerator
ADD 
REMOVE 
SET 

Definition at line 120 of file routing_policy_action.h.

Constructor & Destructor Documentation

◆ UpdateExtCommunity()

UpdateExtCommunity::UpdateExtCommunity ( const std::vector< std::string > &  communities,
std::string  op 
)

Definition at line 135 of file routing_policy_action.cc.

Here is the call graph for this function:

◆ ~UpdateExtCommunity()

virtual UpdateExtCommunity::~UpdateExtCommunity ( )
inlinevirtual

Definition at line 127 of file routing_policy_action.h.

Member Function Documentation

◆ communities()

const ExtCommunity::ExtCommunityList& UpdateExtCommunity::communities ( ) const
inline

Definition at line 131 of file routing_policy_action.h.

◆ IsEqual()

bool UpdateExtCommunity::IsEqual ( const RoutingPolicyAction community) const
virtual

Implements RoutingPolicyAction.

Definition at line 189 of file routing_policy_action.cc.

Here is the call graph for this function:

◆ operator()()

void UpdateExtCommunity::operator() ( BgpAttr out_attr) const
virtual

Implements RoutingPolicyUpdateAction.

Definition at line 157 of file routing_policy_action.cc.

Here is the call graph for this function:

◆ ToString()

string UpdateExtCommunity::ToString ( ) const
virtual

Implements RoutingPolicyAction.

Definition at line 174 of file routing_policy_action.cc.

Here is the call graph for this function:

Member Data Documentation

◆ communities_

ExtCommunity::ExtCommunityList UpdateExtCommunity::communities_
private

Definition at line 136 of file routing_policy_action.h.

◆ op_

CommunityUpdateOp UpdateExtCommunity::op_
private

Definition at line 137 of file routing_policy_action.h.


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