OpenSDN source code
vrf_stats_io_context.cc
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 
8 #include <uve/agent_uve.h>
9 #include <uve/vn_uve_table.h>
10 #include <ksync/ksync_types.h>
11 
15  VnUveTable *vt = static_cast<VnUveTable *>
16  (ctx->agent()->uve()->vn_uve_table());
17  vt->SendVnStats();
18  /* Reset the marker for query during next timer interval, if there is
19  * no additional records for the current query */
20  if (!ctx->MoreData()) {
21  ctx->set_marker_id(-1);
22  }
23 }
24 
26  KSYNC_ERROR(VRouterError, "VRouter VRF stats query failed. Error <", err,
28  ">. Object <", "N/A", ">. State <", "N/A",
29  ">. Message number :", GetSeqno());
30  LOG(ERROR, "Error reading Vrf Stats. Error <" << err << ": "
32  << ": Sequence No : " << GetSeqno());
33 }
34 
VnUveTableBase * vn_uve_table() const
AgentUveBase * uve() const
Definition: agent.cc:913
AgentSandeshContext * sandesh_context_
Definition: ksync_sock.h:151
uint32_t GetSeqno() const
Definition: ksync_sock.h:139
static std::string VrouterErrorToString(uint32_t error)
void SendVnStats()
Definition: vn_uve_table.cc:51
virtual void ErrorHandler(int err)
#define KSYNC_ERROR(obj,...)
Definition: ksync_entry.h:17
#define LOG(_Level, _Msg)
Definition: logging.h:35