add_module
Installs a network module into an empty slot of a powered-off Packet Tracer device, then restarts it and returns the new ports. Unsaved configuration is lost.
Instructions
Install a module (for example HWIC-2T for serial ports) in an empty slot. The device is powered off, the module inserted and the device powered back on, exactly like real hardware, so unsaved configuration is lost. Returns the ports the module added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Empty slot path from `list_slots`, for example `0/1`. | |
| device | Yes | Router or switch name. | |
| module | Yes | Module model supported by the device, for example `HWIC-2T` or `NIM-2T`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| device | Yes | ||
| module | Yes | ||
| cut_links | No | ||
| ports_added | Yes | ||
| ports_removed | Yes |