How to manage subnets

See also: Subnet

Contents:

List subnets

See also: juju subnets

To view the subnets known to juju, run:

juju subnets

Expand to see a sample output
subnets:
  172.31.0.0/20:
    type: ipv4
    provider-id: subnet-9b4ed4fc
    provider-network-id: vpc-54a7112e
    status: in-use
    space: alpha
    zones:
    * us-east-1c
  172.31.16.0/20:
    type: ipv4
    provider-id: subnet-eca389a6
    provider-network-id: vpc-54a7112e
    status: in-use
    space: alpha
    zones:
    * us-east-1a
...

Move a subnet to another space

See also: juju move-to-space

For all providers other than MAAS, all subnets are initially in a default alpha space. To move a subnet 172.31.16.0/20 to a different space, db-space, execute:

juju move-to-space db-space 172.31.16.0/20
Expand to see a sample output

Subnet 172.31.16.0/20 moved from alpha to db-space


Last updated 7 months ago.