forked from aristanetworks/EosSdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvrf.cpp
54 lines (38 loc) · 1.08 KB
/
vrf.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
// Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include <eos/vrf.h>
#include <impl.h>
namespace eos {
/// The manager for Vrf
class vrf_mgr_impl : public vrf_mgr {
public:
~vrf_mgr_impl() {
}
vrf_iter_t vrf_iter() const {
vrf_iter_t * nop = 0;
return *nop;
}
bool exists(std::string const & vrf_name) const {
return false;
}
vrf_state_t state(std::string const & vrf_name) const {
return VRF_NULL;
}
uint64_t rd(std::string const & vrf_name) const {
return 0;
}
vrf_t vrf(std::string const & vrf_name) const {
return vrf_t();
}
int socket_at(int domain, int type, int protocol, std::string const & vrf_name) {
return 0;
}
};
DEFINE_STUB_MGR_CTOR(vrf_mgr)
vrf_handler::vrf_handler(vrf_mgr *mgr) : base_handler(mgr) {
}
void vrf_handler::watch_all_vrfs(bool) {}
void vrf_handler::watch_vrf(std::string const & vrf_name, bool) {}
void vrf_handler::on_vrf_state(std::string vrf_name, vrf_state_t vrf_state) {
}
} // end namespace eos