]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Treat invalid namespace call
authorGary Kotton <gkotton@redhat.com>
Fri, 5 Oct 2012 10:07:13 +0000 (06:07 -0400)
committerGary Kotton <gkotton@redhat.com>
Fri, 5 Oct 2012 10:07:13 +0000 (06:07 -0400)
Fixes bug 1060559

Change-Id: I29250100416b87f55781fb7e97339f6d3761513f

quantum/agent/l3_agent.py

index 526a67610b31d17c73e6c353bc7755b218a3a366..26a56fc71f3eb49cb238eb9737f467b67b470768 100644 (file)
@@ -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