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