rename_location
Rename a city, building, wiring closet, or other Packet Tracer location; edits apply to a temporary copy, so save with save_network to retain 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 |