OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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_
;
23
RouteExport
*
rt_export_
[
Agent::ROUTE_TABLE_MAX
];
24
uint64_t
last_sequence_number_
;
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__
AgentXmppChannel
Definition:
controller_peer.h:46
VrfExport::State::IsExportable
bool IsExportable(uint64_t sequence_number)
Definition:
controller_vrf_export.cc:27
VrfExport::State::exported_
bool exported_
Definition:
controller_vrf_export.h:20
Agent::ROUTE_TABLE_MAX
Definition:
agent.h:423
DBTablePartBase
Definition:
db_table_partition.h:18
VrfExport::State::force_chg_
bool force_chg_
Definition:
controller_vrf_export.h:22
RouteExport
Definition:
controller_export.h:17
VrfExport
Definition:
controller_vrf_export.h:15
Agent
Definition:
agent.h:358
VrfExport::State::mcast_exported_
bool mcast_exported_
Definition:
controller_vrf_export.h:21
agent.h
VrfExport::State
Definition:
controller_vrf_export.h:17
VrfExport::State::rt_export_
RouteExport * rt_export_[Agent::ROUTE_TABLE_MAX]
Definition:
controller_vrf_export.h:23
agent_cmn.h
VrfExport::Notify
static void Notify(const Agent *agent, AgentXmppChannel *, DBTablePartBase *partition, DBEntryBase *e)
Definition:
controller_vrf_export.cc:41
VrfExport::State::State
State()
Definition:
controller_vrf_export.cc:20
DBEntryBase
Definition:
db_entry.h:22
DBState
Definition:
db_entry.h:17
VrfExport::State::last_sequence_number_
uint64_t last_sequence_number_
Definition:
controller_vrf_export.h:24
VrfExport::State::~State
~State()
Definition:
controller_vrf_export.cc:24
contrail
controller
src
vnsw
agent
controller
controller_vrf_export.h
Generated by
1.8.5