From 7dce96f0e413e1c6c9d1d68196716e0343c14f6a Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Thu, 14 Feb 2019 20:00:15 -0200 Subject: [PATCH] lib, pbrd: fix indentation of a few commands When displaying the running configuration, we should use a single space to indent commands when necessary (and not two spaces). Signed-off-by: Renato Westphal --- lib/nexthop_group.c | 2 +- pbrd/pbr_vty.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index d8cabf62be..bf298c6dec 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -520,7 +520,7 @@ static int nexthop_group_write(struct vty *vty) vty_out(vty, "nexthop-group %s\n", nhgc->name); for (ALL_LIST_ELEMENTS_RO(nhgc->nhg_list, node, nh)) { - vty_out(vty, " "); + vty_out(vty, " "); nexthop_group_write_nexthop_internal(vty, nh); } diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index 0aedb98476..d1ce82190d 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -612,18 +612,18 @@ static int pbr_vty_map_config_write_sequence(struct vty *vty, vty_out(vty, "pbr-map %s seq %u\n", pbrm->name, pbrms->seqno); if (pbrms->src) - vty_out(vty, " match src-ip %s\n", + vty_out(vty, " match src-ip %s\n", prefix2str(pbrms->src, buff, sizeof(buff))); if (pbrms->dst) - vty_out(vty, " match dst-ip %s\n", + vty_out(vty, " match dst-ip %s\n", prefix2str(pbrms->dst, buff, sizeof(buff))); if (pbrms->nhgrp_name) - vty_out(vty, " set nexthop-group %s\n", pbrms->nhgrp_name); + vty_out(vty, " set nexthop-group %s\n", pbrms->nhgrp_name); if (pbrms->nhg) { - vty_out(vty, " set "); + vty_out(vty, " set "); nexthop_group_write_nexthop(vty, pbrms->nhg->nexthop); } -- 2.39.5