Commit 7e5128b2 authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Add more speed types for SFP

parent f430f0a8
Pipeline #35126 passed with stages
in 16 minutes and 19 seconds
...@@ -747,7 +747,7 @@ class AssetCheck(DiscoveryCheck): ...@@ -747,7 +747,7 @@ class AssetCheck(DiscoveryCheck):
mtype = name[24:].upper().replace("-", "") mtype = name[24:].upper().replace("-", "")
if "BASE" in mtype: if "BASE" in mtype:
speed, ot = mtype.split("BASE", 1) speed, ot = mtype.split("BASE", 1)
spd = {"100": "100M", "1000": "1G", "10G": "10G"}.get(speed) spd = {"100": "100M", "1000": "1G", "10/100/1000": "1G", "10G": "10G"}.get(speed)
if spd: if spd:
m = "NoName | Transceiver | %s | %s %s" % (spd, ff, ot) m = "NoName | Transceiver | %s | %s %s" % (spd, ff, ot)
else: else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment