summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-10-18 13:55:46 +0200
committerGitHub <noreply@github.com>2024-10-18 13:55:46 +0200
commit3f690542f5c62ea7b51e9860831ca8ca2c37ab6d (patch)
tree81a87a57318b137b840adf451c5e09e7443b459b /ospfd
parentMerge pull request #17154 from donaldsharp/connected_coverity (diff)
parentospfd: update ospf_asbr_status when using no_area_nssa command (diff)
downloadfrr-3f690542f5c62ea7b51e9860831ca8ca2c37ab6d.tar.xz
frr-3f690542f5c62ea7b51e9860831ca8ca2c37ab6d.zip
Merge pull request #17134 from Shbinging/fix_no_area_nssa_command
ospfd: update ospf_asbr_status when using no_area_nssa command
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospfd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index 7638e979a..9d7870d2f 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -1730,6 +1730,8 @@ int ospf_area_nssa_unset(struct ospf *ospf, struct in_addr area_id)
area->no_summary = 0;
area->suppress_fa = 0;
area->NSSATranslatorRole = OSPF_NSSA_ROLE_CANDIDATE;
+ if (area->NSSATranslatorState == OSPF_NSSA_TRANSLATE_ENABLED)
+ ospf_asbr_status_update(ospf, --ospf->redistribute);
area->NSSATranslatorState = OSPF_NSSA_TRANSLATE_DISABLED;
area->NSSATranslatorStabilityInterval = OSPF_NSSA_TRANS_STABLE_DEFAULT;
ospf_area_type_set(area, OSPF_AREA_DEFAULT);