Skip to content

Commit

Permalink
Fix to prevent classification all portchannels is External (sonic-net…
Browse files Browse the repository at this point in the history
…#5202)

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
Fix the checks in the API is_port_channel_internal
  • Loading branch information
arlakshm authored and santhosh-kt committed Feb 25, 2021
1 parent e6b91fb commit f58f1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-py-common/sonic_py_common/multi_asic.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def is_port_channel_internal(port_channel, namespace=None):
port_channels = config_db.get_table(PORT_CHANNEL_CFG_DB_TABLE)

if port_channel in port_channels:
if 'members' in port_channel:
if 'members' in port_channels[port_channel]:
members = port_channels[port_channel]['members']
if is_port_internal(members[0], namespace):
return True
Expand Down

0 comments on commit f58f1ed

Please sign in to comment.