I think it might be because of this snippet? It seems to expect a <mac> entry to exist in every network, and adds it if not found. This should probably not apply for bridge networks.
This is surprising. As you can see from the snippet, the code already checks the "mode" attribute and should not futz around with the MAC address if it's set to "bridge".
Hi. I was trying to set up a simple bridge network (see below), but I ran into the following error:
Now this is weird because my definition does not contain any
<mac>
element:The nix side of things just imports the file as-is:
I think it might be because of this snippet? It seems to expect a
<mac>
entry to exist in every network, and adds it if not found. This should probably not apply for bridge networks.https://github.com/AshleyYakeley/NixVirt/blob/1d5c17c1f3a03f5d7e4dacc1025db350190f8f6c/tool/nixvirt.py#L175-L185