add_link
Connect two nodes in a network lab by creating a link, automatically using the next free interface on each when none are specified.
Instructions
Connect two nodes with a link. If iface_a/iface_b (interface labels, e.g. 'GigabitEthernet0/1') are omitted, the next free interface on each node is used, creating one if needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lab_id": "<lab_id>",
"node_a_id": "<node_a_id>",
"node_b_id": "<node_b_id>"
},
"name": "add_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lab_id | Yes | ||
| iface_a | No | ||
| iface_b | No | ||
| node_a_id | Yes | ||
| node_b_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||