]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: fix issue when displaying the running configuration
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 3 Oct 2017 13:30:44 +0000 (10:30 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 3 Oct 2017 19:31:37 +0000 (16:31 -0300)
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 <renato@opensourcerouting.org>
ldpd/ldp_vty_conf.c

index f43370af2be1683979e997cded8fe1b0eb39f91f..76c602afbb126b6ed05662d45d1cc3658f6880af 100644 (file)
@@ -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");
 }