From 58ee3e78e83a1bdab64fcd84a1a98d79a48d7e4b Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Wed, 19 Feb 2025 11:46:57 +0100 Subject: [PATCH] One less fixme --- cmd/ip.go | 2 +- docs/metalctl_network_allocate.md | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cmd/ip.go b/cmd/ip.go index 9d5e996e..1c70c605 100644 --- a/cmd/ip.go +++ b/cmd/ip.go @@ -141,7 +141,7 @@ func (c *ipCmd) Create(rq *ipAllocateRequest) (*models.V1IPResponse, error) { return resp.Payload, nil } - // FIXME this is a workaround, if specificIP is set, AF must not be set. + // if specificIP is set, AF must not be set. rq.Addressfamily = nil resp, err := c.client.IP().AllocateSpecificIP(ip.NewAllocateSpecificIPParams().WithIP(rq.SpecificIP).WithBody(rq.V1IPAllocateRequest), nil) if err != nil { diff --git a/docs/metalctl_network_allocate.md b/docs/metalctl_network_allocate.md index 520fbc42..648653ae 100644 --- a/docs/metalctl_network_allocate.md +++ b/docs/metalctl_network_allocate.md @@ -9,17 +9,17 @@ metalctl network allocate [flags] ### Options ``` - --addressfamily string addressfamily of the network to acquire [optional] (default "ipv4") - -d, --description string description of the network to create. [optional] - --dmz use this private network as dmz. [optional] - -h, --help help for allocate - --ipv4length int ipv4 bitlength of network to create. [optional] (default 22) - --ipv6length int ip6 bitlength of network to create. [optional] (default 64) - --labels strings labels for this network. [optional] - -n, --name string name of the network to create. [required] - --partition string partition where this network should exist. [required] - --project string partition where this network should exist. [required] - --shared shared allows usage of this private network from other networks + --addressfamily string addressfamily of the network to acquire [optional] + -d, --description string description of the network to create. [optional] + --dmz use this private network as dmz. [optional] + -h, --help help for allocate + --ipv4-prefix-length int ipv4 prefix bit length of network to create, defaults to default child prefix length of the parent network. [optional] + --ipv6-prefix-length int ipv6 prefix bit length of network to create, defaults to default child prefix length of the parent network. [optional] + --labels strings labels for this network. [optional] + -n, --name string name of the network to create. [required] + --partition string partition where this network should exist. [required] + --project string partition where this network should exist. [required] + --shared shared allows usage of this private network from other networks ``` ### Options inherited from parent commands