summaryrefslogtreecommitdiffstats
path: root/staticd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-29 04:47:24 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-08-31 11:29:27 +0200
commit0e20f68b700b0320ca696d4bb176d497521287c9 (patch)
tree6b43fb527b48cb8c8aed9a54e6331a842090d43a /staticd
parentstaticd: Fix mixup in vrf translations (diff)
downloadfrr-0e20f68b700b0320ca696d4bb176d497521287c9.tar.xz
frr-0e20f68b700b0320ca696d4bb176d497521287c9.zip
static: Put vty_frame around vrf output in staticd.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_vrf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/staticd/static_vrf.c b/staticd/static_vrf.c
index d33c1539c..ad143209e 100644
--- a/staticd/static_vrf.c
+++ b/staticd/static_vrf.c
@@ -153,12 +153,18 @@ static int static_vrf_config_write(struct vty *vty)
struct vrf *vrf;
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
+ if (vrf->vrf_id != VRF_DEFAULT)
+ vty_frame(vty, "vrf %s\n", vrf->name);
+
static_config(vty, vrf->info, AFI_IP,
SAFI_UNICAST, "ip route");
static_config(vty, vrf->info, AFI_IP,
SAFI_MULTICAST, "ip mroute");
static_config(vty, vrf->info, AFI_IP6,
SAFI_UNICAST, "ipv6 route");
+
+ if (vrf->vrf_id != VRF_DEFAULT)
+ vty_endframe(vty, "!\n");
}
return 0;