Repository navigation
Remove duplicate inet line for inet6 interfaces - #33622
Merged
Merged
Conversation
The way how debian_ip.py works, it is not sufficient to just check if "interface.proto" exists. It will always be "inet" and therefore the additional inet line will be present in the configuration, even though it is an IPv6 only interface. In case of a static IP address configuration, it also needs to be checked if "interface.address" exists. In case of an interface configured via DHCP, it needs to be checked if "interface.proto" is "dhcp". Relates: 28114 Closes: 28114
Contributor
Author
|
Can I do something here to help resolve the checks that were not successful? I do not have experience in Jenkins and not sure what the process would be to help out 😢 |
Contributor
|
Go Go Jenkins! |
Contributor
|
Sorry @jbfriedrich for the delay here, this looks good to me. I am re-running tests so that they show up, if I don't get this resolved soon please ping me |
Contributor
Author
|
@thatch45 Ping 😄 |
Contributor
|
Sorry for the delay here @jbfriedrich. This is merged in now. |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Currently the template debian_eth.jinja checks if "interface.proto" exists. This is not sufficient since it will always be "inet" and therefore the additional inet line will be present in the generated configuration, even though it is an IPv6 only interface. In case of a static IP address configuration, it also needs to be checked if "interface.address" exists. In case of an interface configured via DHCP, it needs to be checked if "interface.proto" is "dhcp".
What issues does this PR fix or reference?
Relates #28114
Closes: #28114
Previous Behavior
Salt created an additional "inet" line for an "inet6" only interface
New Behavior
Salt now creates the correct "inet6" configuration line
Tests written?
No