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:
parent
fa91a256e1
commit
d2deb2b2dc
@ -197,8 +197,6 @@ function process_dpdk_nics {
|
|||||||
|
|
||||||
bind_dpdk_nic ${target_driver} "${dpdk_pci_id}"
|
bind_dpdk_nic ${target_driver} "${dpdk_pci_id}"
|
||||||
|
|
||||||
ovs-vsctl --db=unix:${OVS_SOCKET} --if-exists del-port ${port_name}
|
|
||||||
|
|
||||||
dpdk_options=""
|
dpdk_options=""
|
||||||
ofport_request=$(get_dpdk_config_value ${nic} '.ofport_request')
|
ofport_request=$(get_dpdk_config_value ${nic} '.ofport_request')
|
||||||
if [ -n "${ofport_request}" ]; then
|
if [ -n "${ofport_request}" ]; then
|
||||||
@ -331,7 +329,6 @@ function process_dpdk_bonds {
|
|||||||
fi
|
fi
|
||||||
done < /tmp/nics_array
|
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}" \
|
ovs-vsctl --db=unix:${OVS_SOCKET} --may-exist add-bond "${dpdk_bridge}" "${bond_name}" \
|
||||||
${nic_name_str} \
|
${nic_name_str} \
|
||||||
"${ovs_options}" ${dev_args_str}
|
"${ovs_options}" ${dev_args_str}
|
||||||
|
Loading…
Reference in New Issue
Block a user