[config] supplement loopback interface in mimigraph (#3792)
This commit is contained in:
parent
8a7c1300c2
commit
643ef82a2f
@ -573,7 +573,7 @@ def parse_xml(filename, platform=None, port_config_file=None):
|
|||||||
vlan_members = None
|
vlan_members = None
|
||||||
pcs = None
|
pcs = None
|
||||||
mgmt_intf = None
|
mgmt_intf = None
|
||||||
lo_intf = None
|
lo_intfs = None
|
||||||
neighbors = None
|
neighbors = None
|
||||||
devices = None
|
devices = None
|
||||||
hostname = None
|
hostname = None
|
||||||
@ -656,7 +656,10 @@ def parse_xml(filename, platform=None, port_config_file=None):
|
|||||||
if alias in port_speeds_default:
|
if alias in port_speeds_default:
|
||||||
results['MGMT_PORT'][name]['speed'] = port_speeds_default[alias]
|
results['MGMT_PORT'][name]['speed'] = port_speeds_default[alias]
|
||||||
results['MGMT_INTERFACE'][(name, key[1])] = mgmt_intf[key]
|
results['MGMT_INTERFACE'][(name, key[1])] = mgmt_intf[key]
|
||||||
results['LOOPBACK_INTERFACE'] = lo_intfs
|
results['LOOPBACK_INTERFACE'] = {}
|
||||||
|
for lo_intf in lo_intfs:
|
||||||
|
results['LOOPBACK_INTERFACE'][lo_intf] = lo_intfs[lo_intf]
|
||||||
|
results['LOOPBACK_INTERFACE'][lo_intf[0]] = {}
|
||||||
results['MGMT_VRF_CONFIG'] = mvrf
|
results['MGMT_VRF_CONFIG'] = mvrf
|
||||||
|
|
||||||
phyport_intfs = {}
|
phyport_intfs = {}
|
||||||
|
Reference in New Issue
Block a user