dtctl router update-static-route
Usage
dtctl router update-static-route [flags]
Aliases
usr
Description
Replace an existing static route (matched by its current destination and next hop) with a new destination and next hop.
Example
dtctl router update-static-route --router-id <router-id> --destination 10.20.0.0/24 --next-hop 10.0.0.5 --new-destination 10.30.0.0/24 --new-next-hop 10.0.0.6
Response
In text output (the default), this command returns the following columns: ID, Name, Admin State Up, Status, External Gateway Info, Static Routes, Description, Flavor ID, Created At, Updated At, Revision Number.
Pass --output json to get the full response object instead.
Flags
| Option | Description |
|---|---|
--destination, -d | Current destination CIDR for the static route to be updated (required) |
--new-destination, -t | New destination CIDR for the static route. Defaults to the current destination |
--new-next-hop, -p | New next hop for the static route. Defaults to the current next hop |
--next-hop, -n | Current next hop for the static route to be updated (required) |
--router-id, -i | Router ID to update static route for (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl router list | List routers |
| dtctl router show | Show a router |
| dtctl router create | Create a router |
| dtctl router update | Rename a router |
| dtctl router delete | Delete a router |
| dtctl router delete-external-gateway | Remove the external gateway |
| dtctl router delete-interface | Detach an interface |
| dtctl router delete-static-route | Delete a static route |
| dtctl router add-static-route | Add a static route |
| dtctl router attach-external-gateway | Attach an external gateway |
| dtctl router attach-interface | Attach an internal interface |
| dtctl router externals | List networks with external access |
| dtctl router interfaces | List a router's interfaces |
| dtctl router restart | Restart a router |
| dtctl router static-routes | List a router's static routes |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |