summaryrefslogtreecommitdiffstats
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-05 09:48:45 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-29 08:36:03 +0200
commita8b828f3c3e55eacdfba77f31750ada20ed13390 (patch)
tree20d2bc44805e3c2c8278edf2c48c1e0163dfcbbd /zebra/interface.c
parentlib: add vty_frame() to get rid of unneeded config (diff)
downloadfrr-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 '')
-rw-r--r--zebra/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index c17e408ea..9e2e11614 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -2791,7 +2791,7 @@ static int if_config_write(struct vty *vty)
vrf = vrf_lookup_by_id(ifp->vrf_id);
if (ifp->vrf_id == VRF_DEFAULT)
- vty_out(vty, "interface %s\n", ifp->name);
+ vty_frame(vty, "interface %s\n", ifp->name);
else
vty_out(vty, "interface %s vrf %s\n", ifp->name,
vrf->name);
@@ -2842,7 +2842,7 @@ static int if_config_write(struct vty *vty)
link_params_config_write(vty, ifp);
- vty_out(vty, "!\n");
+ vty_endframe(vty, "!\n");
}
return 0;
}