From 56215e6de60668edecc6de428799a17649e34a35 Mon Sep 17 00:00:00 2001 From: ckishimo Date: Tue, 16 Mar 2021 23:47:18 +0100 Subject: [PATCH] ospf6d: fix iface commands lost when removing from area 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 --- ospf6d/ospf6_top.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c index 5396529645..ef496b589d 100644 --- a/ospf6d/ospf6_top.c +++ b/ospf6d/ospf6_top.c @@ -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; } -- 2.39.5