fix to accept space separated string for ovs_options for dpdk bonds (#631)
Co-authored-by: jsherwood <jsherwood@samaritan.org>
Co-authored-by: Mohammed Naser <mnaser@vexxhost.com>
diff --git a/charts/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl b/charts/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl
index 0ac9725..883b71a 100644
--- a/charts/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl
+++ b/charts/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl
@@ -25,8 +25,8 @@
chown neutron: ${OVS_CTL}
function get_dpdk_config_value {
- values=$1
- filter=$2
+ values=${@:1:$#-1}
+ filter=${!#}
value=$(echo ${values} | jq -r ${filter})
if [[ "${value}" == "null" ]]; then
echo ""
@@ -360,7 +360,7 @@
ovs-vsctl --db=unix:${OVS_SOCKET} set Bridge "${dpdk_bridge}" other_config:update_config=false
ovs-vsctl --db=unix:${OVS_SOCKET} --may-exist add-bond "${dpdk_bridge}" "${bond_name}" \
${nic_name_str} \
- "${ovs_options}" ${dev_args_str}
+ ${ovs_options} ${dev_args_str}
fi
done < "/tmp/bonds_array"