OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
controller_vrf_export.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef __CONTROLLER_VRF_EXPORT_H__
6 #define __CONTROLLER_VRF_EXPORT_H__
7 
8 #include <boost/uuid/uuid_io.hpp>
9 #include <cmn/agent_cmn.h>
10 #include <cmn/agent.h>
11 
12 class AgentXmppChannel;
13 class RouteExport;
14 
15 class VrfExport {
16 public:
17  struct State : DBState {
18  State();
19  ~State();
20  bool exported_;
21  bool mcast_exported_; //Tracks MC notofication to MC builder
22  bool force_chg_;
25 
26  // Conditions to decide if route in this VRF can be exported.
27  bool IsExportable(uint64_t sequence_number);
28  };
29 
30  static void Notify(const Agent *agent, AgentXmppChannel *,
31  DBTablePartBase *partition, DBEntryBase *e);
32 };
33 
34 #endif // __CONTROLLER_VRF_EXPORT_H__
bool IsExportable(uint64_t sequence_number)
Definition: agent.h:358
RouteExport * rt_export_[Agent::ROUTE_TABLE_MAX]
static void Notify(const Agent *agent, AgentXmppChannel *, DBTablePartBase *partition, DBEntryBase *e)