diff options
author | David Lamparter <equinox@diac24.net> | 2010-02-05 09:48:45 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-29 08:36:03 +0200 |
commit | a8b828f3c3e55eacdfba77f31750ada20ed13390 (patch) | |
tree | 20d2bc44805e3c2c8278edf2c48c1e0163dfcbbd /ospfd | |
parent | lib: add vty_frame() to get rid of unneeded config (diff) | |
download | frr-a8b828f3c3e55eacdfba77f31750ada20ed13390.tar.xz frr-a8b828f3c3e55eacdfba77f31750ada20ed13390.zip |
*: remove empty "interface XYZ" config blocks
Using the previously-added vty_frame() support, this gets rid of all the
pointless empty "interface XYZ" blocks that get added for any interface
that shows up in the system (e.g. dummys, tunnels, etc.)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_vty.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 87aef1ea9..fd392fcc7 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -8152,8 +8152,8 @@ static int config_write_interface(struct vty *vty) if (ifp->ifindex == IFINDEX_DELETED) continue; - vty_out(vty, "!\n"); - vty_out(vty, "interface %s\n", ifp->name); + vty_frame(vty, "!\n"); + vty_frame(vty, "interface %s\n", ifp->name); if (ifp->desc) vty_out(vty, " description %s\n", ifp->desc); @@ -8367,6 +8367,8 @@ static int config_write_interface(struct vty *vty) } while (rn); ospf_opaque_config_write_if(vty, ifp); + + vty_endframe(vty, NULL); } return write; |