OpenSDN source code
RibOutAttr Class Reference

#include <bgp_ribout.h>

Collaboration diagram for RibOutAttr:

Classes

class  NextHop
 

Public Types

typedef std::vector< NextHopNextHopList
 

Public Member Functions

 RibOutAttr ()
 
 RibOutAttr (const RibOutAttr &rhs)
 
 RibOutAttr (const BgpRoute *route, const BgpAttr *attr, bool is_xmpp)
 
 RibOutAttr (const BgpTable *table, const BgpAttr *attr, uint32_t label, uint32_t l3_label=0, bool is_xmpp=false)
 
 RibOutAttr (const BgpTable *table, const BgpRoute *route, const BgpAttr *attr, uint32_t label, bool include_nh=true, bool is_xmpp=false)
 
RibOutAttroperator= (const RibOutAttr &rhs)
 
bool operator== (const RibOutAttr &rhs) const
 
bool operator!= (const RibOutAttr &rhs) const
 
bool IsReachable () const
 
const NextHopListnexthop_list () const
 
const BgpAttrattr () const
 
void set_attr (const BgpTable *table, const BgpAttrPtr &attrp)
 
void set_attr (const BgpTable *table, const BgpAttrPtr &attrp, uint32_t label)
 
void set_attr (const BgpTable *table, const BgpAttrPtr &attrp, uint32_t label, uint32_t l3_label, bool vrf_originated, bool is_xmpp)
 
void set_source_address (Ip4Address source_address)
 
void clear ()
 
uint32_t label () const
 
uint32_t l3_label () const
 
const Ip4Addresssource_address () const
 
Ip4Addresssource_address ()
 
bool is_xmpp () const
 
bool vrf_originated () const
 
const std::string & repr () const
 
void set_repr (const std::string &repr, size_t pos=0) const
 

Private Member Functions

int CompareTo (const RibOutAttr &rhs) const
 

Private Attributes

BgpAttrPtr attr_out_
 
NextHopList nexthop_list_
 
uint32_t label_
 
uint32_t l3_label_
 
Ip4Address source_address_
 
bool is_xmpp_
 
bool vrf_originated_
 
std::string repr_
 

Detailed Description

Definition at line 40 of file bgp_ribout.h.

Member Typedef Documentation

◆ NextHopList

typedef std::vector<NextHop> RibOutAttr::NextHopList

Definition at line 80 of file bgp_ribout.h.

Constructor & Destructor Documentation

◆ RibOutAttr() [1/5]

RibOutAttr::RibOutAttr ( )

Definition at line 79 of file bgp_ribout.cc.

◆ RibOutAttr() [2/5]

RibOutAttr::RibOutAttr ( const RibOutAttr rhs)

Definition at line 90 of file bgp_ribout.cc.

◆ RibOutAttr() [3/5]

RibOutAttr::RibOutAttr ( const BgpRoute route,
const BgpAttr attr,
bool  is_xmpp 
)

Definition at line 133 of file bgp_ribout.cc.

Here is the call graph for this function:

◆ RibOutAttr() [4/5]

RibOutAttr::RibOutAttr ( const BgpTable table,
const BgpAttr attr,
uint32_t  label,
uint32_t  l3_label = 0,
bool  is_xmpp = false 
)

Definition at line 100 of file bgp_ribout.cc.

Here is the call graph for this function:

◆ RibOutAttr() [5/5]

RibOutAttr::RibOutAttr ( const BgpTable table,
const BgpRoute route,
const BgpAttr attr,
uint32_t  label,
bool  include_nh = true,
bool  is_xmpp = false 
)

Definition at line 114 of file bgp_ribout.cc.

Here is the call graph for this function:

Member Function Documentation

◆ attr()

const BgpAttr* RibOutAttr::attr ( ) const
inline

Definition at line 97 of file bgp_ribout.h.

◆ clear()

void RibOutAttr::clear ( )
inline

Definition at line 111 of file bgp_ribout.h.

◆ CompareTo()

int RibOutAttr::CompareTo ( const RibOutAttr rhs) const
private

Definition at line 204 of file bgp_ribout.cc.

Here is the call graph for this function:

◆ is_xmpp()

bool RibOutAttr::is_xmpp ( ) const
inline

Definition at line 123 of file bgp_ribout.h.

◆ IsReachable()

bool RibOutAttr::IsReachable ( ) const
inline

Definition at line 94 of file bgp_ribout.h.

◆ l3_label()

uint32_t RibOutAttr::l3_label ( ) const
inline

Definition at line 118 of file bgp_ribout.h.

◆ label()

uint32_t RibOutAttr::label ( ) const
inline

Definition at line 115 of file bgp_ribout.h.

◆ nexthop_list()

const NextHopList& RibOutAttr::nexthop_list ( ) const
inline

Definition at line 96 of file bgp_ribout.h.

◆ operator!=()

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

Definition at line 93 of file bgp_ribout.h.

Here is the call graph for this function:

◆ operator=()

RibOutAttr & RibOutAttr::operator= ( const RibOutAttr rhs)

Definition at line 189 of file bgp_ribout.cc.

◆ operator==()

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

Definition at line 92 of file bgp_ribout.h.

Here is the call graph for this function:

◆ repr()

const std::string& RibOutAttr::repr ( ) const
inline

Definition at line 125 of file bgp_ribout.h.

◆ set_attr() [1/3]

void RibOutAttr::set_attr ( const BgpTable table,
const BgpAttrPtr attrp 
)
inline

Definition at line 98 of file bgp_ribout.h.

◆ set_attr() [2/3]

void RibOutAttr::set_attr ( const BgpTable table,
const BgpAttrPtr attrp,
uint32_t  label 
)
inline

Definition at line 101 of file bgp_ribout.h.

Here is the call graph for this function:

◆ set_attr() [3/3]

void RibOutAttr::set_attr ( const BgpTable table,
const BgpAttrPtr attrp,
uint32_t  label,
uint32_t  l3_label,
bool  vrf_originated,
bool  is_xmpp 
)

Definition at line 218 of file bgp_ribout.cc.

Here is the call graph for this function:

◆ set_repr()

void RibOutAttr::set_repr ( const std::string &  repr,
size_t  pos = 0 
) const
inline

Definition at line 126 of file bgp_ribout.h.

Here is the call graph for this function:

◆ set_source_address()

void RibOutAttr::set_source_address ( Ip4Address  source_address)
inline

Definition at line 107 of file bgp_ribout.h.

Here is the call graph for this function:

◆ source_address() [1/2]

Ip4Address* RibOutAttr::source_address ( )
inline

Definition at line 122 of file bgp_ribout.h.

◆ source_address() [2/2]

const Ip4Address& RibOutAttr::source_address ( ) const
inline

Definition at line 121 of file bgp_ribout.h.

◆ vrf_originated()

bool RibOutAttr::vrf_originated ( ) const
inline

Definition at line 124 of file bgp_ribout.h.

Member Data Documentation

◆ attr_out_

BgpAttrPtr RibOutAttr::attr_out_
private

Definition at line 134 of file bgp_ribout.h.

◆ is_xmpp_

bool RibOutAttr::is_xmpp_
private

Definition at line 139 of file bgp_ribout.h.

◆ l3_label_

uint32_t RibOutAttr::l3_label_
private

Definition at line 137 of file bgp_ribout.h.

◆ label_

uint32_t RibOutAttr::label_
private

Definition at line 136 of file bgp_ribout.h.

◆ nexthop_list_

NextHopList RibOutAttr::nexthop_list_
private

Definition at line 135 of file bgp_ribout.h.

◆ repr_

std::string RibOutAttr::repr_
mutableprivate

Definition at line 141 of file bgp_ribout.h.

◆ source_address_

Ip4Address RibOutAttr::source_address_
private

Definition at line 138 of file bgp_ribout.h.

◆ vrf_originated_

bool RibOutAttr::vrf_originated_
private

Definition at line 140 of file bgp_ribout.h.


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