Skip to content

Commit 83c2900

Browse files
Wei Tieunclejack
Wei Tie
authored andcommitted
test/systemtests/kubeadm_test: clean up flow table
1 parent 78c1aa4 commit 83c2900

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/systemtests/kubeadm_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,12 @@ func (k *kubePod) cleanupSlave() {
612612
return
613613
}
614614

615+
flowCleanupCmd := `ovs-vsctl list-br | grep contiv | xargs -rt -I % ovs-ofctl --protocols=OpenFlow13 del-flows %`
616+
_, err = k.podExec(podName, flowCleanupCmd, "kube-system")
617+
if err != nil {
618+
logrus.Errorf("ovs flow cleanup failed with err: %+v", err)
619+
}
620+
615621
ovsCleanupCmd := `ovs-vsctl list-br | grep contiv | xargs -rt -I % ovs-vsctl del-br %`
616622
_, err = k.podExec(podName, ovsCleanupCmd, "kube-system")
617623
if err != nil {

0 commit comments

Comments
 (0)