From ae4b9136e5003dd1637585a578c522673161da7d Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Mon, 17 Aug 2015 23:09:57 -0700 Subject: [PATCH] ovn-controller-vtep: Call binding_cleanup() before gateway_cleanup(). 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 Acked-by: Russell Bryant --- 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 9a3f03be0..ff2531914 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(); } -- 2.39.5