mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 14:10:36 +01:00
config: allow fallback to fake permanent address for default wired connections
The default wired connection is already generated allowing the use of a fake address, but for the state file and the device matching specs only non-fake addresses are used. Let's allow fake addresses consistently, so that default wired connections work properly in containers (where the veth address is considered fake) as well. Also, it would really be a better idea to use ifnames everywhere instead, but that would change the format of the state file.
This commit is contained in:
parent
afe123c3a1
commit
bcb685c4cb
2 changed files with 2 additions and 2 deletions
|
|
@ -12177,7 +12177,7 @@ spec_match_list (NMDevice *self, const GSList *specs)
|
|||
}
|
||||
}
|
||||
|
||||
hw_addr_perm = nm_device_get_permanent_hw_address (self, FALSE);
|
||||
hw_addr_perm = nm_device_get_permanent_hw_address (self, TRUE);
|
||||
if (hw_addr_perm) {
|
||||
m = nm_match_spec_hwaddr (specs, hw_addr_perm);
|
||||
matched = MAX (matched, m);
|
||||
|
|
|
|||
|
|
@ -406,7 +406,7 @@ nm_config_set_no_auto_default_for_device (NMConfig *self, NMDevice *device)
|
|||
|
||||
priv = NM_CONFIG_GET_PRIVATE (self);
|
||||
|
||||
hw_address = nm_device_get_permanent_hw_address (device, FALSE);
|
||||
hw_address = nm_device_get_permanent_hw_address (device, TRUE);
|
||||
if (!hw_address)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue