Skip to content

Commit

Permalink
'show vlan config' not displaying the VLAN members, after the clear c…
Browse files Browse the repository at this point in the history
…onfig and reload with default l2 configuration. (#457)
  • Loading branch information
ramachandrareddygaddam authored and jleveque committed May 31, 2019
1 parent 9493883 commit 7657001
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion show/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,14 @@ def config(redis_unix_socket_path):
def tablelize(keys, data):
table = []

for k in keys:
for k in natsorted(keys):
if 'members' not in data[k] :
r = []
r.append(k)
r.append(data[k]['vlanid'])
table.append(r)
continue

for m in data[k].get('members', []):
r = []
r.append(k)
Expand Down

0 comments on commit 7657001

Please sign in to comment.