mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 14:48:00 +02:00
ifcfg-rh: for ethernet profiles write TYPE before other wired settings
This commit is contained in:
parent
6f3f25cead
commit
0956354bc5
7 changed files with 8 additions and 9 deletions
|
|
@ -1162,9 +1162,6 @@ write_wired_setting_impl(NMSettingWired *s_wired, shvarFile *ifcfg, gboolean is_
|
|||
svSetValueStr(ifcfg, "OPTIONS", tmp->str);
|
||||
}
|
||||
|
||||
if (!is_virtual)
|
||||
svSetValueStr(ifcfg, "TYPE", TYPE_ETHERNET);
|
||||
|
||||
svSetValueTernary(ifcfg,
|
||||
"ACCEPT_ALL_MAC_ADDRESSES",
|
||||
nm_setting_wired_get_accept_all_mac_addresses(s_wired));
|
||||
|
|
@ -1185,6 +1182,8 @@ write_wired_setting(NMConnection *connection, shvarFile *ifcfg, GError **error)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
svSetValueStr(ifcfg, "TYPE", TYPE_ETHERNET);
|
||||
|
||||
write_wired_setting_impl(s_wired, ifcfg, FALSE);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
HWADDR=00:22:15:59:62:97
|
||||
TYPE=Ethernet
|
||||
HWADDR=00:22:15:59:62:97
|
||||
BRIDGING_OPTS="priority=28 hairpin_mode=1"
|
||||
NAME="System test-bridge-component"
|
||||
UUID=${UUID}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
HWADDR=00:22:15:59:62:97
|
||||
TYPE=Ethernet
|
||||
HWADDR=00:22:15:59:62:97
|
||||
NAME="System test-bridge-component"
|
||||
UUID=${UUID}
|
||||
DEVICE=eth0
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
HWADDR=00:11:22:33:44:EE
|
||||
TYPE=Ethernet
|
||||
HWADDR=00:11:22:33:44:EE
|
||||
KEY_MGMT=IEEE8021X
|
||||
IEEE_8021X_EAP_METHODS=PEAP
|
||||
IEEE_8021X_IDENTITY="Jara Cimrman"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
TYPE=Ethernet
|
||||
HWADDR=31:33:33:37:BE:CD
|
||||
MTU=1492
|
||||
TYPE=Ethernet
|
||||
BRIDGING_OPTS="priority=50 path_cost=33"
|
||||
BRIDGE_PORT_VLANS="1 untagged,2 pvid,4-4094 untagged"
|
||||
NAME="Test Write Bridge Component"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
TYPE=Ethernet
|
||||
HWADDR=31:33:33:37:BE:CD
|
||||
MTU=1492
|
||||
TYPE=Ethernet
|
||||
PROXY_METHOD=none
|
||||
BROWSER_ONLY=no
|
||||
BOOTPROTO=none
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
HWADDR=00:16:41:11:22:33
|
||||
TYPE=Ethernet
|
||||
HWADDR=00:16:41:11:22:33
|
||||
PROXY_METHOD=none
|
||||
BROWSER_ONLY=no
|
||||
BOOTPROTO=dhcp
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue