Skip to content

Commit

Permalink
One less fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Feb 19, 2025
1 parent f92a385 commit 58ee3e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
22 changes: 11 additions & 11 deletions docs/metalctl_network_allocate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58ee3e7

Please sign in to comment.