]> git.proxmox.com Git - mirror_frr.git/commit - ospf6d/ospf6_interface.c
ospf6d: Show neighbor displays twice for every neighbor.
authorAbhinay Ramesh <rabhinay@vmware.com>
Tue, 22 Jun 2021 16:41:25 +0000 (16:41 +0000)
committerAbhinay Ramesh <rabhinay@vmware.com>
Wed, 23 Jun 2021 09:24:35 +0000 (09:24 +0000)
commit40699728315d3c7a79059e55a7921308c80eb23d
tree8bcbc923dc7175148272ad5d0dc49399aff228c4
parent590303a029c401842489e9e9a3a5a5213ba69cbb
ospf6d: Show neighbor displays twice for every neighbor.

Problem Statement:
=================
When show ipv6 ospf6 neighbor is executed each neighbor gets
displayed twice.

frr# show ipv6 ospf6 neighbor
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:39     Full/DR              00:00:10 ens192[BDR]
1.1.1.1           1    00:00:39     Full/DR              00:00:10 ens192[BDR]

RCA:
====
Since ospf6_interface gets added twice to if_list we see multiple
display output.

Fix:
====
add ospf6_interface to if_list only when newly area gets attached
to the interface. If its already added no need to add it again.

Risk:
=====
Low

Tests Executed:
===============
Have tested the defect scenario.

frr# show ipv6 ospf6 neighbor
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
1.1.1.1           1    00:00:35     Full/DR              00:36:04 ens192[BDR]
frr#

Signed-off-by: Abhinay Ramesh <rabhinay@vmware.com>
ospf6d/ospf6_interface.c