From 68987b6b4beb6615163db3a62e0a26f7e5a8bed8 Mon Sep 17 00:00:00 2001 From: Jules Casteran Date: Wed, 23 Oct 2024 14:51:53 +0200 Subject: [PATCH] fix(instance): undocument routed-ip-enabled --- .../test-all-usage-instance-server-create-usage.golden | 1 - docs/commands/instance.md | 1 - internal/namespaces/instance/v1/custom_server_create.go | 4 ---- 3 files changed, 6 deletions(-) diff --git a/cmd/scw/testdata/test-all-usage-instance-server-create-usage.golden b/cmd/scw/testdata/test-all-usage-instance-server-create-usage.golden index 00c8902620..5bf2e1d60a 100644 --- a/cmd/scw/testdata/test-all-usage-instance-server-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-server-create-usage.golden @@ -49,7 +49,6 @@ ARGS: [placement-group-id] The placement group ID in which the server has to be created [cloud-init] The cloud-init script to use (Support file loading with @/path/to/file) [boot-type=local] The boot type to use, if empty the local boot will be used. Will be overwritten to bootscript if bootscript-id is set. (local | bootscript | rescue) - [routed-ip-enabled] Enable routed IP support [admin-password-encryption-ssh-key-id] ID of the IAM SSH Key used to encrypt generated admin password. Required when creating a windows server. [project-id] Project ID to use. If none is passed the default project ID will be used [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | fr-par-3 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3) diff --git a/docs/commands/instance.md b/docs/commands/instance.md index 3df9fa6071..97082670b4 100644 --- a/docs/commands/instance.md +++ b/docs/commands/instance.md @@ -1722,7 +1722,6 @@ scw instance server create [arg=value ...] | placement-group-id | | The placement group ID in which the server has to be created | | cloud-init | | The cloud-init script to use | | boot-type | Default: `local`
One of: `local`, `bootscript`, `rescue` | The boot type to use, if empty the local boot will be used. Will be overwritten to bootscript if bootscript-id is set. | -| routed-ip-enabled | | Enable routed IP support | | admin-password-encryption-ssh-key-id | | ID of the IAM SSH Key used to encrypt generated admin password. Required when creating a windows server. | | project-id | | Project ID to use. If none is passed the default project ID will be used | | zone | Default: `fr-par-1`
One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config | diff --git a/internal/namespaces/instance/v1/custom_server_create.go b/internal/namespaces/instance/v1/custom_server_create.go index fbaa677399..8f677d1543 100644 --- a/internal/namespaces/instance/v1/custom_server_create.go +++ b/internal/namespaces/instance/v1/custom_server_create.go @@ -128,10 +128,6 @@ func serverCreateCommand() *core.Command { Default: core.DefaultValueSetter(instance.BootTypeLocal.String()), EnumValues: []string{instance.BootTypeLocal.String(), instance.BootTypeBootscript.String(), instance.BootTypeRescue.String()}, }, - { - Name: "routed-ip-enabled", - Short: "Enable routed IP support", - }, { Name: "admin-password-encryption-ssh-key-id", Short: "ID of the IAM SSH Key used to encrypt generated admin password. Required when creating a windows server.",