Skip to content

Remove duplicate inet line for inet6 interfaces - #33622

Merged
rallytime merged 1 commit into
saltstack:developfrom
jbfriedrich:develop
Jun 22, 2016
Merged

rallytime merged 1 commit into
saltstack:developfrom
jbfriedrich:develop

Conversation

@jbfriedrich

@jbfriedrich jbfriedrich commented May 30, 2016 •

Copy link
Copy Markdown
Contributor

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

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
@jbfriedrich

Copy link
Copy Markdown
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 😢

@thatch45

thatch45 commented Jun 16, 2016 •

Copy link
Copy Markdown
Contributor

Go Go Jenkins!

@thatch45

Copy link
Copy Markdown
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

@jbfriedrich

Copy link
Copy Markdown
Contributor Author

@thatch45 Ping 😄

@rallytime
rallytime merged commit d63cd6b into saltstack:develop Jun 22, 2016
@rallytime

rallytime commented Jun 22, 2016 •

Copy link
Copy Markdown
Contributor

Sorry for the delay here @jbfriedrich. This is merged in now.

@cachedout cachedout mentioned this pull request Dec 2, 2016
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.

debian_ip: IPv6 only interfaces not possible (again)

3 participants