summaryrefslogtreecommitdiff
path: root/tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py
diff options
context:
space:
mode:
authorckishimo <carles.kishimoto@gmail.com>2020-12-02 00:06:55 -0800
committerckishimo <carles.kishimoto@gmail.com>2020-12-02 05:49:47 -0800
commit58e5d14073f968476b2448d25c1807eb038d9877 (patch)
tree2c2fda81cb16c068067b1de7d682f76324f1f295 /tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py
parent9a4e959bd34b524454baa4e9bb9a7a34c26673c2 (diff)
ospfd: fix area removal at interface level
Areas created via interface command are not being deleted when executing the command `no ip ospf area x` With the following configuration: ! interface eth1 ip address 10.0.12.2/24 ip ospf area 0.0.0.100 ! router ospf ! r2# sh ip ospf OSPF Routing Process, Router ID: 2.2.2.2 Supports only single TOS (TOS0) routes .... Number of opaque AS LSA 0. Checksum Sum 0x00000000 Number of areas attached to this router: 1 <--- *** Area ID: 0.0.0.100 <--- *** Shortcutting mode: Default, S-bit consensus: ok Number of interfaces in this area: Total: 1, Active: 1 Number of fully adjacent neighbors in this area: 0 Area has no authentication Number of full virtual adjacencies going through this area: 0 SPF algorithm executed 1 times Number of LSA 1 Number of router LSA 1. Checksum Sum 0x0000f3d4 Number of network LSA 0. Checksum Sum 0x00000000 Number of summary LSA 0. Checksum Sum 0x00000000 Number of ASBR summary LSA 0. Checksum Sum 0x00000000 Number of NSSA LSA 0. Checksum Sum 0x00000000 Number of opaque link LSA 0. Checksum Sum 0x00000000 Number of opaque area LSA 0. Checksum Sum 0x00000000 However when removing the area from the interface, the command above displays the same information r2# conf t r2(config)# int eth1 r2(config-if)# no ip ospf area 0.0.0.100 r2(config-if)# exit r2(config)# exit r2# sh ip ospf OSPF Routing Process, Router ID: 2.2.2.2 Supports only single TOS (TOS0) routes .... Number of opaque AS LSA 0. Checksum Sum 0x00000000 Number of areas attached to this router: 1 <--- *** Area ID: 0.0.0.100 <--- *** Shortcutting mode: Default, S-bit consensus: ok Number of interfaces in this area: Total: 0, Active: 0 Number of fully adjacent neighbors in this area: 0 Area has no authentication Number of full virtual adjacencies going through this area: 0 SPF algorithm executed 2 times Number of LSA 1 Number of router LSA 1. Checksum Sum 0x0000e26e Number of network LSA 0. Checksum Sum 0x00000000 Number of summary LSA 0. Checksum Sum 0x00000000 Number of ASBR summary LSA 0. Checksum Sum 0x00000000 Number of NSSA LSA 0. Checksum Sum 0x00000000 Number of opaque link LSA 0. Checksum Sum 0x00000000 Number of opaque area LSA 0. Checksum Sum 0x00000000 r2# sh run ! interface eth1 ip address 10.0.12.2/24 ! router ospf ! end This PR removes the area when executing `no ip ospf area` command r2# sh ip ospf OSPF Routing Process, Router ID: 2.2.2.2 Supports only single TOS (TOS0) routes .... Number of opaque AS LSA 0. Checksum Sum 0x00000000 Number of areas attached to this router: 0 Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_ecmp.py')
0 files changed, 0 insertions, 0 deletions