/
interface_uve_table_test.h
33 lines (29 loc) · 1.28 KB
/
interface_uve_table_test.h
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
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
#ifndef vnsw_agent_interface_uve_table_test_h
#define vnsw_agent_interface_uve_table_test_h
#include <uve/interface_uve_stats_table.h>
class InterfaceUveTableTest : public InterfaceUveStatsTable {
public:
InterfaceUveTableTest(Agent *agent, uint32_t default_intvl);
virtual void DispatchInterfaceMsg(const UveVMInterfaceAgent &uve);
uint32_t send_count() const { return send_count_; }
uint32_t delete_count() const { return delete_count_; }
uint32_t InterfaceUveCount() const { return interface_tree_.size(); }
void ClearCount();
L4PortBitmap* GetVmIntfPortBitmap(const VmInterface* intf);
UveVMInterfaceAgent* InterfaceUveObject(const VmInterface *itf);
uint32_t GetVmIntfFipCount(const VmInterface* intf);
const InterfaceUveTable::FloatingIp *GetVmIntfFip(const VmInterface* intf,
const string &fip, const string &vn);
const UveVMInterfaceAgent &last_sent_uve() const { return uve_; }
InterfaceUveTable::UveInterfaceEntry* GetUveInterfaceEntry
(const std::string &name);
private:
uint32_t send_count_;
uint32_t delete_count_;
UveVMInterfaceAgent uve_;
DISALLOW_COPY_AND_ASSIGN(InterfaceUveTableTest);
};
#endif // vnsw_agent_interface_uve_table_test_h