-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathintf.cpp
120 lines (92 loc) · 2.14 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
119
120
// Copyright (c) 2013 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/intf.h"
namespace eos {
intf_id_t::intf_id_t() : intfId_(0) {
}
intf_id_t::intf_id_t(char const * intfname) : intfId_(0) {
// TODO: No op impl.
}
intf_id_t::intf_id_t(const std::string & intfname) : intfId_(0) {
// TODO: No op impl.
}
bool
intf_id_t::is_null0() const {
return false;
}
intf_type_t
intf_id_t::intf_type() const {
return INTF_TYPE_OTHER;
}
bool
intf_id_t::operator !() const {
return intfId_;
}
std::string
intf_id_t::to_string() const {
return "NotImplemented"; // TODO: No op impl.
}
intf_handler::intf_handler(intf_mgr * mgr) : base_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.
}
intf_mgr::intf_mgr() {
// TODO: No op impl.
}
intf_mgr::~intf_mgr() {
// TODO: No op impl.
}
class intf_mgr_impl : public intf_mgr {
public:
intf_mgr_impl() {
}
intf_iter_t intf_iter() const {
intf_iter_t * nop = 0;
return *nop; // TODO: No op impl.
}
void intf_foreach(bool (*handler)(intf_id_t, void *), void *) {
// TODO: No op impl.
}
void intf_foreach(bool (*handler)(intf_id_t, void *), void *,
intf_id_t bookmark) {
// TODO: No op impl.
}
bool exists(intf_id_t) const {
return false; // 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.
}
void description_is(intf_id_t, char const *) {
// TODO: No op impl.
}
oper_status_t oper_status(intf_id_t) const {
return INTF_OPER_NULL; // TODO: No op impl.
}
};
}