Skip to content

Commit c97c476

Browse files
chr4slyon
authored andcommitted
networkd: replace deprecated CriticalConnection= by KeepConfiguration=
1 parent ba06ef5 commit c97c476

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/networkd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ netplan_netdef_write_network_file(
922922
}
923923

924924
if (def->critical)
925-
g_string_append_printf(network, "CriticalConnection=true\n");
925+
g_string_append_printf(network, "KeepConfiguration=true\n");
926926

927927
if (def->dhcp4 || def->dhcp6) {
928928
if (def->dhcp_identifier)

tests/generator/test_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def test_dhcp_critical_true(self):
482482
LinkLocalAddressing=ipv6
483483
484484
[DHCP]
485-
CriticalConnection=true
485+
KeepConfiguration=true
486486
'''})
487487

488488
def test_dhcp_identifier_mac(self):

0 commit comments

Comments
 (0)