5 #ifndef SRC_BGP_BGP_ROUTE_H_
6 #define SRC_BGP_BGP_ROUTE_H_
36 bool include_secondary =
false)
const;
43 uint32_t path_id = 0);
54 const IPeer *peer, uint32_t path_id);
56 const IPeer *peer, uint32_t path_id);
70 uint32_t l3_label = 0)
const {
82 const std::string &source =
"",
const std::string &protocol =
"")
const;
98 #endif // SRC_BGP_BGP_ROUTE_H_
void FillRouteInfo(const BgpTable *table, ShowRouteBrief *show_route) const
virtual std::string ToXmppIdString() const
const BgpPath * BestPath() const
bool RemoveSecondaryPath(const BgpRoute *src_rt, BgpPath::PathSource src, const IPeer *peer, uint32_t path_id)
boost::asio::ip::address IpAddress
virtual void BuildProtoPrefix(BgpProtoPrefix *prefix, const BgpAttr *attr=NULL, uint32_t label=0, uint32_t l3_label=0) const
const BgpPath * FindPath(BgpPath::PathSource src) const
const std::set< std::string > & peer_sources() const
virtual void BuildBgpProtoNextHop(std::vector< uint8_t > &nh, IpAddress nexthop) const
virtual std::string ToString() const =0
static RouteDistinguisher kZeroRd
uint32_t SubClusterId() const
void InsertPath(BgpPath *path)
bool DuplicateForwardingPath(const BgpPath *in_path) const
bool RemovePath(BgpPath::PathSource src, const IPeer *peer=NULL, uint32_t path_id=0)
const Path * front() const
BgpPath * FindSecondaryPath(BgpRoute *src_rt, BgpPath::PathSource src, const IPeer *peer, uint32_t path_id)
std::set< std::string > peer_sources_
void DeletePath(BgpPath *path)
void del_peer_sources(std::string val)
void add_peer_sources(std::string val)
DISALLOW_COPY_AND_ASSIGN(BgpRoute)
void AddExtCommunitySubCluster(BgpPath *path)
virtual bool IsValid() const
virtual RouteDistinguisher GetRouteDistinguisher() const