Skip to content

Create floating IP from non-default pool without picking the actual IP address #9680

@askfongjojo

Description

@askfongjojo

The explicit option for creating floating IP now accepts only one of the following:

  • a specifc pool and IP address in that pool, or
  • a specific IP address from the silo's default pool

But the option to auto-assign an address from a non-default pool no longer works, e.g.,

$ oxide api /v1/floating-ips?project=myproj -X POST --input - <<EOF
{
  "name": "specific-pool",
  "description": "a floating IP from a non-default pool",
  "address_allocator": {
    "type": "explicit",
    "pool": "alternate-pool"
  }
}
EOF
error; status code: 400 Bad Request
{
  "message": "unable to parse JSON body: address_allocator: missing field `ip` at line 8 column 1",
  "request_id": "3a6dcd4b-8734-45e2-9ada-9676da79e39a"
}
error

This used to work and seems like a regression.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions