-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathagents.cpp
More file actions
74 lines (55 loc) · 2.11 KB
/
Copy pathagents.cpp
File metadata and controls
74 lines (55 loc) · 2.11 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
66
67
68
69
70
71
72
73
74
// Copyright (c) 2026 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/agents.h"
#include "impl.h"
namespace eos {
class agents_mgr_impl : public agents_mgr {
public:
agents_mgr_impl() {
}
agents_iter_t agents_iter() const {
agents_iter_t * nop = 0;
return *nop; // TODO: No op impl.
}
bool agent_exists(std::string const& agent_name) const {
return false;
}
std::string agent_status(std::string const& agent_name,
std::string const& key) const {
return "";
}
bool agent_status_exists(std::string const& agent_name,
std::string const& key) const {
return false;
}
agents_status_iter_t agent_status_iter(std::string const& agent_name) const {
agents_status_iter_t * nop = 0;
return *nop; // TODO: No op impl.
}
std::string agent_option(std::string const& agent_name,
std::string const& key) const {
return "";
}
bool agent_option_exists(std::string const& agent_name,
std::string const& key) const {
return false;
}
agents_option_iter_t agent_option_iter(std::string const& agent_name) const {
agents_option_iter_t * nop = 0;
return *nop; // TODO: No op impl.
}
};
DEFINE_STUB_MGR_CTOR(agents_mgr)
agents_handler::agents_handler(agents_mgr *mgr) :
base_handler<agents_mgr, agents_handler>(mgr) {
}
void agents_handler::watch_all_agents(bool enable) {}
void agents_handler::watch_agent(std::string const& agent_name, bool enable) {}
void agents_handler::on_agent_status_set(std::string const& agent_name,
std::string const& key,
std::string const& value) {}
void agents_handler::on_agent_status_del(std::string const& agent_name,
std::string const& key) {}
void agents_handler::on_agent_enabled_set(std::string const& agent_name,
bool enabled) {}
} // end eos namespace