You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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:which takes milliseconds, and then can be used to perform the same lookup as
slice.get_interface(name)
.The text was updated successfully, but these errors were encountered: