5 #ifndef SRC_BGP_ERMVPN_ERMVPN_ROUTE_H_
6 #define SRC_BGP_ERMVPN_ERMVPN_ROUTE_H_
8 #include <boost/system/error_code.hpp>
37 const std::string
GetType()
const;
46 uint32_t *label, uint32_t *l3_label);
48 boost::system::error_code *errorp = NULL);
77 virtual std::string
ToString()
const;
88 uint32_t l3_label = 0)
const;
98 const std::string
GetType()
const;
107 #endif // SRC_BGP_ERMVPN_ERMVPN_ROUTE_H_
virtual std::string ToXmppIdString() const
void BuildProtoPrefix(BgpProtoPrefix *prefix) const
const ErmVpnPrefix & GetPrefix() const
DISALLOW_COPY_AND_ASSIGN(ErmVpnRoute)
virtual int CompareTo(const Route &rhs) const
std::string ToString() const
static bool IsValid(uint8_t type)
boost::asio::ip::address IpAddress
std::string ToXmppIdString() const
std::unique_ptr< DBRequestKey > KeyPtr
static ErmVpnPrefix FromString(const std::string &str, boost::system::error_code *errorp=NULL)
boost::intrusive_ptr< const BgpAttr > BgpAttrPtr
const std::string GetType() const
virtual std::string ToString() const
Ip4Address router_id() const
const RouteDistinguisher & route_distinguisher() const
Ip4Address source() const
boost::asio::ip::address_v4 Ip4Address
static bool IsValidForBgp(uint8_t type)
const std::string GetType() const
virtual KeyPtr GetDBRequestKey() const
void set_route_distinguisher(const RouteDistinguisher &rd)
bool operator==(const ErmVpnPrefix &rhs) const
ErmVpnRoute(const ErmVpnPrefix &prefix)
static int FromProtoPrefix(const BgpProtoPrefix &proto_prefix, ErmVpnPrefix *prefix)
virtual void BuildProtoPrefix(BgpProtoPrefix *prefix, const BgpAttr *attr=NULL, uint32_t label=0, uint32_t l3_label=0) const
virtual bool IsLess(const DBEntry &genrhs) const
virtual void SetKey(const DBRequestKey *reqkey)
virtual bool IsValid() const
virtual void BuildBgpProtoNextHop(std::vector< uint8_t > &nh, IpAddress nexthop) const