Skip to content

Commit

Permalink
ncm-network: convert arp_ip_target bonding option to string for nmstate
Browse files Browse the repository at this point in the history
nmstate backend change to convert bonding option arp_ip_target to string.

closes quattor#1639
  • Loading branch information
Abdul Karim authored and Abdul Karim committed Dec 8, 2023
1 parent fe8595a commit a05cbd1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ncm-network/src/main/perl/network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,12 @@ sub process_network
$la->{options} ||= {};
$la = $la->{options};
}
$la->{$opt} = $opts->{$opt};
# nmstate config requires arp_ip_target as comma seperated string
if ($opt eq 'arp_ip_target') {
$la->{$opt} = join(',', @{$opts->{$opt}});
} else {
$la->{$opt} = $opts->{$opt};
}
}
}
# TODO for briging_opts
Expand Down

0 comments on commit a05cbd1

Please sign in to comment.