forked from aristanetworks/EosSdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmlag.cpp
44 lines (31 loc) · 738 Bytes
/
mlag.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
// Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include "eos/mlag.h"
#include "impl.h"
namespace eos {
//
// mlag_mgr implementation
//
class mlag_mgr_impl : public mlag_mgr {
public:
mlag_mgr_impl() {
}
bool enabled() const {
return false;
}
void enabled_is(bool enabled) {
}
ip_addr_t peer_address() const {
return ip_addr_t();
}
mlag_state_t state() const {
return MLAG_STATE_DISABLED;
}
};
DEFINE_STUB_MGR_CTOR(mlag_mgr)
mlag_handler::mlag_handler(mlag_mgr *mgr) :
base_handler<mlag_mgr, mlag_handler>(mgr) {
}
void mlag_handler::on_mlag_state(mlag_state_t state) {
}
} // end eos namespace