OpenSDN source code
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);
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;
28 };
29 #endif //vnsw_agent_route_kstate_h
virtual void SendNextRequest()
Definition: route_kstate.cc:51
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
Definition: kstate.h:24
uint32_t vrf_id
Definition: route_kstate.h:25
virtual void Handler()
Definition: route_kstate.cc:27
sandesh_op::type op_code_
Definition: route_kstate.h:13
const std::string LabelFlagsToString(int flags) const
Definition: route_kstate.cc:91
uint8_t type
Definition: load_balance.h:109
std::vector< int8_t > marker
Definition: route_kstate.h:26
virtual void SendResponse()
Definition: route_kstate.cc:67
const std::string FamilyToString(int family) const
Definition: route_kstate.cc:77
std::vector< int8_t > prefix_
Definition: route_kstate.h:15
void InitEncoder(vr_route_req &req, int id, sandesh_op::type op_code) const
Definition: route_kstate.cc:18