Skip to content

Commit

Permalink
[sonic-cfg]: Use vlanid to generate sonic vlan name (#695)
Browse files Browse the repository at this point in the history
* Use Vlan{{vlanid}} schema name of sonic vlans
  • Loading branch information
pavel-shirshov authored and lguohan committed Jun 13, 2017
1 parent 94f491e commit b616a33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ def parse_dpg(dpg, hname):
for i, member in enumerate(vmbr_list):
vmbr_list[i] = port_alias_map[member]
vlan_attributes = {'name': vintfname, 'members': vmbr_list, 'vlanid': vlanid}
vlans[vintfname] = vlan_attributes
sonic_vlan_name = "Vlan%s" % vlanid
vlans[sonic_vlan_name] = vlan_attributes

aclintfs = child.find(str(QName(ns, "AclInterfaces")))
acls = {}
Expand Down

0 comments on commit b616a33

Please sign in to comment.