From: Gary Kotton Date: Fri, 5 Oct 2012 10:07:13 +0000 (-0400) Subject: Treat invalid namespace call X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8eb7ca51c0bfda334eda8a25d599aa1d9cd21c22;p=openstack-build%2Fneutron-build.git Treat invalid namespace call Fixes bug 1060559 Change-Id: I29250100416b87f55781fb7e97339f6d3761513f --- diff --git a/quantum/agent/l3_agent.py b/quantum/agent/l3_agent.py index 526a67610..26a56fc71 100644 --- a/quantum/agent/l3_agent.py +++ b/quantum/agent/l3_agent.py @@ -126,7 +126,8 @@ class L3NATAgent(object): auth_region=self.conf.auth_region ) - self._destroy_all_router_namespaces() + if self.conf.use_namespaces: + self._destroy_all_router_namespaces() def _destroy_all_router_namespaces(self): """Destroy all router namespaces on the host to eliminate