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
route_kstate.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#ifndef vnsw_agent_route_kstate_h
6
#define vnsw_agent_route_kstate_h
7
8
class
RouteKState
:
public
KState
{
9
public
:
10
RouteKState
(KRouteResp *obj,
const
std::string &resp_ctx,
11
vr_route_req &encoder,
int
id
,
int
family_id,
sandesh_op::type
op_code,
int
prefix_size);
12
int
family_id_
;
13
sandesh_op::type
op_code_
;
14
// This is used to set route prefix in next vr_route_req
15
std::vector<int8_t>
prefix_
;
16
virtual
void
SendResponse
();
17
virtual
void
Handler
();
18
void
InitEncoder
(vr_route_req &req,
int
id
,
sandesh_op::type
op_code)
const
;
19
virtual
void
SendNextRequest
();
20
const
std::string
FamilyToString
(
int
family)
const
;
21
const
std::string
LabelFlagsToString
(
int
flags)
const
;
22
};
23
24
struct
RouteContext
{
25
uint32_t
vrf_id
;
26
std::vector<int8_t>
marker
;
27
int
marker_plen
;
28
};
29
#endif //vnsw_agent_route_kstate_h
RouteKState::SendNextRequest
virtual void SendNextRequest()
Definition:
route_kstate.cc:51
RouteKState::family_id_
int family_id_
Definition:
route_kstate.h:12
RouteKState::RouteKState
RouteKState(KRouteResp *obj, const std::string &resp_ctx, vr_route_req &encoder, int id, int family_id, sandesh_op::type op_code, int prefix_size)
Definition:
route_kstate.cc:12
KState
Definition:
kstate.h:24
RouteContext::vrf_id
uint32_t vrf_id
Definition:
route_kstate.h:25
RouteContext
Definition:
route_kstate.h:24
RouteKState::Handler
virtual void Handler()
Definition:
route_kstate.cc:27
RouteKState::op_code_
sandesh_op::type op_code_
Definition:
route_kstate.h:13
RouteKState::LabelFlagsToString
const std::string LabelFlagsToString(int flags) const
Definition:
route_kstate.cc:91
type
uint8_t type
Definition:
load_balance.h:109
RouteContext::marker
std::vector< int8_t > marker
Definition:
route_kstate.h:26
RouteKState::SendResponse
virtual void SendResponse()
Definition:
route_kstate.cc:67
RouteKState::FamilyToString
const std::string FamilyToString(int family) const
Definition:
route_kstate.cc:77
RouteKState
Definition:
route_kstate.h:8
RouteKState::prefix_
std::vector< int8_t > prefix_
Definition:
route_kstate.h:15
RouteKState::InitEncoder
void InitEncoder(vr_route_req &req, int id, sandesh_op::type op_code) const
Definition:
route_kstate.cc:18
RouteContext::marker_plen
int marker_plen
Definition:
route_kstate.h:27
contrail
controller
src
vnsw
agent
kstate
route_kstate.h
Generated by
1.8.5