Derive the bridge MAC from concatenated multiple sources

The sources include:

- /etc/machine-id (generated by "systemd-machine-id-setup") or
  /var/lib/dbus/machine-id (generated by "dbus-uuidgen").
- /sys/class/dmi/id/product_uuid.
- /sys/hypervisor/uuid.

The product of the concatenation should produce an unique identifier
which is stable across reboots.
This commit is contained in:
Martynas Pumputis authored and Martynas Pumputis committed 2016-08-11 12:01:35 +01:00
1 parent 4157d9298d
commit c2083cbce0
2 files changed
+37 -19

No files matched your search

+10 -6
View File
@@ -49,12 +49,16 @@ When the router is launched on a host, it derives its peer name in order of pref
* From the command line, where the user is responsible for uniqueness and
stability
* From the BIOS product UUID, which is generally stable across
restarts and unique across different physical hardware and certain
cloned VMs
* From the hypervisor UUID, which is generally stable across restarts
and unique across VMs which do not provide access to a BIOS product
UUID
* From the concatenated result of any of the following:
* The unique machine ID, which is generated either by [systemd](https://www.freedesktop.org/software/systemd/man/machine-id.html)
or [D-Bus](https://dbus.freedesktop.org/doc/dbus-uuidgen.1.html) and is
practically stable across restarts unless a user re-generates it.
* The BIOS product UUID, which is generally stable across
restarts and unique across different physical hardware and certain
cloned VMs
* The hypervisor UUID, which is generally stable across restarts
and unique across VMs which do not provide access to a BIOS product
UUID
* From a random value, practically unique across different physical
hardware and cloned VMs but not stable across restarts