@@ -353,7 +353,7 @@ write_bond_parameters(const NetplanNetDefinition* def, GString* s)
353353 if (def -> bond_params .selection_logic )
354354 g_string_append_printf (params , "\nAdSelect=%s" , def -> bond_params .selection_logic );
355355 if (def -> bond_params .all_members_active )
356- g_string_append_printf (params , "\nAllSlavesActive=%d" , def -> bond_params .all_members_active ); /* wokeignore:rule=slave */
356+ g_string_append_printf (params , "\nAllSlavesActive=%d" , def -> bond_params .all_members_active ); /* wokeignore:rule=slave */
357357 if (def -> bond_params .arp_interval ) {
358358 g_string_append (params , "\nARPIntervalSec=" );
359359 if (interval_has_suffix (def -> bond_params .arp_interval ))
@@ -393,7 +393,7 @@ write_bond_parameters(const NetplanNetDefinition* def, GString* s)
393393 g_string_append_printf (params , "\nGratuitousARP=%d" , def -> bond_params .gratuitous_arp );
394394 /* TODO: add unsolicited_na, not documented as supported by NM. */
395395 if (def -> bond_params .packets_per_member )
396- g_string_append_printf (params , "\nPacketsPerSlave=%d" , def -> bond_params .packets_per_member ); /* wokeignore:rule=slave */
396+ g_string_append_printf (params , "\nPacketsPerSlave=%d" , def -> bond_params .packets_per_member ); /* wokeignore:rule=slave */
397397 if (def -> bond_params .primary_reselect_policy )
398398 g_string_append_printf (params , "\nPrimaryReselectPolicy=%s" , def -> bond_params .primary_reselect_policy );
399399 if (def -> bond_params .resend_igmp )
@@ -916,13 +916,13 @@ netplan_netdef_write_network_file(
916916 }
917917 }
918918
919- if (def -> dhcp4 || def -> dhcp6 || def -> critical ) {
919+ if (def -> dhcp4 || def -> dhcp6 || def -> keep_configuration ) {
920920 /* NetworkManager compatible route metrics */
921921 g_string_append (network , "\n[DHCP]\n" );
922922 }
923923
924- if (def -> critical )
925- g_string_append_printf (network , "CriticalConnection=true \n" );
924+ if (def -> keep_configuration )
925+ g_string_append_printf (network , "KeepConfiguration=%s \n" , def -> keep_configuration );
926926
927927 if (def -> dhcp4 || def -> dhcp6 ) {
928928 if (def -> dhcp_identifier )
0 commit comments