ezgh compute subnets update <subnet> [--name n] [--description d] [--tag k=v…] [--auto-assign-public-ipv4=true|false] [--auto-assign-public-ipv6=true|false] [--route-table t|main] [flags]Change a subnet’s name, description (--description “” clears it) or tags (--tag replaces them; --tag “” clears them).
--auto-assign-public-ipv4 and --auto-assign-public-ipv6 set the subnet’s launch defaults: a new interface in it that doesn’t say otherwise gets a public IPv4 address mapped onto its private one, or a public IPv6 /64. Its VPC needs a network gateway. Existing interfaces are untouched.
--route-table associates the subnet with a route table of its VPC (ID, UUID, or a name among that VPC’s tables); main puts it back on the VPC’s main table, and is refused while a custom table of that VPC is named main: give an ID.
Part of ezgh compute subnets.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--auto-assign-public-ipv4 |
boolean | new interfaces get a public IPv4 address by default | |
--auto-assign-public-ipv6 |
boolean | new interfaces get a public IPv6 /64 by default | |
--description |
string | the new description | |
--name |
string | the new name | |
--route-table |
string | the route table it uses (ID, UUID or name), or main for the VPC’s main table | |
--tag |
string, repeatable | a tag, key=value (repeat; replaces the tags; --tag “” clears them) |
This command also takes the global flags.