From 387005098bf0f877aeffdb45f8e229ccf34f33ee Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Tue, 23 Mar 2021 07:57:46 -0400 Subject: [PATCH] Docs: update 'mac' to suggest user using quotation mark Signed-off-by: Wen Liang --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 93ccc39..0648165 100644 --- a/README.md +++ b/README.md @@ -288,7 +288,11 @@ By default, profiles are created with autoconnect enabled. The `mac` address is optional and restricts the profile to be usable only on devices with the given MAC address. `mac` is only allowed for `type` `ethernet` or `infiniband` to match a non-virtual device with the -profile. +profile. The value of the `mac` address needs to be specified in hexadecimal notation +using colons (for example: `mac: "00:00:5e:00:53:5d"`). To avoid YAML parsing mac +addresses as integers in sexagesimal (base 60) notation (see +), it is recommended to always quote the value +with double quotes and sometimes it is necessary. - For `NetworkManager`, `mac` is the permanent MAC address, `ethernet.mac-address`. @@ -634,7 +638,7 @@ network_connections: #persistent_state: present # default type: ethernet autoconnect: yes - mac: 00:00:5e:00:53:5d + mac: "00:00:5e:00:53:5d" ip: dhcp4: yes ```