Skip to content

Commit 7657001

Browse files
ramachandrareddygaddamjleveque
authored andcommitted
'show vlan config' not displaying the VLAN members, after the clear config and reload with default l2 configuration. (sonic-net#457)
1 parent 9493883 commit 7657001

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

show/main.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,14 @@ def config(redis_unix_socket_path):
15261526
def tablelize(keys, data):
15271527
table = []
15281528

1529-
for k in keys:
1529+
for k in natsorted(keys):
1530+
if 'members' not in data[k] :
1531+
r = []
1532+
r.append(k)
1533+
r.append(data[k]['vlanid'])
1534+
table.append(r)
1535+
continue
1536+
15301537
for m in data[k].get('members', []):
15311538
r = []
15321539
r.append(k)

0 commit comments

Comments
 (0)