summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_routemap.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-11-23 02:14:21 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-11-23 02:14:21 +0100
commit59f8141924d15ea3760d1cf888324eba77455fd0 (patch)
tree18781bbbcf0501b72682f9305613d8043256ebaa /zebra/zebra_routemap.c
parentzebra: Fix `show zebra client` display to handle columns right (diff)
downloadfrr-59f8141924d15ea3760d1cf888324eba77455fd0.tar.xz
frr-59f8141924d15ea3760d1cf888324eba77455fd0.zip
zebra: Fix `show ip nexthop route-map` and `show ip protocol`
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>
Diffstat (limited to 'zebra/zebra_routemap.c')
-rw-r--r--zebra/zebra_routemap.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/zebra/zebra_routemap.c b/zebra/zebra_routemap.c
index 364f5755d..091f66f9e 100644
--- a/zebra/zebra_routemap.c
+++ b/zebra/zebra_routemap.c
@@ -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,