OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PathPreference Class Reference

#include <agent_path.h>

Collaboration diagram for PathPreference:

Public Types

enum  Preference { INVALID = 0, HA_STALE = 1, LOW = 100, HIGH = 200 }
 

Public Member Functions

 PathPreference ()
 
 PathPreference (uint32_t sequence, uint32_t preference, bool wait_for_traffic, bool ecmp)
 
uint32_t loc_sequence () const
 
uint32_t sequence () const
 
uint32_t preference () const
 
bool wait_for_traffic () const
 
bool ecmp () const
 
bool is_ecmp () const
 
bool static_preference () const
 
const IpAddressdependent_ip () const
 
const std::string & vrf () const
 
void set_loc_sequence (uint32_t loc_sequence)
 
void set_sequence (uint32_t sequence)
 
void set_preference (uint32_t preference)
 
void set_wait_for_traffic (bool wait_for_traffic)
 
void set_ecmp (bool ecmp)
 
void set_static_preference (bool static_pref)
 
void set_dependent_ip (const IpAddress &ip)
 
void set_vrf (const std::string &vrf)
 
bool operator!= (const PathPreference &rhs) const
 
bool operator< (const PathPreference &rhs) const
 
bool operator== (const PathPreference &rhs) const
 
bool ConfigChanged (const PathPreference &rhs) const
 
bool IsDependentRt (void) const
 

Private Attributes

uint32_t loc_sequence_
 
uint32_t sequence_
 
uint32_t preference_
 
bool wait_for_traffic_
 
bool ecmp_
 
bool static_preference_
 
IpAddress dependent_ip_
 
std::string vrf_
 

Detailed Description

Definition at line 24 of file agent_path.h.

Member Enumeration Documentation

Enumerator
INVALID 
HA_STALE 
LOW 
HIGH 

Definition at line 26 of file agent_path.h.

Constructor & Destructor Documentation

PathPreference::PathPreference ( )
inline

Definition at line 32 of file agent_path.h.

PathPreference::PathPreference ( uint32_t  sequence,
uint32_t  preference,
bool  wait_for_traffic,
bool  ecmp 
)
inline

Definition at line 35 of file agent_path.h.

Member Function Documentation

bool PathPreference::ConfigChanged ( const PathPreference rhs) const
inline

Definition at line 142 of file agent_path.h.

const IpAddress& PathPreference::dependent_ip ( ) const
inline

Definition at line 68 of file agent_path.h.

bool PathPreference::ecmp ( ) const
inline

Definition at line 45 of file agent_path.h.

bool PathPreference::is_ecmp ( ) const
inline

Definition at line 49 of file agent_path.h.

bool PathPreference::IsDependentRt ( void  ) const
inline

Definition at line 156 of file agent_path.h.

uint32_t PathPreference::loc_sequence ( ) const
inline

Definition at line 39 of file agent_path.h.

bool PathPreference::operator!= ( const PathPreference rhs) const
inline

Definition at line 104 of file agent_path.h.

bool PathPreference::operator< ( const PathPreference rhs) const
inline

Definition at line 112 of file agent_path.h.

bool PathPreference::operator== ( const PathPreference rhs) const
inline

Definition at line 127 of file agent_path.h.

uint32_t PathPreference::preference ( ) const
inline

Definition at line 41 of file agent_path.h.

uint32_t PathPreference::sequence ( ) const
inline

Definition at line 40 of file agent_path.h.

void PathPreference::set_dependent_ip ( const IpAddress ip)
inline

Definition at line 96 of file agent_path.h.

void PathPreference::set_ecmp ( bool  ecmp)
inline

Definition at line 88 of file agent_path.h.

Here is the call graph for this function:

void PathPreference::set_loc_sequence ( uint32_t  loc_sequence)
inline

Definition at line 76 of file agent_path.h.

Here is the call graph for this function:

void PathPreference::set_preference ( uint32_t  preference)
inline

Definition at line 82 of file agent_path.h.

Here is the call graph for this function:

void PathPreference::set_sequence ( uint32_t  sequence)
inline

Definition at line 79 of file agent_path.h.

Here is the call graph for this function:

void PathPreference::set_static_preference ( bool  static_pref)
inline

Definition at line 92 of file agent_path.h.

void PathPreference::set_vrf ( const std::string &  vrf)
inline

Definition at line 100 of file agent_path.h.

Here is the call graph for this function:

void PathPreference::set_wait_for_traffic ( bool  wait_for_traffic)
inline

Definition at line 85 of file agent_path.h.

Here is the call graph for this function:

bool PathPreference::static_preference ( ) const
inline

Definition at line 64 of file agent_path.h.

const std::string& PathPreference::vrf ( ) const
inline

Definition at line 72 of file agent_path.h.

bool PathPreference::wait_for_traffic ( ) const
inline

Definition at line 42 of file agent_path.h.

Member Data Documentation

IpAddress PathPreference::dependent_ip_
private

Definition at line 177 of file agent_path.h.

bool PathPreference::ecmp_
private

Definition at line 175 of file agent_path.h.

uint32_t PathPreference::loc_sequence_
private

Definition at line 171 of file agent_path.h.

uint32_t PathPreference::preference_
private

Definition at line 173 of file agent_path.h.

uint32_t PathPreference::sequence_
private

Definition at line 172 of file agent_path.h.

bool PathPreference::static_preference_
private

Definition at line 176 of file agent_path.h.

std::string PathPreference::vrf_
private

Definition at line 178 of file agent_path.h.

bool PathPreference::wait_for_traffic_
private

Definition at line 174 of file agent_path.h.


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