Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[master]Fix show ip interface neighbor info not correct when add seco…
…nd ip (sonic-net#1134) **- What I did** Fix sonic-net/sonic-buildimage#5423 **- How I did it** store neighbor info into array for later showing. **- How to verify it** config interface ip add Ethernet49 xxx secondary many times show ip interface **- Previous command output (if the output of a command-line utility has changed)** ``` root@sonic:/home/admin# show ip interfaces Interface Master IPv4 address/mask Admin/Oper BGP Neighbor Neighbor IP --------------- -------- ------------------- ------------ -------------- ------------- Ethernet49 10.0.0.96/31 up/up N/A N/A 10.10.49.1/24 ``` **- New command output (if the output of a command-line utility has changed)** ``` root@sonic:/usr/lib/python2.7/dist-packages/show# show ip interfaces Interface Master IPv4 address/mask Admin/Oper BGP Neighbor Neighbor IP ----------- --------------- ------------------- ------------ -------------- ------------- Ethernet49 10.0.0.96/31 up/up ARISTA21T0 10.0.0.97 10.10.49.1/24 up/up N/A N/A ``` Co-authored-by: shaoshouping <shaoshouping@ruijie.com.cn>
- Loading branch information