rename_location
Change the name of a city, building, wiring closet, or other location in a Packet Tracer network. Edits apply to a temporary copy; save with save_network to keep the change.
Instructions
Rename a city, building, wiring closet or other location. Packet Tracer has no call for this, so pktctl takes the network as bytes, edits them and opens the result as a temporary copy; your own file is not written, save with save_network and a path to keep the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New name, for example `Edificio Central`. | |
| path | Yes | Path of the location, as listed by `list_locations`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The temporary copy Packet Tracer now has open, when the change went through the network file. Your own file is untouched: save with `save_network` and a path to keep the change there. | |
| location | Yes |