-
Notifications
You must be signed in to change notification settings - Fork 40
/
intf.cpp
118 lines (90 loc) · 2.28 KB
/
intf.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// Copyright (c) 2013 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/intf.h"
#include "impl.h"
namespace eos {
intf_handler::intf_handler(intf_mgr * mgr) :
base_handler<intf_mgr, intf_handler>(mgr) {
}
void
intf_handler::watch_all_intfs(bool all) {
// TODO: No op impl.
}
void
intf_handler::watch_intf(intf_id_t, bool) {
// TODO: No op impl.
}
void
intf_handler::on_intf_create(intf_id_t) {
// TODO: No op impl.
}
void
intf_handler::on_intf_delete(intf_id_t) {
// TODO: No op impl.
}
void
intf_handler::on_oper_status(intf_id_t, oper_status_t) {
// TODO: No op impl.
}
void
intf_handler::on_admin_enabled(intf_id_t, bool) {
// TODO: No op impl.
}
void
intf_handler::on_intf_description(intf_id_t, const std::string &) {
// TODO: No op impl.
}
class intf_mgr_impl : public intf_mgr {
public:
intf_mgr_impl() {
}
void counters_accessible_is(bool accessible) {
// TODO: No op impl.
}
intf_iter_t intf_iter() const {
intf_iter_t * nop = 0;
return *nop; // TODO: No op impl.
}
bool exists(intf_id_t) const {
return false; // TODO: No op impl.
}
std::string kernel_intf_name(intf_id_t) const {
return ""; // TODO: No op impl.
}
intf_id_t eos_intf_name(std::string) const {
return intf_id_t(); // TODO: No op impl.
}
bool admin_enabled(intf_id_t id) const {
return false; // TODO: No op impl.
}
void admin_enabled_is(intf_id_t id, bool enabled) {
// TODO: No op impl.
}
std::string description(intf_id_t) const {
// TODO: No op impl.
return "";
}
void description_is(intf_id_t, char const *) {
// TODO: No op impl.
}
void description_is(intf_id_t, const std::string &) {
// TODO: No op impl.
}
oper_status_t oper_status(intf_id_t) const {
return INTF_OPER_NULL; // TODO: No op impl.
}
};
DEFINE_STUB_MGR_CTOR(intf_mgr)
class intf_counter_mgr_impl : public intf_counter_mgr {
public:
intf_counter_mgr_impl() {
}
intf_counters_t counters(intf_id_t) const {
return intf_counters_t();
}
intf_traffic_rates_t traffic_rates(intf_id_t) const {
return intf_traffic_rates_t();
}
};
DEFINE_STUB_MGR_CTOR(intf_counter_mgr)
}