When OSPF is disabled on interface and enabled again, the IP which is
not matching the prefix-list is getting originated as External LSA.
Fixes: #9362
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
if (add_to_ospf) {
if (ospf_external_info_find_lsa(ospf,
&ei->p))
- if (!ospf_distribute_check_connected(
- ospf, ei))
+ if (!ospf_redistribute_check(
+ ospf, ei, NULL))
ospf_external_lsa_flush(
ospf, ei->type,
&ei->p,
} else {
if (!ospf_external_info_find_lsa(
ospf, &ei->p))
- if (ospf_distribute_check_connected(
- ospf, ei))
+ if (ospf_redistribute_check(
+ ospf, ei, NULL))
ospf_external_lsa_originate(
ospf, ei);
}