#include <bgp_path.h>
|
enum | PathFlag {
AsPathLooped = 1 << 0,
NoNeighborAs = 1 << 1,
Stale = 1 << 2,
NoTunnelEncap = 1 << 3,
OriginatorIdLooped = 1 << 4,
ResolveNexthop = 1 << 5,
ResolvedPath = 1 << 6,
RoutingPolicyReject = 1 << 7,
LlgrStale = 1 << 8,
ClusterListLooped = 1 << 9,
AliasedPath = 1 << 10,
CheckGlobalErmVpnRoute = 1 << 11
} |
|
enum | PathSource {
None = 0,
BGP_XMPP = 1,
ServiceChain = 2,
StaticRoute = 3,
Aggregate = 4,
Local = 5
} |
|
|
| BgpPath (const IPeer *peer, uint32_t path_id, PathSource src, const BgpAttrPtr ptr, uint32_t flags, uint32_t label, uint32_t l3_label=0) |
|
| BgpPath (const IPeer *peer, PathSource src, const BgpAttrPtr attr, uint32_t flags, uint32_t label, uint32_t l3_label=0) |
|
| BgpPath (uint32_t path_id, PathSource src, const BgpAttrPtr attr, uint32_t flags=0, uint32_t label=0, uint32_t l3_label=0) |
|
| BgpPath (PathSource src, const BgpAttrPtr attr, uint32_t flags=0, uint32_t label=0, uint32_t l3_label=0) |
|
virtual | ~BgpPath () |
|
void | AddExtCommunitySubCluster (uint32_t subcluster_id) |
|
RouteDistinguisher | GetSourceRouteDistinguisher () const |
|
bool | IsVrfOriginated () const |
|
IPeer * | GetPeer () |
|
const IPeer * | GetPeer () const |
|
const uint32_t | GetPathId () const |
|
void | UpdatePeerRefCount (int count, Address::Family family) const |
|
void | SetAttr (const BgpAttrPtr attr, const BgpAttrPtr original_attr) |
|
const BgpAttr * | GetAttr () const |
|
const BgpAttr * | GetOriginalAttr () const |
|
uint32_t | GetLabel () const |
|
uint32_t | GetL3Label () const |
|
virtual bool | IsReplicated () const |
|
bool | IsFeasible () const |
|
bool | IsResolutionFeasible () const |
|
bool | IsAliased () const |
|
bool | IsResolved () const |
|
uint32_t | GetFlags () const |
|
std::vector< std::string > | GetFlagsStringList () const |
|
PathSource | GetSource () const |
|
std::string | GetSourceString (bool combine_bgp_and_xmpp=false) const |
|
bool | IsStale () const |
|
bool | IsLlgrStale () const |
|
void | SetPolicyReject () |
|
void | ResetPolicyReject () |
|
bool | IsPolicyReject () const |
|
void | SetStale () |
|
void | ResetStale () |
|
void | SetResolveNextHop () |
|
void | ResetResolveNextHop () |
|
void | SetLlgrStale () |
|
void | ResetLlgrStale () |
|
bool | NeedsResolution () const |
|
bool | CheckErmVpn () const |
|
void | ResetCheckErmVpn () |
|
void | SetCheckErmVpn () |
|
virtual std::string | ToString () const |
|
int | PathCompare (const BgpPath &rhs, bool allow_ecmp) const |
|
bool | PathSameNeighborAs (const BgpPath &rhs) const |
|
| Path () |
|
virtual | ~Path () |
|
const uint64_t | time_stamp_usecs () const |
|
void | set_time_stamp_usecs (uint64_t time_stamp_usecs) |
|
Definition at line 19 of file bgp_path.h.
Enumerator |
---|
AsPathLooped |
|
NoNeighborAs |
|
Stale |
|
NoTunnelEncap |
|
OriginatorIdLooped |
|
ResolveNexthop |
|
ResolvedPath |
|
RoutingPolicyReject |
|
LlgrStale |
|
ClusterListLooped |
|
AliasedPath |
|
CheckGlobalErmVpnRoute |
|
Definition at line 21 of file bgp_path.h.
Enumerator |
---|
None |
|
BGP_XMPP |
|
ServiceChain |
|
StaticRoute |
|
Aggregate |
|
Local |
|
Definition at line 37 of file bgp_path.h.
BgpPath::BgpPath |
( |
const IPeer * |
peer, |
|
|
uint32_t |
path_id, |
|
|
PathSource |
src, |
|
|
const BgpAttrPtr |
ptr, |
|
|
uint32_t |
flags, |
|
|
uint32_t |
label, |
|
|
uint32_t |
l3_label = 0 |
|
) |
| |
BgpPath::BgpPath |
( |
const IPeer * |
peer, |
|
|
PathSource |
src, |
|
|
const BgpAttrPtr |
attr, |
|
|
uint32_t |
flags, |
|
|
uint32_t |
label, |
|
|
uint32_t |
l3_label = 0 |
|
) |
| |
BgpPath::BgpPath |
( |
uint32_t |
path_id, |
|
|
PathSource |
src, |
|
|
const BgpAttrPtr |
attr, |
|
|
uint32_t |
flags = 0 , |
|
|
uint32_t |
label = 0 , |
|
|
uint32_t |
l3_label = 0 |
|
) |
| |
BgpPath::BgpPath |
( |
PathSource |
src, |
|
|
const BgpAttrPtr |
attr, |
|
|
uint32_t |
flags = 0 , |
|
|
uint32_t |
label = 0 , |
|
|
uint32_t |
l3_label = 0 |
|
) |
| |
virtual BgpPath::~BgpPath |
( |
| ) |
|
|
inlinevirtual |
void BgpPath::AddExtCommunitySubCluster |
( |
uint32_t |
subcluster_id | ) |
|
bool BgpPath::CheckErmVpn |
( |
| ) |
const |
|
inline |
const BgpAttr* BgpPath::GetAttr |
( |
| ) |
const |
|
inline |
uint32_t BgpPath::GetFlags |
( |
| ) |
const |
|
inline |
vector< string > BgpPath::GetFlagsStringList |
( |
| ) |
const |
uint32_t BgpPath::GetL3Label |
( |
| ) |
const |
|
inline |
uint32_t BgpPath::GetLabel |
( |
| ) |
const |
|
inline |
const BgpAttr* BgpPath::GetOriginalAttr |
( |
| ) |
const |
|
inline |
const uint32_t BgpPath::GetPathId |
( |
| ) |
const |
|
inline |
IPeer* BgpPath::GetPeer |
( |
| ) |
|
|
inline |
const IPeer* BgpPath::GetPeer |
( |
| ) |
const |
|
inline |
string BgpPath::GetSourceString |
( |
bool |
combine_bgp_and_xmpp = false | ) |
const |
bool BgpPath::IsAliased |
( |
| ) |
const |
|
inline |
bool BgpPath::IsFeasible |
( |
| ) |
const |
|
inline |
bool BgpPath::IsLlgrStale |
( |
| ) |
const |
|
inline |
bool BgpPath::IsPolicyReject |
( |
| ) |
const |
|
inline |
virtual bool BgpPath::IsReplicated |
( |
| ) |
const |
|
inlinevirtual |
bool BgpPath::IsResolutionFeasible |
( |
| ) |
const |
|
inline |
bool BgpPath::IsResolved |
( |
| ) |
const |
|
inline |
bool BgpPath::IsStale |
( |
| ) |
const |
|
inline |
bool BgpPath::IsVrfOriginated |
( |
| ) |
const |
|
inline |
bool BgpPath::NeedsResolution |
( |
| ) |
const |
|
inline |
int BgpPath::PathCompare |
( |
const BgpPath & |
rhs, |
|
|
bool |
allow_ecmp |
|
) |
| const |
string BgpPath::PathIdString |
( |
uint32_t |
path_id | ) |
|
|
static |
bool BgpPath::PathSameNeighborAs |
( |
const BgpPath & |
rhs | ) |
const |
void BgpPath::ResetCheckErmVpn |
( |
| ) |
|
|
inline |
void BgpPath::ResetLlgrStale |
( |
| ) |
|
|
inline |
void BgpPath::ResetPolicyReject |
( |
| ) |
|
|
inline |
void BgpPath::ResetResolveNextHop |
( |
| ) |
|
|
inline |
void BgpPath::ResetStale |
( |
| ) |
|
|
inline |
void BgpPath::SetCheckErmVpn |
( |
| ) |
|
|
inline |
void BgpPath::SetLlgrStale |
( |
| ) |
|
|
inline |
void BgpPath::SetPolicyReject |
( |
| ) |
|
|
inline |
void BgpPath::SetResolveNextHop |
( |
| ) |
|
|
inline |
void BgpPath::SetStale |
( |
| ) |
|
|
inline |
string BgpPath::ToString |
( |
| ) |
const |
|
virtual |
void BgpPath::UpdatePeerRefCount |
( |
int |
count, |
|
|
Address::Family |
family |
|
) |
| const |
const uint32_t BgpPath::INFEASIBLE_MASK |
|
static |
uint32_t BgpPath::l3_label_ |
|
private |
const uint32_t BgpPath::path_id_ |
|
private |
const IPeer* BgpPath::peer_ |
|
private |
The documentation for this class was generated from the following files: