Skip to content

Allow instance to have both v4 and v6 ephemeral IP at create time #9665

@askfongjojo

Description

@askfongjojo

I tried creating this dual-stack instance with two ephemeral IP addresses and got the following validation errors:

oxide --insecure --profile local2-admin  api "/v1/instances?project=v6" --method POST --input - <<EOF
> {
>    "name":"dual-stack",
>    "description":"v4 and v6",
>    "hostname":"vm",
>    "memory":8589934592,
>    "ncpus":2,
>    "disks":[
>       {
>          "type":"attach",
>          "name":"focal1"
>       }
>    ],
>    "network_interfaces":{
>       "type":"default_dual_stack"
>    },
> "external_ips": [
>     {
>       "type": "ephemeral",
>       "pool_selector": {"ip_version": "v4", "type": "auto"}
>     },
>     {
>       "type": "ephemeral",
>       "pool_selector": {"ip_version": "v6", "type": "auto"}
>     }
>    ],
>    "start":false
> }
> EOF
error; status code: 400 Bad Request
{
  "error_code": "InvalidRequest",
  "message": "An instance may not have more than 1 ephemeral IP address",
  "request_id": "b14c4e45-301b-4cce-9b73-a12ecf56bdaa"
}
error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions