summaryrefslogtreecommitdiffstats
path: root/src/vnet/mfib
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-12-05 16:39:45 +0000
committerNeale Ranns <nranns@cisco.com>2018-12-06 13:49:59 +0000
commitad69c1fddc4f3d1054cb527e550dfa1698355244 (patch)
tree371cdc81eb05ce6389ceb63815865a60c17184a1 /src/vnet/mfib
parent027d0dc75690e75c01673f3830c782d6a4eca998 (diff)
MFIB; CLI improvements
Change-Id: I7cf3ae8c10dd584e8bc234a3253bea3c5a2d105a Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/mfib')
-rw-r--r--src/vnet/mfib/mfib_types.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/mfib/mfib_types.c b/src/vnet/mfib/mfib_types.c
index 8452d86f6c6..a3ed46a4b8d 100644
--- a/src/vnet/mfib/mfib_types.c
+++ b/src/vnet/mfib/mfib_types.c
@@ -93,7 +93,7 @@ format_mfib_entry_flags (u8 * s, va_list * args)
s = format(s, " flags:");
FOR_EACH_MFIB_ATTRIBUTE(attr) {
if ((1<<attr) & flags) {
- s = format (s, "%s,", mfib_flag_names[attr]);
+ s = format (s, "%s,", mfib_flag_names_long[attr]);
}
}
}
@@ -147,6 +147,10 @@ unformat_mfib_entry_flags (unformat_input_t * input,
old = *eflags;
FOR_EACH_MFIB_ATTRIBUTE(attr) {
+ if (unformat (input, mfib_flag_names_long[attr]))
+ *eflags |= (1 << attr);
+ }
+ FOR_EACH_MFIB_ATTRIBUTE(attr) {
if (unformat (input, mfib_flag_names[attr]))
*eflags |= (1 << attr);
}