]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix rpki spacing to be 1 for indentation 9127/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 22 Jul 2021 20:53:15 +0000 (16:53 -0400)
committermergify-bot <noreply@mergify.io>
Fri, 23 Jul 2021 05:28:16 +0000 (05:28 +0000)
The rpki sub-node was outputting 2 spaces instead
of 1 space.  Let's fix that to be consistent with
the rest of our code.

Fixes: #2738
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 7dc7fb9327385a506a9dc5d8d775cbb2684b0d53)

bgpd/bgp_rpki.c

index 816ed88eecd01b99808d7e2bb7ddda05c48f88ae..a8bccecacf01d122f45766a196d315bcabc4fe0c 100644 (file)
@@ -908,7 +908,7 @@ static int config_write(struct vty *vty)
 
        vty_out(vty, "!\n");
        vty_out(vty, "rpki\n");
-       vty_out(vty, "  rpki polling_period %d\n", polling_period);
+       vty_out(vty, " rpki polling_period %d\n", polling_period);
        for (ALL_LIST_ELEMENTS_RO(cache_list, cache_node, cache)) {
                switch (cache->type) {
                        struct tr_tcp_config *tcp_config;
@@ -917,13 +917,13 @@ static int config_write(struct vty *vty)
 #endif
                case TCP:
                        tcp_config = cache->tr_config.tcp_config;
-                       vty_out(vty, "  rpki cache %s %s ", tcp_config->host,
+                       vty_out(vty, " rpki cache %s %s ", tcp_config->host,
                                tcp_config->port);
                        break;
 #if defined(FOUND_SSH)
                case SSH:
                        ssh_config = cache->tr_config.ssh_config;
-                       vty_out(vty, "  rpki cache %s %u %s %s %s ",
+                       vty_out(vty, " rpki cache %s %u %s %s %s ",
                                ssh_config->host, ssh_config->port,
                                ssh_config->username,
                                ssh_config->client_privkey_path,
@@ -938,7 +938,7 @@ static int config_write(struct vty *vty)
 
                vty_out(vty, "preference %hhu\n", cache->preference);
        }
-       vty_out(vty, "  exit\n");
+       vty_out(vty, " exit\n");
 
        return 1;
 }