diff options
author | Thomas Haller <thaller@redhat.com> | 2018-11-02 12:07:09 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-11-13 19:09:34 +0100 |
commit | 7ffbf7127603a935236785f6a59a104583194df4 (patch) | |
tree | 082e275a7469ffeac7e81da9b9eaefbfe33a3dc0 /src/nm-core-utils.h | |
parent | ab314065b8928c12347b40b25f200020c59fcbda (diff) | |
download | NetworkManager-7ffbf7127603a935236785f6a59a104583194df4.tar.gz |
all: add "${MAC}" substituion for "connection.stable-id"
We already had "${DEVICE}" which uses the interface name.
In times of predictable interface naming, that works well.
It allows the user to generate IDs per device which don't
change when the hardware is replaced.
"${MAC}" is similar, except that is uses the permanent MAC
address of the device. The substitution results in the empty
word, if the device has no permanent MAC address (like software
devices).
The per-device substitutions "${DEVICE}" and "${MAC}" are especially
interesting with "connection.multi-connect=multiple".
Diffstat (limited to 'src/nm-core-utils.h')
-rw-r--r-- | src/nm-core-utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nm-core-utils.h b/src/nm-core-utils.h index 0eedc8cabb..e59ef41d11 100644 --- a/src/nm-core-utils.h +++ b/src/nm-core-utils.h @@ -335,6 +335,7 @@ typedef enum { NMUtilsStableType nm_utils_stable_id_parse (const char *stable_id, const char *deviceid, + const char *hwaddr, const char *bootid, const char *uuid, char **out_generated); |