Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slice.get_interface(name) uses ssh instead of the FIM (and thus takes a long time) #378

Open
nbastin opened this issue Sep 24, 2024 · 0 comments
Assignees

Comments

@nbastin
Copy link

nbastin commented Sep 24, 2024

On a simple 4-node network, slice.get_interface(name) can take quite a bit of time (8 seconds on my current topology). I haven't chased down exactly why, but it uses ssh to go to each node as part of this process. However, you can do the same thing yourself without ssh:

node_intf_map = {}
for node in slice_object.get_nodes():
  for intf in node.get_interfaces():
    node_intf_map[intf.get_name()] = intf

which takes milliseconds, and then can be used to perform the same lookup as slice.get_interface(name).

@kthare10 kthare10 self-assigned this Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants