Skip to content

Commit

Permalink
Fix small minigraph parsing issue
Browse files Browse the repository at this point in the history
Strip quotes from the device name
  • Loading branch information
andriymoroz-mlnx committed Sep 25, 2017
1 parent 97fc950 commit 8f3b658
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def parse_png(png, hname):
for device in child.findall(str(QName(ns, "Device"))):
(lo_prefix, mgmt_prefix, name, hwsku, d_type) = parse_device(device)
device_data = {'lo_addr': lo_prefix, 'type': d_type, 'mgmt_addr': mgmt_prefix, 'hwsku': hwsku }
name = name.replace('"', '')
if neighbors.has_key(name):
neighbors[name].update(device_data)
else:
Expand Down

0 comments on commit 8f3b658

Please sign in to comment.