mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 17:36:36 +00:00
static: Put vty_frame around vrf output in staticd.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
f591b309f2
commit
0e20f68b70
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user