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_
;
24
RouteExport
*
rt_export_
[
Agent::ROUTE_TABLE_MAX
];
25
uint64_t
last_sequence_number_
;
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__
agent.h
agent_cmn.h
AgentXmppChannel
Definition:
controller_peer.h:47
Agent
Definition:
agent.h:361
Agent::ROUTE_TABLE_MAX
@ ROUTE_TABLE_MAX
Definition:
agent.h:426
DBEntryBase
Definition:
db_entry.h:22
DBTablePartBase
Definition:
db_table_partition.h:20
RouteExport
Definition:
controller_export.h:18
VrfExport
Definition:
controller_vrf_export.h:16
VrfExport::Notify
static void Notify(const Agent *agent, AgentXmppChannel *, DBTablePartBase *partition, DBEntryBase *e)
Definition:
controller_vrf_export.cc:42
DBState
Definition:
db_entry.h:17
VrfExport::State
Definition:
controller_vrf_export.h:18
VrfExport::State::IsExportable
bool IsExportable(uint64_t sequence_number)
Definition:
controller_vrf_export.cc:28
VrfExport::State::exported_
bool exported_
Definition:
controller_vrf_export.h:21
VrfExport::State::force_chg_
bool force_chg_
Definition:
controller_vrf_export.h:23
VrfExport::State::last_sequence_number_
uint64_t last_sequence_number_
Definition:
controller_vrf_export.h:25
VrfExport::State::~State
~State()
Definition:
controller_vrf_export.cc:25
VrfExport::State::mcast_exported_
bool mcast_exported_
Definition:
controller_vrf_export.h:22
VrfExport::State::State
State()
Definition:
controller_vrf_export.cc:21
VrfExport::State::rt_export_
RouteExport * rt_export_[Agent::ROUTE_TABLE_MAX]
Definition:
controller_vrf_export.h:24
contrail
controller
src
vnsw
agent
controller
controller_vrf_export.h
Generated by
1.9.1