]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: fix iface commands lost when removing from area
authorckishimo <carles.kishimoto@gmail.com>
Tue, 16 Mar 2021 22:47:18 +0000 (23:47 +0100)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 24 Mar 2021 15:55:56 +0000 (18:55 +0300)
In OSPFv3 when removing the interface from an area, all ospf6
interface commands are lost, so when changing the area you need
to reconfigure all ospf6 interface commands again

  r1# sh run
  interface r1-r2-eth0
   ipv6 address 2013:12::1/64
   ipv6 ospf6 dead-interval 4
   ipv6 ospf6 hello-interval 1
   ipv6 ospf6 network point-to-point
  !
  router ospf6
   ospf6 router-id 1.1.1.1
   interface r1-r2-eth0 area 0.0.0.0
  !

  r1# conf t
  r1(config)# router ospf6
  r1(config-ospf6)# no interface r1-r2-eth0 area 0.0.0.0
  r1(config-ospf6)# exit

  r1# sh run
  interface r1-r2-eth0
   ipv6 address 2013:12::1/64
  !                            <----- missing all ipv6 ospf6 commands
  router ospf6
   ospf6 router-id 1.1.1.1
  !

This is because the interface is being deleted instead of disabled
(see PR#7717) I believe the interface should be left as disabled
(not deleted) when removing the interface from the area

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

index 5396529645270c61429e4a779cce66f963a4f65a..ef496b589daf36ab93df88b789419415fb90604e 100644 (file)
@@ -756,7 +756,6 @@ DEFUN (no_ospf6_interface_area,
                UNSET_FLAG(oa->flag, OSPF6_AREA_ENABLE);
                ospf6_abr_disable_area(oa);
        }
-       ospf6_interface_delete(oi);
 
        return CMD_SUCCESS;
 }