diff options
| author | ckishimo <carles.kishimoto@gmail.com> | 2020-11-24 06:53:22 -0800 |
|---|---|---|
| committer | ckishimo <carles.kishimoto@gmail.com> | 2020-12-02 08:47:28 -0800 |
| commit | b79c30700ce9174fa854018e789dad06fd262c02 (patch) | |
| tree | 0be94c535bcdd874366a804b1d371a2453300de9 /lib/filter.h | |
| parent | 4f3e4669f0230dcdaa250fc341b91a8b7e5eb132 (diff) | |
ospfd: fix cosmetic show ip ospf when NSSA
When executing the following command to change the NSSA translator role
from OSPF_NSSA_ROLE_ALWAYS to OSPF_NSSA_ROLE_NEVER
r2(config-router)# area 1 nssa translate-never
During the time the `ospf_abr_nssa_check_status()` function is not executed,
we are in a situation where the role is OSPF_NSSA_ROLE_NEVER (just configured)
but the NSSATranslatorState is still ENABLED
During this time the output of "show ip ospf" displays the following:
r2# show ip ospf
Area ID: 0.0.0.1 (NSSA)
Shortcutting mode: Default, S-bit consensus: no
Number of interfaces in this area: Total: 1, Active: 1
It is an NSSA configuration.
Elected NSSA/ABR performs type-7/type-5 LSA translation.
We are an ABR and Number of fully adjacent neighbors in this area: 1 (**)
Basically the case TranslatorState=ENABLED && TranslatorRole=ROLE_NEVER is not
covered in `ospf_vty.c`
This PR adds the case TranslatorState=ENABLED and TranslatorRole=ROLE_NEVER
which should only happen for a small period of time
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
Diffstat (limited to 'lib/filter.h')
0 files changed, 0 insertions, 0 deletions
