How to manage subnets

See also: Subnet

Contents:

Add a subnet

See also: juju add-subnet

List subnets

See also: juju subnets

To view the subnets known to juju, run:

$ juju subnets
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
Subnet 172.31.16.0/20 moved from alpha to db-space