No documented way to set the MAC for a bridge or bond
Bug #1664698 reported by
Mike Pontillo
This bug report is a duplicate of:
Bug #1690388: wrong hwaddr on the vlan bond with nplan and cloud-init.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
Medium
|
Unassigned | ||
nplan (Ubuntu) |
In Progress
|
High
|
Mathieu Trudel-Lapierre |
Bug Description
According to the current documentation[1], there is no way to set the MAC address for a bridge or bond interface. This is requirement for the MAAS use case.
Tentatively, I'm writing rendering the netplan with a 'macaddress' key under each bond or bridge (since that seems the most consistent with the `match` syntax).
Related branches
~mpontillo/maas:netplan--fix-deferred-issues
Merged
into
maas:master
- Lee Trager (community): Approve
- MAAS Lander: Approve
-
Diff: 349 lines (+91/-36)2 files modifiedsrc/maasserver/preseed_network.py (+45/-21)
src/maasserver/tests/test_preseed_network.py (+46/-15)
Changed in netplan: | |
milestone: | none → netplan-17.03 |
Changed in maas: | |
milestone: | none → next |
status: | Triaged → Fix Committed |
Changed in maas: | |
milestone: | next → 2.6.0 |
To post a comment you must log in.
For networkd, All virtual net devices support general parameters, including MACAddress
and this works as expected if netplan passes through macaddress parameters to netdevs it creates.
root@z1: /etc/systemd/ network# cat br0.net* 00:11:22: 33:44:55
[NetDev]
Name=br0
MACAddress=
Kind=bridge
[Match]
Name=br0
[Network] 192.168. 2.1/24
Address=
root@z1: /etc/systemd/ network# networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 br0 ether no-carrier configuring
16 eth0 ether routable unmanaged
3 links listed. /etc/systemd/ network# ifconfig br0 UP,BROADCAST, MULTICAST> mtu 1500
root@z1:
br0: flags=4099<
inet 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
ether 00:11:22:33:44:55 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@z1: /etc/systemd/ network# cat *bond* aa:bb:cc: 00:11:22
[NetDev]
Name=bond0
MACAddress=
Kind=bond
Mode=balance-rr
[Match]
Name=bond0
[Network] 10.2.71. 1/24 /etc/systemd/ network# ifconfig bond0 UP,BROADCAST, MASTER, MULTICAST> mtu 1500
Address=
root@z1:
bond0: flags=5123<
inet 10.2.71.1 netmask 255.255.255.0 broadcast 10.2.71.255
ether aa:bb:cc:00:11:22 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0