From a05cbd1c541c75a4a178c40cb7a764b32d318327 Mon Sep 17 00:00:00 2001 From: Abdul Karim Date: Thu, 7 Dec 2023 14:40:35 +0000 Subject: [PATCH] ncm-network: convert arp_ip_target bonding option to string for nmstate nmstate backend change to convert bonding option arp_ip_target to string. closes #1639 --- ncm-network/src/main/perl/network.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ncm-network/src/main/perl/network.pm b/ncm-network/src/main/perl/network.pm index 51706023a4..a2ad136ef4 100755 --- a/ncm-network/src/main/perl/network.pm +++ b/ncm-network/src/main/perl/network.pm @@ -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