question about def connect_node_to_node #195
BielZucoloto
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, your project is amazing, I'm using it in my environment, but I'm confused when using the def connect_node_to_node function. I'm using a Cisco IOL image that I believe uses a serial interface. The function looks like this:
create Nodes
nodes = [
{"name": "r1", "template": "iol", "image": "L2-ADVENTERPRISEK9-M-15.1-20130726.bin", "left": 50, "top": 38},
{"name": "r02", "template": "iol", "image": "i86bi_linux_l2-advipservicesk9-ms.high_iron_20170202.bin", "left": 200, "top": 38},
{"name": "teste", "template": "iol", "image": "L2-ADVENTERPRISEK9-M-15.1-20130726.bin", "left": 200, "top": 100,"icon":"Switch.png"},
]
for node in nodes:
client.api.add_node(lab_path,node_type="iol", **node)
create p2p links
p2p_links = [
{"src": "r1", "src_label": "e0", "dst": "r02", "dst_label": "e0"}
]
for link in p2p_links:
client.api.connect_node_to_node(lab_path,media='serial', **link)
however, I get the following error:
raise ValueError(f"{src_label} invalid or missing for " f"{src}")
ValueError: e1 invalid or missing for r1
what could be right?
Beta Was this translation helpful? Give feedback.
All reactions