]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospfd.c
ospfd: fix NSSA translate-always
authorckishimo <carles.kishimoto@gmail.com>
Fri, 20 Nov 2020 21:53:20 +0000 (13:53 -0800)
committerckishimo <carles.kishimoto@gmail.com>
Sat, 21 Nov 2020 12:13:17 +0000 (04:13 -0800)
commita987fe6b25d54b012df314bb696393f8eb8fb715
tree9cb4a56f0493e2949b872ccd9997b996e3c97e63
parent64aaa92dff679e59cf0de1e93529e215a8e0d2ca
ospfd: fix NSSA translate-always

When an ABR NSSA router is configured to be ALWAYS the translator:
  r22(config-router)# area 1 nssa translate-always

It will advertise this condition in the type-1 LSA setting the Nt
bit, taking over the translator role from r33

  r22# show ip ospf
     We are an ABR and always an NSSA Translator.
  r33# show ip ospf
     We are an ABR, but not the NSSA Elected Translator.

However when the command above is removed:
  r22(config-router)# no area 1 nssa translate-always

the bit Nt needs to be cleared otherwise we end up with no translator
in the area
  r22# show ip ospf
     We are an ABR, but not the NSSA Elected Translator.
  r33# show ip ospf
     We are an ABR, but not the NSSA Elected Translator.

This PR forces the ABR to send a type-1 LSA with the Nt bit updated
according to the translator role

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
ospfd/ospfd.c