MFIB; CLI improvements
[vpp.git] / src / vnet / mfib / mfib_types.c
index 68b1ac5..a3ed46a 100644 (file)
@@ -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]);
             }
         }
     }
@@ -146,6 +146,10 @@ unformat_mfib_entry_flags (unformat_input_t * input,
     mfib_entry_attribute_t attr;
 
     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);
@@ -171,7 +175,7 @@ mfib_show_route_flags (vlib_main_t * vm,
 }
 
 /*?
- * This command display the set of support flags applicable to the MFIB route
+ * This command displays the set of supported flags applicable to an MFIB route
  */
 /* *INDENT-OFF* */
 VLIB_CLI_COMMAND (mfib_route_flags_command, static) =
@@ -200,7 +204,7 @@ mfib_show_itf_flags (vlib_main_t * vm,
 }
 
 /*?
- * This command display the set of support flags applicable to the MFIB route
+ * This command displays the set of supported flags applicable to an MFIB interface
  */
 /* *INDENT-OFF* */
 VLIB_CLI_COMMAND (mfib_itf_flags_command, static) =