From 3b2d98c58e2a5b1db6fbcd7ffb8d9f7972654b82 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Tue, 3 Oct 2017 10:30:44 -0300 Subject: [PATCH] ldpd: fix issue when displaying the running configuration More than a cosmetic fix, this should prevent issues with frr-reload.py. Before: mpls ldp router-id 1.1.1.1 ! address-family ipv4 discovery transport-address 1.1.1.1 ! interface rt1-eth0 discovery hello holdtime 10 discovery hello interval 3 exit-address-family ! ! After: mpls ldp router-id 1.1.1.1 ! address-family ipv4 discovery transport-address 1.1.1.1 ! interface rt1-eth0 discovery hello holdtime 10 discovery hello interval 3 ! exit-address-family ! ! Signed-off-by: Renato Westphal --- ldpd/ldp_vty_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ldpd/ldp_vty_conf.c b/ldpd/ldp_vty_conf.c index f43370af2b..76c602afbb 100644 --- a/ldpd/ldp_vty_conf.c +++ b/ldpd/ldp_vty_conf.c @@ -233,6 +233,7 @@ ldp_af_config_write(struct vty *vty, int af, struct ldpd_conf *conf, ldp_af_iface_config_write(vty, af); + vty_out(vty, " !\n"); vty_out(vty, " exit-address-family\n"); } -- 2.39.5