Skip to content

cannot create static subnet with slcli #1139

@lmgray

Description

@lmgray

slcli subnet command offers no way to oder a static IP/Subnet

Expected Behavior

$ slcli subnet create private -h
Usage: slcli subnet create [OPTIONS] **[static|portable]** [public|private] QUANTITY VLAN_ID

  Add a new subnet to your account. Valid quantities vary by type.

  Type    - Valid Quantities (IPv4)
  **static public** - 1, 2, 4, 8, 16, 32, 128, 256
  portable public  - 4, 8, 16, 32
  portable private - 4, 8, 16, 32, 64

  Type    - Valid Quantities (IPv6)
  **static public**  - 64
  portable public - 64

Options:
  --v6, --ipv6  Order IPv6 Addresses
  --test        Do not order the subnet; just get a quote
  -h, --help    Show this message and exit.

It's possible through the API so it should be exposed in slcli: https://sldn.softlayer.com/python/order_static_subnet/

Actual Behavior

Usage: slcli subnet create [OPTIONS] [public|private] QUANTITY VLAN_ID

  Add a new subnet to your account. Valid quantities vary by type.

  Type    - Valid Quantities (IPv4)
  public  - 4, 8, 16, 32
  private - 4, 8, 16, 32, 64

  Type    - Valid Quantities (IPv6)
  public  - 64

Options:
  --v6, --ipv6  Order IPv6 Addresses
  --test        Do not order the subnet; just get a quote
  -h, --help    Show this message and exit.

Environment Information

Operating System: Ubuntu 18.04.2 LTS
softlayer-python version (slcli --version): slcli (SoftLayer Command-line), version 5.7.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions