5 #ifndef SRC_BGP_BGP_ROUTE_H_
6 #define SRC_BGP_BGP_ROUTE_H_
35 bool include_secondary =
false)
const;
42 uint32_t path_id = 0);
53 const IPeer *peer, uint32_t path_id);
55 const IPeer *peer, uint32_t path_id);
69 uint32_t l3_label = 0)
const {
81 const std::string &source =
"",
const std::string &protocol =
"")
const;
89 #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
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)
void DeletePath(BgpPath *path)
DISALLOW_COPY_AND_ASSIGN(BgpRoute)
void AddExtCommunitySubCluster(BgpPath *path)
virtual bool IsValid() const
virtual RouteDistinguisher GetRouteDistinguisher() const