[ovs-dev] [PATCH 2/3] ovn-controller-vtep: Call binding_cleanup() before gateway_cleanup().

Alex Wang alexw at nicira.com
Tue Aug 18 06:29:32 UTC 2015


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 at nicira.com>
---
 ovn/controller-vtep/ovn-controller-vtep.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ovn/controller-vtep/ovn-controller-vtep.c b/ovn/controller-vtep/ovn-controller-vtep.c
index 9a3f03b..ff25319 100644
--- a/ovn/controller-vtep/ovn-controller-vtep.c
+++ b/ovn/controller-vtep/ovn-controller-vtep.c
@@ -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();
         }
-- 
1.7.9.5




More information about the dev mailing list