]> git.puffer.fish Git - mirror/frr.git/commit
ospf6d: fix interface area configuration
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 25 May 2021 22:49:30 +0000 (01:49 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 10 Jun 2021 16:21:52 +0000 (19:21 +0300)
commit11712dafd2278f5213dfdcae3171c0fc58a93163
tree2b8205b954844389945fdd3e304ab98f089527c1
parent0f7e13167e0614c871f47c073405d720fd1693bd
ospf6d: fix interface area configuration

Currently the interface area is configured from the router node using
"interface IFNAME area ID" command. There are multiple problems with
this command:
- it is not in line with all other interface-related commands - other
  parameters are configured from the interface node using "ipv6 ospf6"
  prefix
- it is not in line with OSPFv2 - area is configured from the interface
  node using "ip ospf area" command
- most importantly, it doesn't work correctly when the interface is in
  a different VRF - instead of configuring the interface, it creates a
  new fake interface and configuring it instead

To fix all the problems, this commit adds a new command to the interface
configuration node - "ipv6 ospf6 area ID". The purpose of the command is
completely the same, but it works correctly in a multi-VRF environment.

The old command is preserved for the backward compatibility, but the
warning is added that it is deprecated because it doesn't work correctly
with VRFs.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospf6d/ospf6_area.c
ospf6d/ospf6_area.h
ospf6d/ospf6_interface.c
ospf6d/ospf6_interface.h
ospf6d/ospf6_top.c