-
Notifications
You must be signed in to change notification settings - Fork 40
/
nexthop_group.cpp
120 lines (93 loc) · 3.1 KB
/
nexthop_group.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) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/nexthop_group.h"
#include "impl.h"
namespace eos {
class nexthop_group_mgr_impl : public nexthop_group_mgr {
public:
nexthop_group_mgr_impl() {
}
void resync_init() {
// TODO: No op impl
}
void resync_complete() {
// TODO: No op impl
}
nexthop_group_iter_t nexthop_group_iter() const {
nexthop_group_iter_t * nop = 0;
return *nop; // TODO: No op impl.
}
nexthop_group_t nexthop_group(std::string const & nexthop_group_name) const {
return nexthop_group_t();
}
nexthop_group_entry_counter_t counter(std::string const & nexthop_group_name,
uint16_t entry) const {
return nexthop_group_entry_counter_t();
}
bool exists(std::string const & nexthop_group_name) const {
return false;
}
bool active(std::string const & nexthop_group_name) const {
return true;
}
void nexthop_group_set(nexthop_group_t const & group) {
// TODO: No op impl.
}
void nexthop_group_set(nexthop_group_t const & group, uint16_t * version_id) {
// TODO: No op impl.
}
void nexthop_group_del(std::string const & group_name) {
// TODO: No op impl.
}
programmed_nexthop_group_iter_t programmed_nexthop_group_iter() const {
programmed_nexthop_group_iter_t * nop = 0;
return *nop; // TODO: No op impl.
}
nexthop_group_t programmed_nexthop_group(
std::string const & nexthop_group_name) const {
return nexthop_group_t();
}
nexthop_group_counter_state_t get_nexthop_group_counter_state(
std::string const & nexthop_group_name) const {
return NEXTHOP_GROUP_COUNTER_INACTIVE;
}
};
DEFINE_STUB_MGR_CTOR(nexthop_group_mgr);
nexthop_group_handler::nexthop_group_handler(nexthop_group_mgr * mgr) :
base_handler<nexthop_group_mgr, nexthop_group_handler>(mgr) {
}
void
nexthop_group_handler::watch_all_nexthop_groups(bool interest) {
// TODO: No op impl.
}
void
nexthop_group_handler::watch_nexthop_group(std::string const & group_name,
bool interest) {
// TODO: No op impl.
}
void
nexthop_group_handler::on_nexthop_group_active(std::string const & group_name,
bool active) {
// TODO: No op impl.
}
void
nexthop_group_handler::on_nexthop_group_programmed(std::string const & group_name) {
// TODO: No op impl.
}
nexthop_group_handler_v2::nexthop_group_handler_v2(nexthop_group_mgr * mgr) :
nexthop_group_handler(mgr) {
}
void
nexthop_group_handler_v2::on_nexthop_group_programmed(std::string const & group_name,
uint16_t version_id) {
// TODO: No op impl.
}
nexthop_group_handler_v3::nexthop_group_handler_v3(nexthop_group_mgr * mgr) :
nexthop_group_handler(mgr) {
}
void
nexthop_group_handler_v3::on_nexthop_group_programmed(std::string const & group_name,
uint16_t version_id, nexthop_group_programmed_status_t const & status) {
// TODO: No op impl.
}
}