diff options
| author | ckishimo <carles.kishimoto@gmail.com> | 2020-11-18 23:23:14 -0800 | 
|---|---|---|
| committer | ckishimo <carles.kishimoto@gmail.com> | 2020-11-18 23:23:14 -0800 | 
| commit | 0124b46b949effbd90ceb2aa129753f64e86c1a3 (patch) | |
| tree | 5cfd82abb952f3a2fb8d20be11e3df3e63e6192b /ospfd/ospf_spf.c | |
| parent | 3dbaf077d447d4cc24699192c267393cc7476947 (diff) | |
ospfd: fix NSSA translator
Having 2 ABR in NSSA area where R3 is the elected translator
R3# show ip ospf
  We are an ABR and the NSSA Elected Translator.
R2# show ip ospf
  We are an ABR, but not the NSSA Elected Translator.
When R3 loses the Border condition by shutting down the interface
to the backbone, we end up with no translator in the NSSA area. It
is expected R2 to take over the translator role
R3# sh ip ospf
  It is not ABR, therefore not Translator.
R2# show ip ospf
   We are an ABR, but not the NSSA Elected Translator.
This PR forces the ABR to reevaluate the translator condition, so
R2 becomes the elected Translator
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
Diffstat (limited to 'ospfd/ospf_spf.c')
| -rw-r--r-- | ospfd/ospf_spf.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index b53719a402..78814cb288 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -1432,8 +1432,11 @@ static int ospf_spf_calculate_schedule_worker(struct thread *thread)  	/* ABRs may require additional changes, see RFC 2328 16.7. */  	monotime(&start_time); -	if (IS_OSPF_ABR(ospf)) +	if (IS_OSPF_ABR(ospf)) { +		if (ospf->anyNSSA) +			ospf_abr_nssa_check_status(ospf);  		ospf_abr_task(ospf); +	}  	abr_time = monotime_since(&start_time, NULL);  	/* Schedule Segment Routing update */  | 
