-
Notifications
You must be signed in to change notification settings - Fork 390
/
agent_uve_test.cc
45 lines (41 loc) · 1.45 KB
/
agent_uve_test.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <db/db.h>
#include <cmn/agent_cmn.h>
#include <init/agent_param.h>
#include <oper/interface_common.h>
#include <oper/interface.h>
#include <uve/test/agent_uve_test.h>
#include <uve/test/vn_uve_table_test.h>
#include <uve/test/vm_uve_table_test.h>
#include <uve/test/vrouter_uve_entry_test.h>
#include <uve/test/interface_uve_table_test.h>
#include <uve/test/prouter_uve_table_test.h>
AgentUveBaseTest::AgentUveBaseTest(Agent *agent, uint64_t intvl,
uint32_t default_intvl,
uint32_t incremental_intvl)
: AgentUveStats(agent, intvl, default_intvl, incremental_intvl) {
if (vn_uve_table_) {
vn_uve_table_->Shutdown();
}
if (vm_uve_table_) {
vm_uve_table_->Shutdown();
}
if (vrouter_uve_entry_) {
vrouter_uve_entry_->Shutdown();
}
if (interface_uve_table_) {
interface_uve_table_->Shutdown();
}
if (prouter_uve_table_) {
prouter_uve_table_->Shutdown();
}
vn_uve_table_.reset(new VnUveTableTest(agent, default_intvl));
vm_uve_table_.reset(new VmUveTableTest(agent, default_intvl));
vrouter_uve_entry_.reset(new VrouterUveEntryTest(agent));
interface_uve_table_.reset(new InterfaceUveTableTest(agent, default_intvl));
prouter_uve_table_.reset(new ProuterUveTableTest(agent, default_intvl));
}
AgentUveBaseTest::~AgentUveBaseTest() {
}