Skip to content

Commit

Permalink
Debian and Ubuntu fixed bond0 mac to 1st nic mac address
Browse files Browse the repository at this point in the history
  • Loading branch information
turegano-equinix committed May 7, 2024
1 parent 738bb9f commit 738fc35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ iface {{ bond }} inet {% if bond == "bond0" %}static{% else %}manual{% endif %}
netmask {{ ip4priv.netmask }}
gateway {{ ip4priv.gateway }}
{% endif %}
hwaddress {{ interfaces[0].mac }}
dns-nameservers {{ resolvers | sort | join(" ") }}

{% endif %}
Expand Down
4 changes: 4 additions & 0 deletions packetnetworking/distros/debian/test_bonded.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_public_bonded_task_etc_network_interfaces(
address {ipv4pub.address}
netmask {ipv4pub.netmask}
gateway {ipv4pub.gateway}
hwaddress {builder.network.interfaces[0].mac}
dns-nameservers {" ".join(sorted(builder.network.resolvers))}
bond-downdelay 200
Expand Down Expand Up @@ -135,6 +136,7 @@ def test_private_bonded_task_etc_network_interfaces(
address {ipv4priv.address}
netmask {ipv4priv.netmask}
gateway {ipv4priv.gateway}
hwaddress {builder.network.interfaces[0].mac}
dns-nameservers {" ".join(sorted(builder.network.resolvers))}
bond-downdelay 200
Expand Down Expand Up @@ -205,6 +207,7 @@ def test_public_bonded_task_etc_network_interfaces_with_custom_private_ip_space(
address {ipv4pub.address}
netmask {ipv4pub.netmask}
gateway {ipv4pub.gateway}
hwaddress {builder.network.interfaces[0].mac}
dns-nameservers {" ".join(sorted(builder.network.resolvers))}
bond-downdelay 200
Expand Down Expand Up @@ -291,6 +294,7 @@ def test_private_bonded_task_etc_network_interfaces_with_custom_private_ip_space
address {ipv4priv.address}
netmask {ipv4priv.netmask}
gateway {ipv4priv.gateway}
hwaddress {builder.network.interfaces[0].mac}
dns-nameservers {" ".join(sorted(builder.network.resolvers))}
bond-downdelay 200
Expand Down

0 comments on commit 738fc35

Please sign in to comment.