Skip to content

Commit

Permalink
Fix to prevent classification all portchannels is External (#5202)
Browse files Browse the repository at this point in the history
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
Fix the checks in the API is_port_channel_internal
  • Loading branch information
arlakshm authored and abdosi committed Aug 19, 2020
1 parent b105b5a commit fe8ee92
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 @@ -293,7 +293,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 fe8ee92

Please sign in to comment.