Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting IPblock status #260

Open
zeromind opened this issue Aug 8, 2023 · 0 comments
Open

Allow setting IPblock status #260

zeromind opened this issue Aug 8, 2023 · 0 comments

Comments

@zeromind
Copy link
Collaborator

zeromind commented Aug 8, 2023

Currently, it's only possible to set "Static" (via various allocate options, get ip etc), or set the status to "Available" by freeing the IP.

Status "Reserved" only gets set when adding a subnet to a pool, which currently reserves

  • Network address
  • Broadcast address
  • .0 and .255 in networks larger than /24

https://github.com/1and1/dim/blob/master/dim/dim/rpc.py#L1179-L1183

Having it not reserve those IPs is currently broken, see #220

As there's an API endpoint that allows to "free" "Reserved" IPs via a specific flag, it's a good idea to allow setting at least "Reserved". Most trivial use-case would be reserving an IP again that was freed by mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant