From: Renato Westphal Date: Tue, 3 Oct 2017 13:30:44 +0000 (-0300) Subject: ldpd: fix issue when displaying the running configuration X-Git-Tag: frr-4.0-dev~247^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3b2d98c58e2a5b1db6fbcd7ffb8d9f7972654b82;p=matthieu%2Ffrr.git 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 --- 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"); }