summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application_namespace.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-11-21 22:13:03 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2017-11-22 14:19:42 +0000
commit8f107b3686998f1e74353db0b7d0baa10ed4b754 (patch)
tree838650ae8a8f7bcb2d081b1d11367dee7cd7087c /src/vnet/session/application_namespace.c
parentb2e1fe9c4d6263ced0e37c78a7ba1837f5ff1c86 (diff)
session: more rules unit tests and cli improvements
Change-Id: I7e5545297ab9f2db8d7d07e44c744bdb0a0874a7 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application_namespace.c')
-rw-r--r--src/vnet/session/application_namespace.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/vnet/session/application_namespace.c b/src/vnet/session/application_namespace.c
index 21c1cbc92c6..8bd5b65f7fc 100644
--- a/src/vnet/session/application_namespace.c
+++ b/src/vnet/session/application_namespace.c
@@ -248,9 +248,8 @@ u8 *
format_app_namespace (u8 * s, va_list * args)
{
app_namespace_t *app_ns = va_arg (*args, app_namespace_t *);
- s = format (s, "%-20v%-10u%-20lu%-20u", app_ns->ns_id,
- app_namespace_index (app_ns), app_ns->ns_secret,
- app_ns->sw_if_index);
+ s = format (s, "%-10u%-20lu%-20u%-50v", app_namespace_index (app_ns),
+ app_ns->ns_secret, app_ns->sw_if_index, app_ns->ns_id);
return s;
}
@@ -303,8 +302,8 @@ show_app_ns_fn (vlib_main_t * vm, unformat_input_t * main_input,
}
do_ns_list:
- vlib_cli_output (vm, "%-20s%-10s%-20s%-20s", "Namespace", "Index", "Secret",
- "sw_if_index");
+ vlib_cli_output (vm, "%-10s%-20s%-20s%-50s", "Index", "Secret",
+ "sw_if_index", "Name");
/* *INDENT-OFF* */
pool_foreach (app_ns, app_namespace_pool, ({