]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: add support for NSSA Type-7 address ranges
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 8 Mar 2023 00:13:53 +0000 (21:13 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 31 Mar 2023 22:28:15 +0000 (19:28 -0300)
commitf07ff222f8683f2f54681bb55b03db830656afe7
tree3c7472f5af2b049e3b74064dea2ab1574dd94fc3
parent271588ace08cda6d0c882c71f3ef24a48c3adaae
ospfd: add support for NSSA Type-7 address ranges

Implement NSSA address ranges as specified by RFC 3101:

   NSSA border routers may be configured with Type-7 address ranges.
   Each Type-7 address range is defined as an [address,mask] pair.  Many
   separate Type-7 networks may fall into a single Type-7 address range,
   just as a subnetted network is composed of many separate subnets.
   NSSA border routers may aggregate Type-7 routes by advertising a
   single Type-5 LSA for each Type-7 address range.  The Type-5 LSA
   resulting from a Type-7 address range match will be distributed to
   all Type-5 capable areas.

Syntax:
  area A.B.C.D nssa range A.B.C.D/M [<not-advertise|cost (0-16777215)>]

Example:
  router ospf
   router-id 1.1.1.1
   area 1 nssa
   area 1 nssa range 172.16.0.0/16
   area 1 nssa range 10.1.0.0/16
  !

Since regular area ranges and NSSA ranges have a lot in common,
this commit reuses the existing infrastructure for area ranges as
much as possible to avoid code duplication.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
doc/user/ospfd.rst
ospfd/ospf_abr.c
ospfd/ospf_abr.h
ospfd/ospf_route.c
ospfd/ospf_route.h
ospfd/ospf_snmp.c
ospfd/ospf_vty.c
ospfd/ospfd.c
ospfd/ospfd.h