aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-09-13 15:44:54 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-09-30 15:24:38 +0000
commitb1ef5567b656074dac19f89529f736821dd7a717 (patch)
treeaa87c5e838a6d21525a2de3e840a04dca6311319
parent62042e618a5739906f1e645b4778bd3e09018e08 (diff)
session: add session enable option in config file
Type: feature Change-Id: I8f02873e75c6e890f6749806d4f02547f951c8ca Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com> (cherry picked from commit 1292d19c79c2fd4f09ffcc43ebf39f5d9d485c35)
-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 62594cb6bf9..72f4ab747d7 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);