]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd : lcommlist not shows the standard and expanded conf. correctly.
authorvishaldhingra <vdhingra@vmware.com>
Wed, 8 May 2019 04:12:03 +0000 (21:12 -0700)
committervishaldhingra <vdhingra@vmware.com>
Wed, 8 May 2019 04:12:03 +0000 (21:12 -0700)
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>
bgpd/bgp_vty.c

index 01144f5c78ae94346297540e51ed5a1972b89a87..9a8da359ab11e2ae919a395cb6e62858212fbb1a 100644 (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);