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. (#2536)

'show vlan config' not displaying the VLAN members, after clear config done loaded with default l2 configuration.
  • Loading branch information
ramachandrareddygaddam authored and yxieca committed Feb 21, 2019
1 parent fc5512a commit 490f47e
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 490f47e

Please sign in to comment.