diff --git a/src/networkd.c b/src/networkd.c index ee76eae56..7ddd30568 100644 --- a/src/networkd.c +++ b/src/networkd.c @@ -353,7 +353,7 @@ write_bond_parameters(const NetplanNetDefinition* def, GString* s) if (def->bond_params.selection_logic) g_string_append_printf(params, "\nAdSelect=%s", def->bond_params.selection_logic); if (def->bond_params.all_members_active) - g_string_append_printf(params, "\nAllSlavesActive=%d", def->bond_params.all_members_active); /* wokeignore:rule=slave */ + g_string_append_printf(params, "\nAllSlavesActive=%d", def->bond_params.all_members_active); /* wokeignore:rule=slave */ if (def->bond_params.arp_interval) { g_string_append(params, "\nARPIntervalSec="); if (interval_has_suffix(def->bond_params.arp_interval)) @@ -393,7 +393,7 @@ write_bond_parameters(const NetplanNetDefinition* def, GString* s) g_string_append_printf(params, "\nGratuitousARP=%d", def->bond_params.gratuitous_arp); /* TODO: add unsolicited_na, not documented as supported by NM. */ if (def->bond_params.packets_per_member) - g_string_append_printf(params, "\nPacketsPerSlave=%d", def->bond_params.packets_per_member); /* wokeignore:rule=slave */ + g_string_append_printf(params, "\nPacketsPerSlave=%d", def->bond_params.packets_per_member); /* wokeignore:rule=slave */ if (def->bond_params.primary_reselect_policy) g_string_append_printf(params, "\nPrimaryReselectPolicy=%s", def->bond_params.primary_reselect_policy); if (def->bond_params.resend_igmp) @@ -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) diff --git a/tests/generator/test_common.py b/tests/generator/test_common.py index fda6d298c..c013010c4 100644 --- a/tests/generator/test_common.py +++ b/tests/generator/test_common.py @@ -482,7 +482,7 @@ def test_dhcp_critical_true(self): LinkLocalAddressing=ipv6 [DHCP] -CriticalConnection=true +KeepConfiguration=true '''}) def test_dhcp_identifier_mac(self):