forked from aristanetworks/EosSdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolicy_map.cpp
89 lines (67 loc) · 1.98 KB
/
policy_map.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
// Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/class_map.h"
#include "eos/exception.h"
#include "impl.h"
namespace std {
size_t hash<eos::policy_map_action_t>::operator() (eos::policy_map_action_t
const & action) const {
// TODO: no op impl
return 0;
}
size_t hash<eos::policy_map_key_t>::operator() (eos::policy_map_key_t
const & key) const {
// TODO: no op impl
return 0;
}
}
namespace eos {
policy_map_handler::policy_map_handler(policy_map_mgr * mgr) :
base_handler<policy_map_mgr, policy_map_handler>(mgr) {
}
void
policy_map_handler::watch_policy_map(policy_map_key_t const & key,
bool interest) {
// TODO: no op impl.
}
void
policy_map_handler::on_policy_map_sync_fail(policy_map_key_t const & key,
std::string const & message) {
// TODO: no op impl.
}
void
policy_map_handler::on_policy_map_sync(policy_map_key_t const & key) {
// TODO: no op impl.
}
void
policy_map_handler::on_policy_map_config_set(policy_map_key_t const & name) {
// TODO: no op impl.
}
class policy_map_mgr_impl : public policy_map_mgr {
public:
policy_map_mgr_impl() {
}
void resync_init() {
}
void resync_complete() {
}
bool exists(policy_map_key_t const & key) const {
return false;
}
policy_map_t policy_map(policy_map_key_t const & key) const {
return policy_map_t();
}
void policy_map_is(policy_map_t const & policy_map) {
}
void policy_map_del(policy_map_key_t const & key) {
}
policy_map_iter_t policy_map_iter(policy_feature_t) const {
policy_map_iter_t * nop = 0;
return *nop;
}
void policy_map_apply(policy_map_key_t const &, intf_id_t,
acl_direction_t, bool apply) {
}
};
DEFINE_STUB_MGR_CTOR(policy_map_mgr)
}