mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 14:29:47 +00:00
ospfd: fix "default-information originate" in non-existing vrf
If the default route redistribution is configured in OSPF router before the VRF is created, then this is not currently registered in zebra after the VRF creation. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
a63273a5b4
commit
b46538c4a3
@ -2182,6 +2182,16 @@ static void ospf_set_redist_vrf_bitmaps(struct ospf *ospf, bool set)
|
|||||||
vrf_bitmap_unset(zclient->redist[AFI_IP][type],
|
vrf_bitmap_unset(zclient->redist[AFI_IP][type],
|
||||||
ospf->vrf_id);
|
ospf->vrf_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
red_list = ospf->redist[DEFAULT_ROUTE];
|
||||||
|
if (red_list) {
|
||||||
|
if (set)
|
||||||
|
vrf_bitmap_set(zclient->default_information[AFI_IP],
|
||||||
|
ospf->vrf_id);
|
||||||
|
else
|
||||||
|
vrf_bitmap_unset(zclient->default_information[AFI_IP],
|
||||||
|
ospf->vrf_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable OSPF VRF instance */
|
/* Enable OSPF VRF instance */
|
||||||
|
Loading…
Reference in New Issue
Block a user