Fix backend port channels and routes being displayed#14479
Fix backend port channels and routes being displayed#14479rlhui merged 2 commits intosonic-net:masterfrom
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 <[email protected]>
Signed-off-by: Saikrishna Arcot <[email protected]>
|
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 <[email protected]>
|
Cherry-pick PR to 202205: #14734 |
Fixes #14459.
Why I did it
In
show interface portchannelandshow 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.pyscript at/usr/local/lib/python3.9/dist-packages/sonic_py_common/multi_asic.pywith the fixed version. Verified thatshow int portchannelandshow ip routeno 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)