ifcfg: fix ACCEPT_ALL_MAC_ADDRESSES for virtual interfaces

The rh-ifcfg plugin was missing the writting code for
ACCEPT_ALL_MAC_ADDRESSES property in virtual interfaces.

https://bugzilla.redhat.com/show_bug.cgi?id=1942331

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>

Fixes: d946aa0c50 ('wired-setting: add support to accept-all-mac-addresses')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/846
This commit is contained in:
Fernando Fernandez Mancera
2021-05-10 15:57:31 +02:00
committed by Thomas Haller
parent 3839db5191
commit eee4332e8f

View File

@@ -1394,6 +1394,10 @@ write_wired_for_virtual(NMConnection *connection, shvarFile *ifcfg)
"GENERATE_MAC_ADDRESS_MASK",
nm_setting_wired_get_generate_mac_address_mask(s_wired));
svSetValueTernary(ifcfg,
"ACCEPT_ALL_MAC_ADDRESSES",
nm_setting_wired_get_accept_all_mac_addresses(s_wired));
mtu = nm_setting_wired_get_mtu(s_wired);
svSetValueInt64_cond(ifcfg, "MTU", mtu != 0, mtu);
}