-
Notifications
You must be signed in to change notification settings - Fork 812
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
Use non APIPA when assigning IP Address #4032
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution, if you get a chance can you look into adding a DCO signature to your commits. Also I'd like to make a suggestion.
suggestion: Instead of using two label breaking loops, consider pushing logic in the filterIPs
for loop into a separate function. This will allow for two things:
- The code can be rewritten to not use label breaks
- It will be easy to add unit tests to the new function that replaces the
filterIPs
loop.
@jbvmio WDYT?
Sounds good to me @jtlisi, appreciate the feedback. |
Signed-off-by: Jimmy Bonds <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jbvmio This looks good to merge! Can you add a change log entry?
Signed-off-by: Jimmy Bonds <[email protected]>
@jtlisi Change log entry added, thanks! |
Signed-off-by: Jimmy Bonds <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Jimmy Bonds <[email protected]>
Signed-off-by: Jimmy Bonds <[email protected]>
Signed-off-by: Jimmy Bonds <[email protected]>
Signed-off-by: Jimmy Bonds <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Let's please remove extra changelog entries that are not related to this PR before merging.
Signed-off-by: Jimmy Bonds <[email protected]>
Signed-off-by: Jimmy Bonds <[email protected]>
Thank you for addressing my feedback. |
What this PR does:
Returns the first non Automatic Private IP if possible. Will return APIP as last resort.
Which issue(s) this PR fixes:
Fixes or addresses #4014