Merge pull request #4286 from vishaldhingra/show_expanded

bgpd : lcommlist not shows the standard and expanded conf. correctly.
This commit is contained in:
Donald Sharp 2019-05-08 07:56:00 -04:00 committed by GitHub
commit 48fd341c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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