Skip to content

Commit

Permalink
'show vlan config' is not displaying the VLAN members, after the clea…
Browse files Browse the repository at this point in the history
…r config and reload with default l2 configuration. (sonic-net#2536)

'show vlan config' not displaying the VLAN members, after clear config done loaded with default l2 configuration.
  • Loading branch information
ramachandrareddygaddam authored and tiantianlv committed Apr 10, 2019
1 parent d8ac649 commit 556b509
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sonic-config-engine/config_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def generate_l2_config(data):
if not data['DEVICE_METADATA']['localhost'].has_key('type'):
data['DEVICE_METADATA']['localhost']['type'] = 'ToRRouter'
data['VLAN'] = {'Vlan1000': {'vlanid': '1000'}}
vp = natsorted(data['PORT'].keys())
data['VLAN']['Vlan1000'].setdefault('members', vp)
data['VLAN_MEMBER'] = {}
for port in natsorted(data['PORT'].keys()):
data['VLAN_MEMBER']['Vlan1000|{}'.format(port)] = {'tagging_mode': 'untagged'}
Expand Down

0 comments on commit 556b509

Please sign in to comment.