Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
verktoy
PyMetric
Commits
a2cf8a09
Commit
a2cf8a09
authored
Oct 26, 2016
by
Morten Knutsen
Browse files
Add 100Gbit/s to the capacity to string dict.
parent
7c0c2ab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils.py
View file @
a2cf8a09
...
...
@@ -55,14 +55,15 @@ def edge_labels(edges, edgegroups=[], suppress_default=True):
def
cap2str
(
capacity
):
mapping
=
{
1984
:
'2Mbit/s'
,
34000
:
'34Mbit/s'
,
34010
:
'34Mbit/s'
,
100000
:
'100Mbit/s'
,
155000
:
'155Mbit/s'
,
1000000
:
'1Gbit/s'
,
2488000
:
'2.5Gbit/s'
,
10000000
:
'10Gbit/s'
mapping
=
{
1984
:
'2Mbit/s'
,
34000
:
'34Mbit/s'
,
34010
:
'34Mbit/s'
,
100000
:
'100Mbit/s'
,
155000
:
'155Mbit/s'
,
1000000
:
'1Gbit/s'
,
2488000
:
'2.5Gbit/s'
,
10000000
:
'10Gbit/s'
,
100000000
:
'100Gbit/s'
}
if
type
(
capacity
)
!=
type
(
int
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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