forked from aristanetworks/EosSdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbfd.cpp
69 lines (51 loc) · 1.82 KB
/
bfd.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
// Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include <eos/bfd.h>
#include <impl.h>
namespace eos {
/// The manager for Bfd
class bfd_session_mgr_impl : public bfd_session_mgr {
public:
~bfd_session_mgr_impl() {
}
bfd_session_iter_t session_iter() const {
bfd_session_iter_t * nop = 0;
return *nop;
}
bool exists(bfd_session_key_t const & key) const {
return false;
}
void session_set(bfd_session_key_t const & key) {
}
bfd_session_t session(bfd_session_key_t const & key) const {
return eos::bfd_session_t();
}
void session_del(bfd_session_key_t const & key) {
}
void default_interval_is(bfd_interval_t const & cfg) {
}
bfd_interval_t default_interval() const {
return eos::bfd_interval_t();
}
void interval_is(intf_id_t intf, bfd_interval_t const & cfg) {
}
bfd_interval_t interval(intf_id_t intf) const {
return eos::bfd_interval_t();
}
void interval_reset(intf_id_t intf) {
}
bfd_session_status_t session_status(bfd_session_key_t const & key) const {
return eos::BFD_SESSION_STATUS_NULL;
}
};
DEFINE_STUB_MGR_CTOR(bfd_session_mgr)
bfd_session_handler::bfd_session_handler(bfd_session_mgr *mgr) : base_handler(mgr) {
}
void bfd_session_handler::watch_all_bfd_sessions(bool) {}
void bfd_session_handler::watch_bfd_session(bfd_session_key_t const & key,
bool watch) {}
void bfd_session_handler::on_bfd_session_status(bfd_session_key_t const & key,
bfd_session_status_t new_status) {}
void bfd_session_handler::on_bfd_session_set(bfd_session_key_t const & key) {}
void bfd_session_handler::on_bfd_session_del(bfd_session_key_t const & key) {}
} // end namespace eos