summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2021-08-10 18:24:47 +0200
committerMobashshera Rasool <mrasool@vmware.com>2021-08-10 18:41:14 +0200
commite474c143738d07ffe3336ec6d2fafff905b2be66 (patch)
tree18f51f4065c0f57be256bbffdd73d49f5f4228bc /ospfd
parentMerge pull request #9236 from AnuradhaKaruppiah/v6-nh-rmac (diff)
downloadfrr-e474c143738d07ffe3336ec6d2fafff905b2be66.tar.xz
frr-e474c143738d07ffe3336ec6d2fafff905b2be66.zip
ospfd: ospf redistribute originating LSA internal connected routes
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>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospfd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index 3226d6644..21fa62531 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -1130,8 +1130,8 @@ static void update_redistributed(struct ospf *ospf, int add_to_ospf)
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,
@@ -1139,8 +1139,8 @@ static void update_redistributed(struct ospf *ospf, int add_to_ospf)
} 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);
}