Skip to content

Commit

Permalink
[teamshow]: Fixed teamshow output not displaying the custom portchann…
Browse files Browse the repository at this point in the history
…els #276
  • Loading branch information
madhupalu committed Jan 18, 2019
1 parent da3934e commit 4e80674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/teamshow
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Teamshow(object):
"""
Skip the 'PortChannel' prefix and extract the team id.
"""
return team[11:]
return team[:]

def get_teamdctl(self):
"""
Expand Down Expand Up @@ -123,7 +123,7 @@ class Teamshow(object):
header = ['No.', 'Team Dev', 'Protocol', 'Ports']
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']])
output.append([team_id[11:], team_id, self.summary[team_id]['protocol'], self.summary[team_id]['ports']])
print tabulate(output, header)

def main():
Expand Down

0 comments on commit 4e80674

Please sign in to comment.