Skip to content

Commit 81bd593

Browse files
feat(vpc): deprecate update PN subnets (#2755)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 3a132c2 commit 81bd593

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

cmd/scw/testdata/test-all-usage-vpc-private-network-update-usage.golden

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ ARGS:
99
private-network-id The private network ID
1010
[name] The name of the private network
1111
[tags.{index}] The private networks tags
12-
[subnets.{index}] Private network subnets CIDR
1312
[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 | pl-waw-1 | pl-waw-2)
1413

14+
DEPRECATED ARGS:
15+
[subnets.{index}] Private network subnets CIDR (deprecated)
16+
1517
FLAGS:
1618
-h, --help help for update
1719

docs/commands/vpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ scw vpc private-network update <private-network-id ...> [arg=value ...]
128128
| private-network-id | Required | The private network ID |
129129
| name | | The name of the private network |
130130
| tags.{index} | | The private networks tags |
131-
| subnets.{index} | | Private network subnets CIDR |
131+
| ~~subnets.{index}~~ | Deprecated | Private network subnets CIDR (deprecated) |
132132
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `fr-par-3`, `nl-ams-1`, `nl-ams-2`, `pl-waw-1`, `pl-waw-2` | Zone to target. If none is passed will use default zone from the config |
133133

134134

internal/namespaces/vpc/v1/vpc_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ func vpcPrivateNetworkUpdate() *core.Command {
236236
},
237237
{
238238
Name: "subnets.{index}",
239-
Short: `Private network subnets CIDR`,
239+
Short: `Private network subnets CIDR (deprecated)`,
240240
Required: false,
241-
Deprecated: false,
241+
Deprecated: true,
242242
Positional: false,
243243
},
244244
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneFrPar3, scw.ZoneNlAms1, scw.ZoneNlAms2, scw.ZonePlWaw1, scw.ZonePlWaw2),

0 commit comments

Comments
 (0)