From 169b72c851508a8a1e130622562db6ae10f1a365 Mon Sep 17 00:00:00 2001 From: vishaldhingra Date: Tue, 7 May 2019 21:12:03 -0700 Subject: [PATCH] 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 --- bgpd/bgp_vty.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 01144f5c78..9a8da359ab 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -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);