OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sandesh_ksync.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 #include "vr_types.h"
5 
6 #include "vrouter/ksync/agent_ksync_types.h"
7 #include "ksync/ksync_index.h"
8 #include "ksync/ksync_entry.h"
9 #include "ksync/ksync_object.h"
10 #include "ksync/ksync_netlink.h"
11 #include "ksync/ksync_sock.h"
13 
14 class KSyncFlowMemory;
15 
16 /* Sandesh Context used for processing vr_response and vr_flow_req
17  * which is in response to Sandesh Adds/Deletes
18  */
20 public:
22  Reset();
23  }
24 
25  virtual void IfMsgHandler(vr_interface_req *req);
26  virtual void NHMsgHandler(vr_nexthop_req *req) {
27  assert(0);
28  }
29  virtual void RouteMsgHandler(vr_route_req *req) {
30  assert(0);
31  }
32  virtual void MplsMsgHandler(vr_mpls_req *req) {
33  assert(0);
34  }
35  virtual void MirrorMsgHandler(vr_mirror_req *req) {
36  assert(0);
37  }
38  virtual void VrfAssignMsgHandler(vr_vrf_assign_req *req) {
39  assert(0);
40  }
41  virtual void VrfMsgHandler(vr_vrf_req *req) {
42  assert(0);
43  }
44  virtual void VrfStatsMsgHandler(vr_vrf_stats_req *req) {
45  assert(0);
46  }
47  virtual void DropStatsMsgHandler(vr_drop_stats_req *req) {
48  assert(0);
49  }
50  virtual void VxLanMsgHandler(vr_vxlan_req *req) {
51  assert(0);
52  }
53  virtual void QosConfigMsgHandler(vr_qos_map_req *req) {
54  assert(0);
55  }
56  virtual void ForwardingClassMsgHandler(vr_fc_map_req *req) {
57  assert(0);
58  }
59 
60  virtual int VrResponseMsgHandler(vr_response *r);
61  virtual void FlowTableInfoHandler(vr_flow_table_data *r);
62  virtual void BridgeTableInfoHandler(vr_bridge_table_data *r);
63  virtual void FlowMsgHandler(vr_flow_req *r);
64  virtual void FlowResponseHandler(vr_flow_response *r);
65  virtual void VrouterHugePageHandler(vr_hugepage_config *r);
66  virtual void VrouterOpsMsgHandler(vrouter_ops *r);
67 
68  int response_code() const { return response_code_; }
69  int context_marker() const { return context_marker_; }
70  void Reset() {
71  response_code_ = 0;
72  context_marker_ = -1;
73  }
74 private:
79 };
virtual void FlowMsgHandler(vr_flow_req *r)
virtual void MirrorMsgHandler(vr_mirror_req *req)
Definition: sandesh_ksync.h:35
virtual void ForwardingClassMsgHandler(vr_fc_map_req *req)
Definition: sandesh_ksync.h:56
virtual void VxLanMsgHandler(vr_vxlan_req *req)
Definition: sandesh_ksync.h:50
KSyncSandeshContext(KSync *obj)
Definition: sandesh_ksync.h:21
DISALLOW_COPY_AND_ASSIGN(KSyncSandeshContext)
virtual void VrouterOpsMsgHandler(vrouter_ops *r)
virtual void VrfStatsMsgHandler(vr_vrf_stats_req *req)
Definition: sandesh_ksync.h:44
virtual void QosConfigMsgHandler(vr_qos_map_req *req)
Definition: sandesh_ksync.h:53
virtual void VrouterHugePageHandler(vr_hugepage_config *r)
virtual void FlowResponseHandler(vr_flow_response *r)
virtual void VrfAssignMsgHandler(vr_vrf_assign_req *req)
Definition: sandesh_ksync.h:38
int context_marker() const
Definition: sandesh_ksync.h:69
virtual void RouteMsgHandler(vr_route_req *req)
Definition: sandesh_ksync.h:29
virtual void MplsMsgHandler(vr_mpls_req *req)
Definition: sandesh_ksync.h:32
virtual void VrfMsgHandler(vr_vrf_req *req)
Definition: sandesh_ksync.h:41
virtual void BridgeTableInfoHandler(vr_bridge_table_data *r)
virtual void IfMsgHandler(vr_interface_req *req)
virtual void DropStatsMsgHandler(vr_drop_stats_req *req)
Definition: sandesh_ksync.h:47
int response_code() const
Definition: sandesh_ksync.h:68
virtual void NHMsgHandler(vr_nexthop_req *req)
Definition: sandesh_ksync.h:26
virtual int VrResponseMsgHandler(vr_response *r)
virtual void FlowTableInfoHandler(vr_flow_table_data *r)