diff options
author | 2016-05-09 09:39:26 +0200 | |
---|---|---|
committer | 2016-05-10 13:52:48 +0200 | |
commit | 46d4e36792e829ef96b43dbc6eec344700d54f13 (patch) | |
tree | 48ea7e6e35c2334892fd3e4717abdcfe15b2c65f /vnet/vnet/lisp-cp/control.h | |
parent | 8a95a482cfaf05e89a9383f0446584c414cd71bf (diff) |
ONE-4: Add LISP enable/disable API/CLI
This patch adds an enable/disable API/CLI for control plane
which calls similar functions for data plane. When re-enabling
it also re-populates dataplane with tunnels and interfaces.
Change-Id: Id8c3d6af90ecc0be331d502756914b1f62824046
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'vnet/vnet/lisp-cp/control.h')
-rw-r--r-- | vnet/vnet/lisp-cp/control.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vnet/vnet/lisp-cp/control.h b/vnet/vnet/lisp-cp/control.h index f87a6d5ea25..fad90e6ec68 100644 --- a/vnet/vnet/lisp-cp/control.h +++ b/vnet/vnet/lisp-cp/control.h @@ -51,6 +51,9 @@ typedef struct typedef struct { + /* LISP feature status */ + u8 is_enabled; + /* eid table */ gid_dictionary_t mapping_index_by_gid; @@ -169,4 +172,7 @@ vnet_lisp_cp_get_main() { return &lisp_control_main; } +clib_error_t * vnet_lisp_enable_disable (u8 is_enabled); +u8 vnet_lisp_enable_disable_status (void); + #endif /* VNET_CONTROL_H_ */ |