]> git.proxmox.com Git - ovs.git/commitdiff
utilities: Fix conntrack flush command
authorGreg Rose <gvrose8192@gmail.com>
Fri, 29 Jun 2018 18:18:14 +0000 (11:18 -0700)
committerJustin Pettit <jpettit@ovn.org>
Fri, 29 Jun 2018 22:57:47 +0000 (15:57 -0700)
This patch fixes two problems.

1) The 'action "ovs-appctl dpctl/flush-conntrack"' does not do
anything because a command does not follow it.

2) Even after adding the command it still doesn't work - it must be
done before the stop_forwarding command.

In addition, make the message more human friendly.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
utilities/ovs-lib.in

index 6a958cbdf927c19f67e472e64f4e4abf3cad2517..92f98ad9228af4eb7b9c20bfc6c5837316bfd81e 100644 (file)
@@ -605,6 +605,7 @@ force_reload_kmod () {
     stop_ovsdb
     start_ovsdb || return 1
 
+    action "Flush old conntrack entries" ovs-appctl dpctl/flush-conntrack
     stop_forwarding
 
     if action "Saving interface configuration" save_interfaces; then
@@ -620,7 +621,6 @@ force_reload_kmod () {
     for dp in `ovs-dpctl dump-dps`; do
         action "Removing datapath: $dp" ovs-dpctl del-dp "$dp"
     done
-    action "ovs-appctl dpctl/flush-conntrack"
 
     ovs_kmod_ctl remove