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)
This commit is contained in:
Nathan Skrzypczak 2019-09-13 15:44:54 +02:00 committed by Andrew Yourtchenko
parent 62042e618a
commit b1ef5567b6

View File

@ -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);