summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorGuanghua Zhang <ghzhang@fiberhome.com>2019-08-24 10:52:19 +0800
committerFlorin Coras <florin.coras@gmail.com>2019-08-30 00:20:32 +0000
commitfcd5e12b1c879b27d9ed53c9c5b3ae98b0a04ccf (patch)
treebc89ac5d2159f7be2ad934c9da5bd6619ee5a91f /src/vnet
parent18fff7477b40b7764f2e3bd0f91279db39acb759 (diff)
session : make sure session layer is enabled when cli operate the sessions.
Type: fix show session rules tcp vpp/src/vnet/session/application_namespace.c:34 (app_namespace_get) assertion `! pool_is_free (app_namespace_pool, _e)' fails Thread 1 "vpp_main" received signal SIGABRT, Aborted. Signed-off-by: Guanghua Zhang <ghzhang@fiberhome.com> Change-Id: I3430339a598a92d0a38826471adeb4547b0b7df4
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/session_lookup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/session/session_lookup.c b/src/vnet/session/session_lookup.c
index f1e715e4aab..4c13d016ba4 100644
--- a/src/vnet/session/session_lookup.c
+++ b/src/vnet/session/session_lookup.c
@@ -1410,6 +1410,8 @@ session_rule_command_fn (vlib_main_t * vm, unformat_input_t * input,
app_namespace_t *app_ns;
int rv;
+ session_cli_return_if_not_enabled ();
+
clib_memset (&lcl_ip, 0, sizeof (lcl_ip));
clib_memset (&rmt_ip, 0, sizeof (rmt_ip));
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
@@ -1560,6 +1562,8 @@ show_session_rules_command_fn (vlib_main_t * vm, unformat_input_t * input,
session_table_t *st;
u8 *ns_id = 0, fib_proto;
+ session_cli_return_if_not_enabled ();
+
clib_memset (&lcl_ip, 0, sizeof (lcl_ip));
clib_memset (&rmt_ip, 0, sizeof (rmt_ip));
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)