-
Notifications
You must be signed in to change notification settings - Fork 40
/
mac_table.cpp
65 lines (47 loc) · 1.61 KB
/
mac_table.cpp
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/mac_table.h"
#include "impl.h"
namespace eos {
class mac_table_mgr_impl : public mac_table_mgr {
public:
mac_table_mgr_impl() {
}
virtual mac_table_iter_t mac_table_iter() const {
mac_table_iter_t * nop = 0;
return *nop;
}
virtual mac_table_status_iter_t mac_table_status_iter() const {
mac_table_status_iter_t * nop = 0;
return *nop;
}
virtual mac_entry_t mac_entry_status(mac_key_t const & key) const {
return mac_entry_t();
}
virtual mac_entry_t mac_entry(mac_key_t const & key) const {
return mac_entry_t();
}
virtual mac_entry_t mac_entry(vlan_id_t vlan, eth_addr_t mac) const {
return mac_entry_t();
}
virtual mac_entry_type_t type(mac_key_t const & key) const {
return mac_entry_type_t();
}
virtual seconds_t last_move_time(mac_key_t const & key) const {
return 0;
}
virtual uint32_t moves(mac_key_t const & key) const {
return 0;
}
virtual void mac_entry_set(mac_entry_t const & entry) {}
virtual void mac_entry_del(mac_key_t const & key) {}
};
DEFINE_STUB_MGR_CTOR(mac_table_mgr)
mac_table_handler::mac_table_handler(mac_table_mgr *mgr) :
base_handler(mgr) {
}
void mac_table_handler::watch_all_mac_entries(bool all) {}
void mac_table_handler::watch_mac_entry(mac_key_t const & key, bool interest) {}
void mac_table_handler::on_mac_entry_set(mac_entry_t const & entry) {}
void mac_table_handler::on_mac_entry_del(mac_key_t const & key) {}
} // end namespace eos