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>
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 */