diff options
| author | vishaldhingra <vdhingra@vmware.com> | 2019-05-07 21:12:03 -0700 |
|---|---|---|
| committer | vishaldhingra <vdhingra@vmware.com> | 2019-05-07 21:12:03 -0700 |
| commit | 169b72c851508a8a1e130622562db6ae10f1a365 (patch) | |
| tree | 53b6b9e2616ce3874e40bd0929d9eb234f5c04ca | |
| parent | 51844abda2de5d5bfb863621ff50eb6f70cc6935 (diff) | |
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>
| -rw-r--r-- | bgpd/bgp_vty.c | 6 |
1 files 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); |
