OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ovsdb_route_data.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
3  */
4 #ifndef SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVS_ROUTE_H_
5 #define SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVS_ROUTE_H_
6 
7 #include <cmn/agent_cmn.h>
8 #include <oper/route_common.h>
9 
10 class Peer;
11 
13 public:
14  OvsdbRouteData(const Peer *peer, uint32_t vxlan_id,
15  const Ip4Address &tor_ip, const Ip4Address &router_id,
16  const std::string &tor_vrf, const std::string &dest_vn_name,
17  const SecurityGroupList &sg_list,
18  bool ha_stale_export,
19  uint32_t sequence);
20  OvsdbRouteData(const Peer *peer);
21  virtual ~OvsdbRouteData();
22 
23  virtual std::string ToString() const;
24  virtual bool AddChangePathExtended(Agent *agent, AgentPath *path,
25  const AgentRoute *data);
26 
27 private:
28  const Peer *peer_;
29  uint32_t vxlan_id_;
31  std::string tor_vrf_;
33  std::string dest_vn_name_;
36  uint32_t sequence_;
38 };
39 
41 public:
43  virtual ~OvsdbRouteResyncData();
44 
45  virtual std::string ToString() const;
46  virtual bool AddChangePathExtended(Agent *agent, AgentPath *path,
47  const AgentRoute *data);
48 
49 private:
52 };
53 
54 #endif // SRC_VNSW_AGENT_OVS_TOR_AGENT_OVSDB_CLIENT_OVS_ROUTE_H_
std::string dest_vn_name_
SecurityGroupList sg_list_
std::vector< int > SecurityGroupList
Definition: agent.h:201
Ip4Address tor_ip_
SecurityGroupList sg_list_
virtual ~OvsdbRouteData()
Base class for all Route entries in agent.
Definition: agent_route.h:224
std::string tor_vrf_
Definition: agent.h:358
virtual std::string ToString() const
const Peer * peer_
virtual bool AddChangePathExtended(Agent *agent, AgentPath *path, const AgentRoute *data)
Definition: peer.h:44
boost::asio::ip::address_v4 Ip4Address
Definition: address.h:14
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)
DISALLOW_COPY_AND_ASSIGN(OvsdbRouteData)
Ip4Address router_id_
DISALLOW_COPY_AND_ASSIGN(OvsdbRouteResyncData)
OvsdbRouteResyncData(const SecurityGroupList &sg_list)
virtual std::string ToString() const
virtual bool AddChangePathExtended(Agent *agent, AgentPath *path, const AgentRoute *data)