16 using namespace boost::asio;
21 const std::string &tor_vrf,
22 const std::string &dest_vn_name,
24 bool ha_stale_export, uint32_t sequence) :
26 peer_(peer), vxlan_id_(vxlan_id), tor_ip_(tor_ip),
27 tor_vrf_(tor_vrf), router_id_(router_id), dest_vn_name_(dest_vn_name),
28 sg_list_(sg_list), ha_stale_export_(ha_stale_export), sequence_(sequence) {
33 peer_(peer), vxlan_id_() {
40 return "OVS Route Data";
92 if (path->
ChangeNH(agent, nh) ==
true)
107 return "OVS Route Resync";
void set_path_preference(const PathPreference &rp)
std::string dest_vn_name_
bool ChangeNH(Agent *agent, NextHop *nh)
void set_unresolved(bool unresolved)
SecurityGroupList sg_list_
const PathPreference & path_preference() const
NextHopTable * nexthop_table() const
virtual ~OvsdbRouteResyncData()
void set_sg_list(const SecurityGroupList &sg)
void set_vxlan_id(uint32_t vxlan_id)
std::vector< int > SecurityGroupList
std::unique_ptr< DBRequestData > data
SecurityGroupList sg_list_
AgentDBEntry * FindActiveEntry(const DBEntry *key)
virtual ~OvsdbRouteData()
Base class for all Route entries in agent.
void set_tunnel_bmap(TunnelType::TypeBmap bmap)
virtual std::string ToString() const
std::unique_ptr< DBRequestKey > key
virtual bool AddChangePathExtended(Agent *agent, AgentPath *path, const AgentRoute *data)
std::set< std::string > VnListType
static Type ComputeType(TypeBmap bmap)
boost::asio::ip::address_v4 Ip4Address
OvsdbRouteData(const Peer *peer, uint32_t vxlan_id, const Ip4Address &tor_ip, const Ip4Address &router_id, const std::string &tor_vrf, const std::string &dest_vn_name, const SecurityGroupList &sg_list, bool ha_stale_export, uint32_t sequence)
OvsdbRouteResyncData(const SecurityGroupList &sg_list)
void Process(DBRequest &req)
bool dest_vn_match(const std::string &vn) const
virtual std::string ToString() const
void set_dest_vn_list(const VnListType &dest_vn_list)
uint32_t tunnel_bmap() const
void set_tunnel_type(TunnelType::Type type)
static TypeBmap VxlanType()
const SecurityGroupList & sg_list() const
uint32_t vxlan_id() const
virtual bool AddChangePathExtended(Agent *agent, AgentPath *path, const AgentRoute *data)