Skip to content

Commit

Permalink
Add asic_name None check before populating DEVICE_METADATA
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-n committed Aug 17, 2020
1 parent 1d02ce1 commit eb76a63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,9 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
if sub_role is not None:
current_device['sub_role'] = sub_role
results['DEVICE_METADATA']['localhost']['sub_role'] = sub_role
if asic_name is not None:
results['DEVICE_METADATA']['localhost']['asic_name'] = asic_name

results['BGP_NEIGHBOR'] = bgp_sessions
results['BGP_MONITORS'] = bgp_monitors
results['BGP_PEER_RANGE'] = bgp_peers_with_range
Expand Down

0 comments on commit eb76a63

Please sign in to comment.