Skip to content

Commit

Permalink
networkd: replace deprecated CriticalConnection= by KeepConfiguration=
Browse files Browse the repository at this point in the history
  • Loading branch information
chr4 authored and slyon committed Nov 29, 2023
1 parent ba06ef5 commit c97c476
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/networkd.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ netplan_netdef_write_network_file(
}

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

if (def->dhcp4 || def->dhcp6) {
if (def->dhcp_identifier)
Expand Down
2 changes: 1 addition & 1 deletion tests/generator/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def test_dhcp_critical_true(self):
LinkLocalAddressing=ipv6
[DHCP]
CriticalConnection=true
KeepConfiguration=true
'''})

def test_dhcp_identifier_mac(self):
Expand Down

0 comments on commit c97c476

Please sign in to comment.