-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix backend port channels and routes being displayed #14479
Fix backend port channels and routes being displayed #14479
Conversation
In `show interface portchannel` and `show ip route`, backend port channels and routes were being displayed. This is due to changes in sonic-net#13660. Fix these issues by switching to reading from PORTCHANNEL_MEMBERS table instead. Fixes sonic-net#14459. Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
LGTM. Show CLI works fine with this change. |
This PR also fixes lag_facts for test_lag_2.py test as that uses is_port_channel_internal API fixed here. But I see that the dut_port_map includes internal pcs as well. Earlier only external PCs were included in dut_port_map. That caused the increase in total test cases for test_lag_2 but the internal ones get skipped as lag_facts filter those out with this fix. Is that expected behavior? |
does it fix |
show interface status and show interface portchannel, shows only external portchannels with this fix. |
@rlhui can you please help merge this. |
Please ignore this comment. Looks like test metadata was required to be updated on sonic-mgmt ws after patching the fix on the router. After updating the metadata, we do not see internal portchannels in dut_port_map. |
* Fix backend port channels and routes being displayed In `show interface portchannel` and `show ip route`, backend port channels and routes were being displayed. This is due to changes in sonic-net#13660. Fix these issues by switching to reading from PORTCHANNEL_MEMBERS table instead. Fixes sonic-net#14459. * Replace table name with constant Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
Cherry-pick PR to 202205: #14734 |
Fixes #14459.
Why I did it
In
show interface portchannel
andshow ip route
, backend port channels and routes were being displayed. This is due to changes in #13660. Fix these issues by switching to reading from PORTCHANNEL_MEMBERS table instead.How I did it
How to verify it
Replaced the
multi_asic.py
script at/usr/local/lib/python3.9/dist-packages/sonic_py_common/multi_asic.py
with the fixed version. Verified thatshow int portchannel
andshow ip route
no longer showed routes that used the backend port channels.Current:
Fixed:
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)