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]);
}
}
}
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);
}
/*?
- * 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) =
}
/*?
- * 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) =