From d2deb2b2dc2bd5317a0efb4b5251cf278f6d934a Mon Sep 17 00:00:00 2001 From: "rajesh.kudaka" Date: Mon, 27 Jul 2020 08:34:51 -0500 Subject: [PATCH] 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 --- neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl | 3 --- 1 file changed, 3 deletions(-) diff --git a/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl b/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl index 854acb3e8a..ce8247327a 100644 --- a/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl +++ b/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl @@ -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}