-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsystem.cpp
62 lines (45 loc) · 1.09 KB
/
system.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
// Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/system.h"
#include "impl.h"
namespace eos {
//
// system_mgr implementation
//
class system_mgr_impl : public system_mgr {
public:
system_mgr_impl() {
}
std::string hostname() const {
return "localhost";
}
std::string fqdn() const {
return "localhost";
}
std::string serial_number() const {
return "None";
}
std::string model_name() const {
return "None";
}
std::string hardware_revision() const {
return "None";
}
std::string software_revision() const {
return "None";
}
eth_addr_t system_mac() const {
return eth_addr_t();
}
};
DEFINE_STUB_MGR_CTOR(system_mgr)
system_handler::system_handler(system_mgr * mgr) :
base_handler<system_mgr, system_handler>(mgr) {
}
void system_handler::on_hostname(std::string const & hostname) {
}
void system_handler::on_fqdn(std::string const & fqdn) {
}
void system_handler::on_system_info_initialized() {
}
} // end eos namespace