connect_nodes
Create a point-to-point link between two device interfaces in a PNETLab lab. Specify lab, nodes, and interfaces to establish a network connection.
Instructions
Create a point-to-point link between two node interfaces. Interfaces may be given as an index or an interface name. IMPORTANT: IOL interfaces are indexed 0/16/32/48 (e0/0=0, e0/1=16, e0/2=32, e0/3=48); VPCS uses 0. You can pass 'e0/1' and it is converted automatically. Use get_lab to see each node's interface map. Do NOT connect nodes after editing them — wire the topology, then start.
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_path": "<lab_path>",
"node1_id": "<node1_id>",
"node1_interface": "<node1_interface>",
"node2_id": "<node2_id>",
"node2_interface": "<node2_interface>"
},
"name": "connect_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lab_path | Yes | ||
| node1_id | Yes | ||
| node2_id | Yes | ||
| network_name | No | ||
| network_type | No | bridge | |
| node1_interface | Yes | ||
| node2_interface | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |