oxidecomputer / console

Oxide Web Console
https://console-preview.oxide.computer
Mozilla Public License 2.0
137 stars 10 forks source link

Instance networking tab to support add/remove transit IPs #2381

Closed askfongjojo closed 1 month ago

askfongjojo commented 2 months ago

The use of transit IPs is a special use case of custom routes, illustrated in Example 4 of the Networking guide. The optional array attribute transit_ips defines which target IPs (of other instances in the same subnet) will have their packets re-routed to the instance linked to these IPs.

david-crespo commented 2 months ago

Pretty straightforward, just a list on the NIC. We can add a column in the table and use ListPlusCell to display the list.

https://github.com/oxidecomputer/console/blob/e442f6bde08082a7b81cf03e16b977435dad99b0/app/api/__generated__/Api.ts#L1904-L1915