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