pt_connect
Connect cable devices in a Packet Tracer topology by defining links and optional ports; auto-selects cable type and free ports for serial, fiber, console, or network connections.
Instructions
Cable devices. links: [{a, b, a_port?, b_port?, cable?}]. Ports are optional: the first free port of the right media is chosen (fastest first; on switches use a_pref/b_pref='access' to keep gigabit uplinks free). cable: auto (default) | straight | cross | serial | fiber | console | coaxial | phone. For serial links the device needs a serial module (pt_add_module).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | Yes |