Skip to content

Commit 0a0d254

Browse files
袁又袁yuanliu
authored andcommitted
fix encap_ip will be lost when we restart the ovs-dpdk node (#2543)
Co-authored-by: yuanliu <yuanliu@cmss.chinamobile.com>
1 parent 919c8ee commit 0a0d254

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dist/images/start-ovs-dpdk-v2.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ esac
103103

104104
ovs-vsctl set port ${DPDK_TUNNEL_IFACE} tag=${VLAN_TAG}
105105

106-
ip addr add ${ENCAP_IP} dev ${DPDK_TUNNEL_IFACE}
107106
fi
108107

109108
ip link set ${DPDK_TUNNEL_IFACE} up
110109

110+
ip addr replace ${ENCAP_IP} dev ${DPDK_TUNNEL_IFACE}
111+
111112
ovs-vsctl --may-exist add-br br-int \
112113
-- set Bridge br-int datapath_type=netdev \
113114
-- br-set-external-id br-int bridge-id br-int \

0 commit comments

Comments
 (0)