addDevice
Add a router, switch, or end device to a Cisco Packet Tracer workspace by providing a unique device name, selecting a model, and setting X/Y coordinates.
Instructions
Add a network device to the workspace. Call getNetwork first if unsure whether the chosen deviceName is already taken; names must be unique.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate on workspace. | |
| y | Yes | Y coordinate on workspace. | |
| deviceName | Yes | Unique name for the device (must not already exist). | |
| deviceModel | Yes | Device model. Router: 2911/1941/2811/2901. Switch: 2960-24TT/2950-24/3560-24PS. End device: PC-PT/Server-PT/Laptop-PT/Printer-PT. |