Remove delete port commands in ovs agent init

This commit removes 'del-port' commands in neutron ovs
agent init script. Since, 'add-bond' command allows
modification of the existing options, the commands
being removed are not required. This also allows to
avoid disruptions in ovs caused by deleting ports on
restart.

Change-Id: I7201b87da7b20e1ca8efedf5d86a23123ccfa150
This commit is contained in:
rajesh.kudaka 2020-07-27 08:34:51 -05:00 committed by Kudaka Poorna Rajesh
parent fa91a256e1
commit d2deb2b2dc

View File

@ -197,8 +197,6 @@ function process_dpdk_nics {
bind_dpdk_nic ${target_driver} "${dpdk_pci_id}"
ovs-vsctl --db=unix:${OVS_SOCKET} --if-exists del-port ${port_name}
dpdk_options=""
ofport_request=$(get_dpdk_config_value ${nic} '.ofport_request')
if [ -n "${ofport_request}" ]; then
@ -331,7 +329,6 @@ function process_dpdk_bonds {
fi
done < /tmp/nics_array
ovs-vsctl --db=unix:${OVS_SOCKET} --if-exists del-port "${bond_name}"
ovs-vsctl --db=unix:${OVS_SOCKET} --may-exist add-bond "${dpdk_bridge}" "${bond_name}" \
${nic_name_str} \
"${ovs_options}" ${dev_args_str}