OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vrf_stats_io_context.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
7 #include <uve/agent_uve.h>
8 #include <uve/vn_uve_table.h>
9 #include <ksync/ksync_types.h>
10 
14  VnUveTable *vt = static_cast<VnUveTable *>
15  (ctx->agent()->uve()->vn_uve_table());
16  vt->SendVnStats();
17  /* Reset the marker for query during next timer interval, if there is
18  * no additional records for the current query */
19  if (!ctx->MoreData()) {
20  ctx->set_marker_id(-1);
21  }
22 }
23 
25  KSYNC_ERROR(VRouterError, "VRouter VRF stats query failed. Error <", err,
27  ">. Object <", "N/A", ">. State <", "N/A",
28  ">. Message number :", GetSeqno());
29  LOG(ERROR, "Error reading Vrf Stats. Error <" << err << ": "
31  << ": Sequence No : " << GetSeqno());
32 }
33 
uint32_t GetSeqno() const
Definition: ksync_sock.h:138
VnUveTableBase * vn_uve_table() const
AgentUveBase * uve() const
Definition: agent.cc:909
#define KSYNC_ERROR(obj,...)
Definition: ksync_entry.h:16
virtual void ErrorHandler(int err)
AgentSandeshContext * sandesh_context_
Definition: ksync_sock.h:150
static std::string VrouterErrorToString(uint32_t error)
void SendVnStats()
Definition: vn_uve_table.cc:50
#define LOG(_Level, _Msg)
Definition: logging.h:33