-
Notifications
You must be signed in to change notification settings - Fork 40
/
macsec.cpp
86 lines (66 loc) · 2.15 KB
/
macsec.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
// Copyright (c) 2017 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/macsec.h"
#include "impl.h"
namespace eos{
// macsec_handler methods
macsec_handler::macsec_handler(macsec_mgr * mgr) :
base_handler<macsec_mgr, macsec_handler>(mgr) {
}
void macsec_handler::watch_all_intfs(bool interest) {
// TODO: No op impl.
}
void macsec_handler::watch_intf(intf_id_t intf_id, bool interest) {
// TODO: No op impl.
}
void macsec_handler::on_intf_status(intf_id_t intf_id,
macsec_intf_status_t const & status) {
}
// macsec_mgr methods
class macsec_mgr_impl : public macsec_mgr {
public:
macsec_mgr_impl() {
}
bool exists(macsec_profile_name_t const & profile_name) const {
return false;
}
macsec_profile_t profile(macsec_profile_name_t const & profile_name) const {
macsec_profile_t * nop = 0;
return *nop; // TODO: No op impl
}
void profile_set(macsec_profile_t const & profile) {
return; // TODO: No op impl
}
void profile_del(macsec_profile_name_t const & profile_name) {
return; // TODO: No op impl
}
macsec_profile_name_t intf_profile(intf_id_t intf_id) const {
macsec_profile_name_t * nop = 0;
return *nop; // TODO: No op impl
}
void intf_profile_is(intf_id_t intf_id,
macsec_profile_name_t const & profile_name) {
return; // TODO: No op impl
}
macsec_intf_status_t intf_status(intf_id_t intf_id) const {
macsec_intf_status_t * nop = 0;
return *nop; // TODO: No op impl
}
bool macsec_capable(intf_id_t intf_id) const {
return false; // TODO: No op impl
}
macsec_intf_counters_t intf_counters(intf_id_t intf_id) {
macsec_intf_counters_t * nop = 0;
return *nop; // TODO: No op impl
}
macsec_profile_iter_t macsec_profile_iter() const {
macsec_profile_iter_t *nop = 0;
return *nop; // TODO: No op impl
}
macsec_intf_status_iter_t macsec_intf_status_iter() const {
macsec_intf_status_iter_t *nop = 0;
return *nop; // TODO: No op impl
}
};
DEFINE_STUB_MGR_CTOR(macsec_mgr)
}