bgpd : lcommlist not shows the standard and expanded conf. correctly.

lcommunity_list_show uses the wrong macro to calculate the style.
Use the correct one LARGE_COMMUNITY_LIST_STANDARD.

Signed-off-by: vishaldhingra<vdhingra@vmware.com>
This commit is contained in:
vishaldhingra 2019-05-07 21:12:03 -07:00
parent 51844abda2
commit 169b72c851

View File

@ -14951,14 +14951,16 @@ static void lcommunity_list_show(struct vty *vty, struct community_list *list)
if (entry == list->head) {
if (all_digit(list->name))
vty_out(vty, "Large community %s list %s\n",
entry->style == EXTCOMMUNITY_LIST_STANDARD
entry->style ==
LARGE_COMMUNITY_LIST_STANDARD
? "standard"
: "(expanded) access",
list->name);
else
vty_out(vty,
"Named large community %s list %s\n",
entry->style == EXTCOMMUNITY_LIST_STANDARD
entry->style ==
LARGE_COMMUNITY_LIST_STANDARD
? "standard"
: "expanded",
list->name);