]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Fix `show ip nexthop route-map` and `show ip protocol` 5420/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 23 Nov 2019 01:14:21 +0000 (20:14 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 23 Nov 2019 01:14:21 +0000 (20:14 -0500)
These commands were not properly lining up in their columns.
Fix this.

After:
VRF: default
Protocol                  : route-map
-------------------------------------
bgp                       : NO_INSTALL
vnc-direct                : none
vnc-rn                    : none
bgp-direct                : none
bgp-direct-to-nve-groups  : none

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_routemap.c

index 364f5755d8235237d89c734839ab92d8e72895d4..091f66f9ebba42198678c4f97841ee7762721cdd 100644 (file)
@@ -203,22 +203,22 @@ static void show_vrf_proto_rm(struct vty *vty, struct zebra_vrf *zvrf,
 {
        int i;
 
-       vty_out(vty, "Protocol    : route-map\n");
-       vty_out(vty, "------------------------\n");
+       vty_out(vty, "Protocol                  : route-map\n");
+       vty_out(vty, "-------------------------------------\n");
 
        for (i = 0; i < ZEBRA_ROUTE_MAX; i++) {
                if (PROTO_RM_NAME(zvrf, af_type, i))
-                       vty_out(vty, "%-10s  : %-10s\n", zebra_route_string(i),
+                       vty_out(vty, "%-24s  : %-10s\n", zebra_route_string(i),
                                PROTO_RM_NAME(zvrf, af_type, i));
                else
-                       vty_out(vty, "%-10s  : none\n", zebra_route_string(i));
+                       vty_out(vty, "%-24s  : none\n", zebra_route_string(i));
        }
 
        if (PROTO_RM_NAME(zvrf, af_type, i))
-               vty_out(vty, "%-10s  : %-10s\n", "any",
+               vty_out(vty, "%-24s  : %-10s\n", "any",
                        PROTO_RM_NAME(zvrf, af_type, i));
        else
-               vty_out(vty, "%-10s  : none\n", "any");
+               vty_out(vty, "%-24s  : none\n", "any");
 }
 
 static void show_vrf_nht_rm(struct vty *vty, struct zebra_vrf *zvrf,
@@ -226,22 +226,22 @@ static void show_vrf_nht_rm(struct vty *vty, struct zebra_vrf *zvrf,
 {
        int i;
 
-       vty_out(vty, "Protocol    : route-map\n");
-       vty_out(vty, "------------------------\n");
+       vty_out(vty, "Protocol                  : route-map\n");
+       vty_out(vty, "-------------------------------------\n");
 
        for (i = 0; i < ZEBRA_ROUTE_MAX; i++) {
                if (NHT_RM_NAME(zvrf, af_type, i))
-                       vty_out(vty, "%-10s  : %-10s\n", zebra_route_string(i),
+                       vty_out(vty, "%-24s  : %-10s\n", zebra_route_string(i),
                                NHT_RM_NAME(zvrf, af_type, i));
                else
-                       vty_out(vty, "%-10s  : none\n", zebra_route_string(i));
+                       vty_out(vty, "%-24s  : none\n", zebra_route_string(i));
        }
 
        if (NHT_RM_NAME(zvrf, af_type, i))
-               vty_out(vty, "%-10s  : %-10s\n", "any",
+               vty_out(vty, "%-24s  : %-10s\n", "any",
                        NHT_RM_NAME(zvrf, af_type, i));
        else
-               vty_out(vty, "%-10s  : none\n", "any");
+               vty_out(vty, "%-24s  : none\n", "any");
 }
 
 static int show_proto_rm(struct vty *vty, int af_type, const char *vrf_all,