forked from aristanetworks/EosSdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathneighbor_table.cpp
More file actions
65 lines (50 loc) · 1.86 KB
/
neighbor_table.cpp
File metadata and controls
65 lines (50 loc) · 1.86 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/neighbor_table.h"
#include "impl.h"
namespace eos {
class neighbor_table_mgr_impl : public neighbor_table_mgr {
public:
neighbor_table_mgr_impl() {
}
neighbor_table_iter_t neighbor_table_iter() const {
neighbor_table_iter_t * nop = 0;
return *nop;
}
neighbor_table_iter_t neighbor_table_iter(std::string vrf_name) const {
neighbor_table_iter_t * nop = 0;
return *nop;
}
neighbor_table_status_iter_t neighbor_table_status_iter() const {
neighbor_table_status_iter_t * nop = 0;
return *nop;
}
virtual neighbor_entry_t neighbor_entry_status(neighbor_key_t const & key) const {
return neighbor_entry_t();
}
virtual void neighbor_entry_set(neighbor_entry_t const & entry) {}
virtual void neighbor_entry_del(neighbor_key_t const & key) {}
virtual neighbor_entry_t neighbor_entry(
neighbor_key_t const & key) const {
return neighbor_entry_t();
}
};
DEFINE_STUB_MGR_CTOR(neighbor_table_mgr)
neighbor_table_handler::neighbor_table_handler(neighbor_table_mgr *mgr) :
base_handler(mgr) {
}
void neighbor_table_handler::watch_all_neighbor_entries(bool interest) {
}
void neighbor_table_handler::watch_neighbor_entry(neighbor_key_t const & key,
bool interest) {
}
void neighbor_table_handler::on_neighbor_entry_del(neighbor_key_t const & key) {
}
void neighbor_table_handler::on_neighbor_entry_set(neighbor_entry_t const & entry) {
}
neighbor_table_iter_t
neighbor_table_mgr::neighbor_table_iter(std::string const & vrf_name) const {
return static_cast<const neighbor_table_mgr_impl*>(
this)->neighbor_table_iter(vrf_name);
}
} // end eos namespace