]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: fix cosmetic show ip ospf when NSSA 7618/head
authorckishimo <carles.kishimoto@gmail.com>
Tue, 24 Nov 2020 14:53:22 +0000 (06:53 -0800)
committerckishimo <carles.kishimoto@gmail.com>
Wed, 2 Dec 2020 16:47:28 +0000 (08:47 -0800)
commitb79c30700ce9174fa854018e789dad06fd262c02
tree0be94c535bcdd874366a804b1d371a2453300de9
parent4f3e4669f0230dcdaa250fc341b91a8b7e5eb132
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>
ospfd/ospf_vty.c