Unverified Commit 16c0ed9f authored by shane's avatar shane Committed by GitHub
Browse files

fix: fip unbind can't take effect immediately when conntrack record exists (#1922)

parent 606e6f62
Showing with 3 additions and 1 deletion
+3 -1
......@@ -8,7 +8,8 @@ RUN set -ex \
iproute2 \
iptables \
iputils \
tcpdump
tcpdump \
conntrack-tools
WORKDIR /kube-ovn
COPY nat-gateway.sh /kube-ovn/
......
......@@ -159,6 +159,7 @@ function del_floating_ip() {
if [ "$?" -eq 0 ];then
exec_cmd "iptables -t nat -D EXCLUSIVE_DNAT -d $eip -j DNAT --to-destination $internalIp"
exec_cmd "iptables -t nat -D EXCLUSIVE_SNAT -s $internalIp -j SNAT --to-source $eip"
exec_cmd "conntrack -D -d $eip"
fi
done
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment