]> git.proxmox.com Git - mirror_frr.git/commit - ospf6d/ospf6_area.c
ospf6d: rework filtering commands to be in line with ospfd
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 18 Sep 2021 00:45:02 +0000 (21:45 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 20 Sep 2021 16:06:35 +0000 (13:06 -0300)
commitf4f0098ca0da45eb5516ccaaed2a793173cdd224
treefb91ddad090c9a0e2be52074a04d0d06536a9c16
parent88dde69cb6131c0e1a57cd069c802f71a6c4fa4d
ospf6d: rework filtering commands to be in line with ospfd

Issue #9535 describes how the export-list/import-list commands work
differently on ospfd and ospf6d.

In short:
* On ospfd, "area A.B.C.D export-list" filters which internal
  routes an ABR exports to other areas. On ospf6d, instead, that
  command filters which inter-area routes an ABR exports to the
  configured area (which is quite counter-intuitive). In other words,
  both commands do the same but in opposite directions.
* On ospfd, "area A.B.C.D import-list" filters which inter-area
  routes an ABR imports into the configured area. On ospf6d, that
  command filters which inter-area routes an interior router accepts.
* On both daemons, "area A.B.C.D filter-list prefix NAME <in|out>"
  works exactly the same as import/export lists, but using prefix-lists
  instead of ACLs.

The inconsistency on how those commands work is undesirable. This
PR proposes to adapt the ospf6d commands to behave like they do
in ospfd.

These changes are obviously backward incompatible and this PR doesn't
propose any mitigation strategy other than warning users about the
changes in the next release notes. Since these ospf6d commands are
undocumented and work in such a peculiar way, it's unlikely many
users will be affected (if any at all).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
doc/user/ospf6d.rst
ospf6d/ospf6_abr.c
ospf6d/ospf6_abr.h
ospf6d/ospf6_area.c
ospf6d/ospf6_area.h
ospf6d/ospf6d.c
tests/topotests/ospf6_topo2/test_ospf6_topo2.py