forked from pool/python-napalm-procurve
14 lines
815 B
Diff
14 lines
815 B
Diff
|
|
Index: napalm-procurve-0.7.0/napalm_procurve/procurve.py
|
||
|
|
===================================================================
|
||
|
|
--- napalm-procurve-0.7.0.orig/napalm_procurve/procurve.py
|
||
|
|
+++ napalm-procurve-0.7.0/napalm_procurve/procurve.py
|
||
|
|
@@ -774,7 +774,7 @@ class ProcurveDriver(NetworkDriver):
|
||
|
|
"is_enabled": True if if_adm_state[idx] == "1" else False,
|
||
|
|
"description": str(if_alias[idx]),
|
||
|
|
"last_flapped": -1.0, # Data makes no sense... unsupported for now.
|
||
|
|
- "speed": int(int(if_speed[idx].replace(",", "")) / 1000 / 1000),
|
||
|
|
+ "speed": float(int(if_speed[idx].replace(",", "")) / 1000 / 1000),
|
||
|
|
"mac_address": str(if_macs[idx]),
|
||
|
|
"mtu": int(if_mtu[idx]),
|
||
|
|
}
|