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

Some bonded interface fixes #104

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

jdub
Copy link

@jdub jdub commented Jan 28, 2021

[1] Note that I have only changed this in the bond template, because it's necessary for my use case. Changing it in the other templates would cause surprising compatibility problems if anyone is already using hwaddr to choose the interface by MAC address.

@jdub jdub changed the title Support static DNS config on bonded interfaces Some bonded interface fixes Jan 30, 2021
Copy link
Collaborator

@markgoddard markgoddard left a comment

Choose a reason for hiding this comment

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

Well, TIL about MACADDR vs HWADDR. I see the logic in using MACADDR for a bond, since there is no real device to select by HWADDR. However it is a bit inconsistent now. Would it make more sense to support both macaddr and hwaddr for RH systems? is there some equivalent we can use for Ubuntu?

@@ -15,6 +15,9 @@ netmask {{ item.netmask }}
{% if item.gateway is defined %}
gateway {{ item.gateway }}
{% endif %}
{% if item.dnsnameservers is defined %}
dns-nameservers {{ item.dnsnameservers }}
{% endif %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add the same for bridge_Debian.j2?

@@ -25,6 +28,9 @@ hwaddress {{ item.hwaddr }}
{% if item.pre_up is defined %}
pre-up {{ item.pre_up }}
{% endif %}
{% if item.dnssearch is defined %}
dns-search {{ item.dnssearch }}
{% endif %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

{% endif %}
{% if item.dnssearch is defined %}
DOMAIN={{ item.dnssearch }}
{% endif %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add the same for templates/bridge_RedHat.j2?

@jdub
Copy link
Author

jdub commented Feb 5, 2021

It wouldn't make sense to support HWADDR for bonds and bridges, but it probably makes sense to support both for ethernet interfaces. I'll send some changes. 👍🏻

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.

dns-nameservers not set in Debian bond template
2 participants