Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
  • Loading branch information
arlakshm committed Aug 21, 2020
1 parent 9b8f365 commit 0eaaa72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion show/interfaces/portchannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def get_portchannel_names(self):
"""
self.teams = []
team_keys = self.db.keys(self.db.CONFIG_DB, PORT_CHANNEL_CFG_TABLE_PREFIX+"*")
if team_keys is None:
return
for key in team_keys:
team_name = key[len(PORT_CHANNEL_CFG_TABLE_PREFIX):]
if self.multi_asic.skip_display(PORT_CHANNEL_OBJ, team_name) is True:
Expand Down Expand Up @@ -155,7 +157,7 @@ def display_summary(self):
output = []
for team_id in natsorted(self.summary):
output.append([team_id, 'PortChannel'+team_id, self.summary[team_id]['protocol'], self.summary[team_id]['ports']])
print tabulate(output, header)
print(tabulate(output, header))

# 'portchannel' subcommand ("show interfaces portchannel")
@click.command()
Expand Down

0 comments on commit 0eaaa72

Please sign in to comment.