aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-03-26 09:10:41 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2018-03-26 20:06:45 +0000
commitabcf3ea674aea6a87da9675935b663aa95819e0e (patch)
tree854b39a3e2db2899e2b80d1a1358e1db42500494 /src
parent20ba16461ce232f5bb785b6b6189cf834ccfee1e (diff)
Restore the brief FIB entry printing
Change-Id: I007d48aeb934e5d2f087ca3b8ddc6f7a0e48d411 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/fib/fib_entry.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vnet/fib/fib_entry.c b/src/vnet/fib/fib_entry.c
index 19e84330970..cd1300dee39 100644
--- a/src/vnet/fib/fib_entry.c
+++ b/src/vnet/fib/fib_entry.c
@@ -118,8 +118,8 @@ format_fib_entry (u8 * s, va_list * args)
s = format (s, "%U", format_fib_prefix, &fib_entry->fe_prefix);
-// if (level >= FIB_ENTRY_FORMAT_DETAIL)
-// {
+ if (level >= FIB_ENTRY_FORMAT_DETAIL)
+ {
s = format (s, " fib:%d", fib_entry->fe_fib_index);
s = format (s, " index:%d", fib_entry_get_index(fib_entry));
s = format (s, " locks:%d", fib_entry->fe_node.fn_locks);
@@ -154,11 +154,11 @@ format_fib_entry (u8 * s, va_list * args)
}));
s = format (s, "\n forwarding: ");
-// }
-// else
-// {
-// s = format (s, "\n");
-// }
+ }
+ else
+ {
+ s = format (s, "\n");
+ }
fct = fib_entry_get_default_chain_type(fib_entry);