Skip to content

Comments

Some bonded interface fixes#104

Open
jdub wants to merge 4 commits intomichaelrigart:masterfrom
jdub:bond-dns
Open

Some bonded interface fixes#104
jdub wants to merge 4 commits intomichaelrigart:masterfrom
jdub:bond-dns

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

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

{% endif %}
{% if item.dnsnameservers is defined %}
dns-nameservers {{ item.dnsnameservers }}
{% endif %}

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?

{% endif %}
{% if item.dnssearch is defined %}
dns-search {{ item.dnssearch }}
{% endif %}

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 %}

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