]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ovn-controller-vtep: Call binding_cleanup() before gateway_cleanup().
authorAlex Wang <alexw@nicira.com>
Tue, 18 Aug 2015 06:09:57 +0000 (23:09 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 18 Aug 2015 16:57:22 +0000 (09:57 -0700)
Otherwise, binding_cleanup() will be a no-op since all related chassis
entries are deleted in gateway_cleanup().

Found by inspection.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
ovn/controller-vtep/ovn-controller-vtep.c

index 9a3f03be069e24cad1aa05e8bb85e7d2c391cd7e..ff25319140c04a71848cca670de1072b89cd02e6 100644 (file)
@@ -124,8 +124,8 @@ main(int argc, char *argv[])
 
         /* Run all of the cleanup functions, even if one of them returns false.
          * We're done if all of them return true. */
-        done = gateway_cleanup(&ctx);
-        done = binding_cleanup(&ctx) && done;
+        done = binding_cleanup(&ctx);
+        done = gateway_cleanup(&ctx) && done;
         if (done) {
             poll_immediate_wake();
         }