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).
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 |