From b1ef5567b656074dac19f89529f736821dd7a717 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Fri, 13 Sep 2019 15:44:54 +0200 Subject: session: add session enable option in config file Type: feature Change-Id: I8f02873e75c6e890f6749806d4f02547f951c8ca Signed-off-by: Nathan Skrzypczak (cherry picked from commit 1292d19c79c2fd4f09ffcc43ebf39f5d9d485c35) --- src/vnet/session/session.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit 1.2.3-korg