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:
@@ -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
|
||||
|
Reference in New Issue
Block a user