You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Deprecated: dnsNameServersFlag is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
32
-
dnsNameServersFlag="dns-name-servers"
33
-
// Deprecated: networkRangesFlag is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
34
-
networkRangesFlag="network-ranges"
35
-
// Deprecated: transferNetworkFlag is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
36
-
transferNetworkFlag="transfer-network"
37
-
// Deprecated: defaultPrefixLengthFlag is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
38
-
defaultPrefixLengthFlag="default-prefix-length"
39
-
// Deprecated: maxPrefixLengthFlag is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
40
-
maxPrefixLengthFlag="max-prefix-length"
41
-
// Deprecated: minPrefixLengthFlag is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
42
-
minPrefixLengthFlag="min-prefix-length"
43
-
labelFlag="labels"
44
-
45
-
deprecationMessage="Deprecated and will be removed after April 2026. Use instead the new command `$ stackit network-area region` to configure these options for a network area."
27
+
labelFlag="labels"
46
28
)
47
29
48
30
typeinputModelstruct {
49
31
*globalflags.GlobalFlagModel
50
32
Namestring
51
33
OrganizationIdstring
52
-
// Deprecated: DnsNameServers is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
53
-
DnsNameServers*[]string
54
-
// Deprecated: NetworkRanges is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
55
-
NetworkRanges*[]string
56
-
// Deprecated: TransferNetwork is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
57
-
TransferNetwork*string
58
-
// Deprecated: DefaultPrefixLength is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
59
-
DefaultPrefixLength*int64
60
-
// Deprecated: MaxPrefixLength is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
61
-
MaxPrefixLength*int64
62
-
// Deprecated: MinPrefixLength is deprecated, because with iaas v2 the create endpoint for network area was separated, remove this after April 2026.
63
-
MinPrefixLength*int64
64
-
Labelsmap[string]any
34
+
Labelsmap[string]any
65
35
}
66
36
67
37
// NetworkAreaResponses is a workaround, to keep the two responses of the iaas v2 api together for the json and yaml output
params.Printer.Warn("the flags %q are deprecated and will be removed after April 2026. Use `$ stackit network-area region` to configure these options for a network area.\n", strings.Join(deprecatedFlags, ","))
cmd.Flags().StringToString(labelFlag, nil, "Labels are key-value string pairs which can be attached to a network-area. E.g. '--labels key1=value1,key2=value2,...'")
171
-
cmd.Flags().StringSlice(dnsNameServersFlag, nil, "List of DNS name server IPs")
172
-
cmd.Flags().Var(flags.CIDRSliceFlag(), networkRangesFlag, "List of network ranges")
173
-
cmd.Flags().Var(flags.CIDRFlag(), transferNetworkFlag, "Transfer network in CIDR notation")
174
-
cmd.Flags().Int64(defaultPrefixLengthFlag, 0, "The default prefix length for networks in the network area")
175
-
cmd.Flags().Int64(maxPrefixLengthFlag, 0, "The maximum prefix length for networks in the network area")
176
-
cmd.Flags().Int64(minPrefixLengthFlag, 0, "The minimum prefix length for networks in the network area")
0 commit comments