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

Add Random IP Assignment #983

Closed
wants to merge 10 commits into from
Closed

Add Random IP Assignment #983

wants to merge 10 commits into from

Conversation

blobcode
Copy link

  • read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Adds / Fixes #968
This PR adds a config option for optional random ip assignment within the predefined ip prefix(es).
I'm a bit rusty in go so I'm open to feedback if there are any issues / suggestions.

config.go Show resolved Hide resolved
@kradalby
Copy link
Collaborator

Hi, sorry for the delay, we are not against this feature, we just need some more time to think about how we want to implement it. We will revisit this after we have released 0.17.0.

@blobcode blobcode closed this Nov 24, 2022
@juanfont
Copy link
Owner

@blobcode there is no need to close it. What Kristoffer meant is that we are in a feature freeze for 0.17 - which will be released very soon.

As soon as we release it, we can merge again.

@blobcode
Copy link
Author

blobcode commented Nov 24, 2022

Apologies - I misunderstood and didn’t want to leave you with a dead pr.

@blobcode blobcode reopened this Nov 24, 2022
@jwischka
Copy link

jwischka commented Dec 6, 2022

Alternatively, would it be possible to specify a specific IP for a client? We are considering deployment of Tailscale on a product we maintain and it would be helpful to be able to assign addresses based on the serial number or ID of the device.

@aadityabhatia
Copy link

Anything I can do to help move this PR along?

ips = append(ips, *ip)
}

return shuffleIPs(ips), err

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error is being handled in the loop, it will always be nil and it should be explicit as such.

return shuffleIPs(ips), nil

@kradalby
Copy link
Collaborator

Closing this for now, it will require a large rebase after our code reorg work goes in. If picked up again, please open when ready. It will need to be rethought for now.

@kradalby kradalby closed this May 10, 2023
@cg31 cg31 mentioned this pull request May 11, 2023
@almereyda
Copy link

#1473 has passed.

@blobcode would you like to try to rebase this against main?

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

Successfully merging this pull request may close these issues.

Feature Request: Random IP Address Assignment
9 participants