OpenSDN source code
sandesh_ksync.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 #include "vr_types.h"
6 
7 #include "vrouter/ksync/agent_ksync_types.h"
8 #include "ksync/ksync_index.h"
9 #include "ksync/ksync_entry.h"
10 #include "ksync/ksync_object.h"
11 #include "ksync/ksync_netlink.h"
12 #include "ksync/ksync_sock.h"
14 
15 class KSyncFlowMemory;
16 
17 /* Sandesh Context used for processing vr_response and vr_flow_req
18  * which is in response to Sandesh Adds/Deletes
19  */
21 public:
23  Reset();
24  }
25 
26  virtual void IfMsgHandler(vr_interface_req *req);
27  virtual void NHMsgHandler(vr_nexthop_req *req) {
28  assert(0);
29  }
30  virtual void RouteMsgHandler(vr_route_req *req) {
31  assert(0);
32  }
33  virtual void MplsMsgHandler(vr_mpls_req *req) {
34  assert(0);
35  }
36  virtual void MirrorMsgHandler(vr_mirror_req *req) {
37  assert(0);
38  }
39  virtual void VrfAssignMsgHandler(vr_vrf_assign_req *req) {
40  assert(0);
41  }
42  virtual void VrfMsgHandler(vr_vrf_req *req) {
43  assert(0);
44  }
45  virtual void VrfStatsMsgHandler(vr_vrf_stats_req *req) {
46  assert(0);
47  }
48  virtual void DropStatsMsgHandler(vr_drop_stats_req *req) {
49  assert(0);
50  }
51  virtual void VxLanMsgHandler(vr_vxlan_req *req) {
52  assert(0);
53  }
54  virtual void QosConfigMsgHandler(vr_qos_map_req *req) {
55  assert(0);
56  }
57  virtual void ForwardingClassMsgHandler(vr_fc_map_req *req) {
58  assert(0);
59  }
60 
61  virtual int VrResponseMsgHandler(vr_response *r);
62  virtual void FlowTableInfoHandler(vr_flow_table_data *r);
63  virtual void BridgeTableInfoHandler(vr_bridge_table_data *r);
64  virtual void FlowMsgHandler(vr_flow_req *r);
65  virtual void FlowResponseHandler(vr_flow_response *r);
66  virtual void VrouterHugePageHandler(vr_hugepage_config *r);
67  virtual void VrouterOpsMsgHandler(vrouter_ops *r);
68 
69  int response_code() const { return response_code_; }
70  int context_marker() const { return context_marker_; }
71  void Reset() {
72  response_code_ = 0;
73  context_marker_ = -1;
74  }
75 private:
80 };
virtual void FlowTableInfoHandler(vr_flow_table_data *r)
virtual void MirrorMsgHandler(vr_mirror_req *req)
Definition: sandesh_ksync.h:36
virtual void VrfMsgHandler(vr_vrf_req *req)
Definition: sandesh_ksync.h:42
virtual void VrfAssignMsgHandler(vr_vrf_assign_req *req)
Definition: sandesh_ksync.h:39
virtual void BridgeTableInfoHandler(vr_bridge_table_data *r)
virtual void DropStatsMsgHandler(vr_drop_stats_req *req)
Definition: sandesh_ksync.h:48
DISALLOW_COPY_AND_ASSIGN(KSyncSandeshContext)
virtual void FlowMsgHandler(vr_flow_req *r)
KSyncSandeshContext(KSync *obj)
Definition: sandesh_ksync.h:22
virtual void MplsMsgHandler(vr_mpls_req *req)
Definition: sandesh_ksync.h:33
virtual void NHMsgHandler(vr_nexthop_req *req)
Definition: sandesh_ksync.h:27
virtual void IfMsgHandler(vr_interface_req *req)
int response_code() const
Definition: sandesh_ksync.h:69
virtual void VxLanMsgHandler(vr_vxlan_req *req)
Definition: sandesh_ksync.h:51
virtual void RouteMsgHandler(vr_route_req *req)
Definition: sandesh_ksync.h:30
virtual void ForwardingClassMsgHandler(vr_fc_map_req *req)
Definition: sandesh_ksync.h:57
virtual void FlowResponseHandler(vr_flow_response *r)
virtual void VrouterHugePageHandler(vr_hugepage_config *r)
virtual void QosConfigMsgHandler(vr_qos_map_req *req)
Definition: sandesh_ksync.h:54
virtual void VrouterOpsMsgHandler(vrouter_ops *r)
virtual void VrfStatsMsgHandler(vr_vrf_stats_req *req)
Definition: sandesh_ksync.h:45
int context_marker() const
Definition: sandesh_ksync.h:70
virtual int VrResponseMsgHandler(vr_response *r)