"Special" links speeds are not supported.
Created by: runborg
Link speeds other than some special speeds are not supported. eg. 2,2.5,5,20,25,40gbit++ is not supported in the current implementation and failes with this error:
(sim) >>> plot with-load
Traceback (most recent call last):
File "/home/he/Desktop/pymetric/metrics.py", line 45, in <module>
cli.cmdloop()
File "/home/he/Desktop/pymetric/command.py", line 64, in cmdloop
Cmd.cmdloop(self)
File "/usr/pkg/lib/python2.7/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "/usr/pkg/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File "/home/he/Desktop/pymetric/command.py", line 424, in do_plot
self.gui.plot(G, graphdata, edge_cmap=cmap, edge_capa=capa)
File "/home/he/Desktop/pymetric/plotting.py", line 248, in plot
for i in range(len(edges))]
KeyError: 40000000
This comes by the line-width array be'ing a static mapping and not allows for dynamic scaling. se: https://github.com/Uninett/PyMetric/blob/b32bdde81308fdb0baf28c3a194ee58a1d2bd1ee/plotting.py#L53 New speeds needs to be added as a short fix, and as a permanent fix this scaling needs to be done dynamically to allow for whatever speed is available