connect_nodes
Connect two node interfaces via point-to-point link using node IDs and Ethernet interfaces. Returns a network ID for managing link state, quality, and deletion.
Instructions
Connect two node interfaces with a point-to-point link. src_id/dest_id are node ids (from get_lab); src_if/dest_if are 0-based ethernet indices (0 = eth0, 1 = eth1, ...). Returns the new network_id and both endpoints (use the network_id with set_link_state/set_link_quality/ delete_link).
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": {
"src_id": "<src_id>",
"src_if": "<src_if>",
"dest_id": "<dest_id>",
"dest_if": "<dest_if>"
},
"name": "connect_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | p2p | |
| src_id | Yes | ||
| src_if | Yes | ||
| dest_id | Yes | ||
| dest_if | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |