aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-09-13 15:44:54 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-09-13 15:18:29 +0000
commit1292d19c79c2fd4f09ffcc43ebf39f5d9d485c35 (patch)
tree383b8076f72ee2def8bc35098f84f7bbfea8eba3 /src/vnet/session/session.c
parenta786687ab44afe477cef90ca128a82ef0b177c62 (diff)
session: add session enable option in config file
Type: feature Change-Id: I8f02873e75c6e890f6749806d4f02547f951c8ca Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r--src/vnet/session/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 1010f0525ba..382db8ba543 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1693,6 +1693,8 @@ session_config_fn (vlib_main_t * vm, unformat_input_t * input)
else if (unformat (input, "evt_qs_seg_size %U", unformat_memory_size,
&smm->evt_qs_segment_size))
;
+ else if (unformat (input, "enable"))
+ vnet_session_enable_disable (vm, 1 /* is_en */ );
else
return clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);