1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

Calculate total speed from all interfaces in the connection list from ix-f export

When the if_list contains more than one entry, add them together instead of choosing
the largest value.
This commit is contained in:
Eric Lindsjö
2018-11-11 13:46:02 +01:00
parent 34fd0bb57d
commit f2e9dc56af

View File

@@ -1645,8 +1645,7 @@ class IXLan(pdb_models.IXLanBase):
speed = 0
for iface in connection.get("if_list", []):
if iface.get("if_speed", 0) > speed:
speed = iface["if_speed"]
speed += iface.get("if_speed", 0)
for lan in connection.get("vlan_list", []):
ipv4_valid = False