mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 00:41:20 +00:00
Merge pull request #8682 from idryzhov/fix-default-originate
ospfd, ospf6d: fix "default-information originate" in non-existing vrf
This commit is contained in:
commit
942f6d35d3
@ -156,6 +156,16 @@ static void ospf6_set_redist_vrf_bitmaps(struct ospf6 *ospf6, bool set)
|
||||
vrf_bitmap_unset(zclient->redist[AFI_IP6][type],
|
||||
ospf6->vrf_id);
|
||||
}
|
||||
|
||||
red_list = ospf6->redist[DEFAULT_ROUTE];
|
||||
if (red_list) {
|
||||
if (set)
|
||||
vrf_bitmap_set(zclient->default_information[AFI_IP6],
|
||||
ospf6->vrf_id);
|
||||
else
|
||||
vrf_bitmap_unset(zclient->default_information[AFI_IP6],
|
||||
ospf6->vrf_id);
|
||||
}
|
||||
}
|
||||
|
||||
/* Disable OSPF6 VRF instance */
|
||||
|
@ -2182,6 +2182,16 @@ static void ospf_set_redist_vrf_bitmaps(struct ospf *ospf, bool set)
|
||||
vrf_bitmap_unset(zclient->redist[AFI_IP][type],
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user