Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexey Shapovalov
noc
Commits
7e5128b2
Commit
7e5128b2
authored
Jan 28, 2022
by
Dmitry Lukhtionov
Browse files
Add more speed types for SFP
parent
f430f0a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/discovery/jobs/box/asset.py
View file @
7e5128b2
...
...
@@ -747,7 +747,7 @@ class AssetCheck(DiscoveryCheck):
mtype
=
name
[
24
:].
upper
().
replace
(
"-"
,
""
)
if
"BASE"
in
mtype
:
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
:
m
=
"NoName | Transceiver | %s | %s %s"
%
(
spd
,
ff
,
ot
)
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment