Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
P
PyMetric
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • verktoy
  • PyMetric
  • Issues
  • #14

Closed
Open
Opened Nov 07, 2019 by Morten Knutsen@mortenkContributor

"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

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: verktoy/PyMetric#14