-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VPC routing: Want CLI command to reset a system router #734
Comments
The CLI is mostly a wrapper around the API. Do we want an API that corresponds to this action? Or why would we prefer this as a custom CLI-only action? |
In other words, what would this look like with existing commands, and can we tolerate putting that command in a doc and saying "run this"? |
I was thinking more "if this is useful, let's make it an API call rather than implement the logic in the CLI and console" |
Depends on how ugly the existing command is! If it takes an arbitrary number of commands because it scales with the number of routes, then definitely would like this in the API instead. |
With existing commands, for IPv4 it looks like (in the forthcoming guide): restore.json {
"destination": {"type": "ip_net", "value": "0.0.0.0/0"},
"target": {"type": "internet_gateway", "value": "outbound"}
} oxide vpc router route update \
--project oxdoc \
--vpc subnet-guide \
--router system \
--route default-v4 \
--json-body restore.json (The destination value must be updated if we also need to restore the v6 route. There are only two default routes in total in the system router, nothing else there is user-modifiable.) I would say the original thought process here was that this requires a bit more effort on the CLI (due to |
Target component
Overview
Since the outbound/default routes in a VPC system router have mutable targets, it's possible for a user to shut themselves off from being able to SSH into their instances. While fixing this state is easy enough (and outlined in the guide), a command to reset these routes to their factory default would save some time.
Implementation details
The system router and its routes have fixed names in a VPC. We can probably then have:
Anything else you would like to add?
No response
The text was updated successfully, but these errors were encountered: