Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[201911][show] Fix 'show int neigh expected' #1189

Merged
merged 1 commit into from
Nov 8, 2020

Conversation

lolyu
Copy link
Contributor

@lolyu lolyu commented Oct 26, 2020

show int neighbor expected only show one member interface for
portchannel with multiple member interfaces. This is because
device2interface_dict only stores mapping from one device to one
port.

Signed-off-by: Longxiang Lyu lolv@microsoft.com

- What I did

- How I did it

- How to verify it

- Previous command output (if the output of a command-line utility has changed)

$ show int neighbor expected
LocalPort    Neighbor    NeighborPort    NeighborLoopback    NeighborMgmt    NeighborType
-----------  ----------  --------------  ------------------  --------------  --------------
Ethernet64   ARISTA01T0  Ethernet1       None                10.64.247.144   ToRRouter
Ethernet4    ARISTA01T2  Ethernet2       None                10.64.247.136   SpineRouter
Ethernet68   ARISTA02T0  Ethernet1       None                10.64.247.145   ToRRouter
Ethernet72   ARISTA03T0  Ethernet1       None                10.64.247.146   ToRRouter
Ethernet12   ARISTA03T2  Ethernet2       None                10.64.247.137   SpineRouter
Ethernet76   ARISTA04T0  Ethernet1       None                10.64.247.147   ToRRouter
Ethernet80   ARISTA05T0  Ethernet1       None                10.64.247.148   ToRRouter
Ethernet20   ARISTA05T2  Ethernet2       None                10.64.247.138   SpineRouter
Ethernet84   ARISTA06T0  Ethernet1       None                10.64.247.149   ToRRouter
Ethernet88   ARISTA07T0  Ethernet1       None                10.64.247.150   ToRRouter
Ethernet28   ARISTA07T2  Ethernet2       None                10.64.247.139   SpineRouter
Ethernet92   ARISTA08T0  Ethernet1       None                10.64.247.151   ToRRouter
Ethernet96   ARISTA09T0  Ethernet1       None                10.64.247.152   ToRRouter
Ethernet36   ARISTA09T2  Ethernet2       None                10.64.247.140   SpineRouter
Ethernet100  ARISTA10T0  Ethernet1       None                10.64.247.153   ToRRouter
Ethernet104  ARISTA11T0  Ethernet1       None                10.64.247.154   ToRRouter
Ethernet44   ARISTA11T2  Ethernet2       None                10.64.247.141   SpineRouter
Ethernet108  ARISTA12T0  Ethernet1       None                10.64.247.155   ToRRouter
Ethernet112  ARISTA13T0  Ethernet1       None                10.64.247.156   ToRRouter
Ethernet52   ARISTA13T2  Ethernet2       None                10.64.247.142   SpineRouter
Ethernet116  ARISTA14T0  Ethernet1       None                10.64.247.157   ToRRouter
Ethernet120  ARISTA15T0  Ethernet1       None                10.64.247.158   ToRRouter
Ethernet60   ARISTA15T2  Ethernet2       None                10.64.247.143   SpineRouter
Ethernet124  ARISTA16T0  Ethernet1       None                10.64.247.159   ToRRouter

- New command output (if the output of a command-line utility has changed)

$ show int neighbor expected
LocalPort    Neighbor    NeighborPort    NeighborLoopback    NeighborMgmt    NeighborType
-----------  ----------  --------------  ------------------  --------------  --------------
Ethernet0    ARISTA01T2  Ethernet1       None                10.64.247.136   SpineRouter
Ethernet4    ARISTA01T2  Ethernet2       None                10.64.247.136   SpineRouter
Ethernet8    ARISTA03T2  Ethernet1       None                10.64.247.137   SpineRouter
Ethernet12   ARISTA03T2  Ethernet2       None                10.64.247.137   SpineRouter
Ethernet16   ARISTA05T2  Ethernet1       None                10.64.247.138   SpineRouter
Ethernet20   ARISTA05T2  Ethernet2       None                10.64.247.138   SpineRouter
Ethernet24   ARISTA07T2  Ethernet1       None                10.64.247.139   SpineRouter
Ethernet28   ARISTA07T2  Ethernet2       None                10.64.247.139   SpineRouter
Ethernet32   ARISTA09T2  Ethernet1       None                10.64.247.140   SpineRouter
Ethernet36   ARISTA09T2  Ethernet2       None                10.64.247.140   SpineRouter
Ethernet40   ARISTA11T2  Ethernet1       None                10.64.247.141   SpineRouter
Ethernet44   ARISTA11T2  Ethernet2       None                10.64.247.141   SpineRouter
Ethernet48   ARISTA13T2  Ethernet1       None                10.64.247.142   SpineRouter
Ethernet52   ARISTA13T2  Ethernet2       None                10.64.247.142   SpineRouter
Ethernet56   ARISTA15T2  Ethernet1       None                10.64.247.143   SpineRouter
Ethernet60   ARISTA15T2  Ethernet2       None                10.64.247.143   SpineRouter
Ethernet64   ARISTA01T0  Ethernet1       None                10.64.247.144   ToRRouter
Ethernet68   ARISTA02T0  Ethernet1       None                10.64.247.145   ToRRouter
Ethernet72   ARISTA03T0  Ethernet1       None                10.64.247.146   ToRRouter
Ethernet76   ARISTA04T0  Ethernet1       None                10.64.247.147   ToRRouter
Ethernet80   ARISTA05T0  Ethernet1       None                10.64.247.148   ToRRouter
Ethernet84   ARISTA06T0  Ethernet1       None                10.64.247.149   ToRRouter
Ethernet88   ARISTA07T0  Ethernet1       None                10.64.247.150   ToRRouter
Ethernet92   ARISTA08T0  Ethernet1       None                10.64.247.151   ToRRouter
Ethernet96   ARISTA09T0  Ethernet1       None                10.64.247.152   ToRRouter
Ethernet100  ARISTA10T0  Ethernet1       None                10.64.247.153   ToRRouter
Ethernet104  ARISTA11T0  Ethernet1       None                10.64.247.154   ToRRouter
Ethernet108  ARISTA12T0  Ethernet1       None                10.64.247.155   ToRRouter
Ethernet112  ARISTA13T0  Ethernet1       None                10.64.247.156   ToRRouter
Ethernet116  ARISTA14T0  Ethernet1       None                10.64.247.157   ToRRouter
Ethernet120  ARISTA15T0  Ethernet1       None                10.64.247.158   ToRRouter
Ethernet124  ARISTA16T0  Ethernet1       None                10.64.247.159   ToRRouter

`show int neighbor expected` only show one member interface for
portchannel with multiple member interfaces. This is because
`device2interface_dict` only stores mapping from one device to one
port.

Signed-off-by: Longxiang Lyu <lolv@microsoft.com>
@lolyu
Copy link
Contributor Author

lolyu commented Oct 27, 2020

Retest this please

@lguohan
Copy link
Contributor

lguohan commented Oct 27, 2020

is this the downport of pr #1162

@lolyu
Copy link
Contributor Author

lolyu commented Oct 28, 2020

is this the downport of pr #1162
Yes, can #1162 be cherry-picked into 201911? If yes, I will close this one.

@lguohan
Copy link
Contributor

lguohan commented Oct 28, 2020

no it cannot.

@lguohan
Copy link
Contributor

lguohan commented Oct 28, 2020

retest this please

@lolyu
Copy link
Contributor Author

lolyu commented Oct 29, 2020

Retest this please

@lguohan
Copy link
Contributor

lguohan commented Oct 29, 2020

retest this please

2 similar comments
@lolyu
Copy link
Contributor Author

lolyu commented Oct 30, 2020

retest this please

@lolyu
Copy link
Contributor Author

lolyu commented Nov 3, 2020

retest this please

@lguohan
Copy link
Contributor

lguohan commented Nov 5, 2020

@jleveque , is 201911 unit test broken now?

@jleveque
Copy link
Contributor

jleveque commented Nov 5, 2020

@jleveque , is 201911 unit test broken now?

Unfortunately, yes, the check build is broken for 201911 becuase it is shared with master, and it has been changed to build and test as a wheel in master, but it is still built as a Debian package in 201911.

@jleveque jleveque changed the title [show] Fix 'show int neigh expected' [201911][show] Fix 'show int neigh expected' Nov 5, 2020
@lguohan
Copy link
Contributor

lguohan commented Nov 8, 2020

the code has no issue. unit test is not working for 201911 branch.

@lguohan lguohan merged commit 4585be1 into sonic-net:201911 Nov 8, 2020
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
c0df635 (HEAD -> 201911, origin/201911) Updates to bgp config and show commands with BGP_INTERNAL_NEIGHBOR table (sonic-net#1224) (sonic-net#1237)
d683bb4 [CLI][show][platform] Added ASIC count in the output. (sonic-net#1185) (sonic-net#1227)
4585be1 [show] Fix 'show int neigh expected' (sonic-net#1189)
29e4469 [201911][fwutil]: Use logger from sonic-py-common (sonic-net#1190)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants