File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -78,17 +78,17 @@ def parse_png(png, hname):
78
78
bandwidth = bandwidth_node .text if bandwidth_node is not None else None
79
79
80
80
if enddevice == hname :
81
- if bandwidth :
82
- port_speeds [endport ] = bandwidth
83
81
if port_alias_map .has_key (endport ):
84
82
endport = port_alias_map [endport ]
85
83
neighbors [endport ] = {'name' : startdevice , 'port' : startport }
86
- else :
87
84
if bandwidth :
88
- port_speeds [startport ] = bandwidth
85
+ port_speeds [endport ] = bandwidth
86
+ else :
89
87
if port_alias_map .has_key (startport ):
90
88
startport = port_alias_map [startport ]
91
89
neighbors [startport ] = {'name' : enddevice , 'port' : endport }
90
+ if bandwidth :
91
+ port_speeds [startport ] = bandwidth
92
92
93
93
if child .tag == str (QName (ns , "Devices" )):
94
94
for device in child .findall (str (QName (ns , "Device" ))):
Original file line number Diff line number Diff line change 190
190
<EndPort >et1</EndPort >
191
191
<FlowControl >true</FlowControl >
192
192
<StartDevice >switch-t0</StartDevice >
193
- <StartPort >Ethernet8 </StartPort >
193
+ <StartPort >fortyGigE0/8 </StartPort >
194
194
<Validate >true</Validate >
195
195
</DeviceLinkBase >
196
196
</DeviceInterfaceLinks >
You can’t perform that action at this time.
0 commit comments