]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix in admin_state_up check function
authorFawad Khaliq <fawad@plumgrid.com>
Wed, 12 Mar 2014 00:33:30 +0000 (17:33 -0700)
committerFawad Khaliq <fawad@plumgrid.com>
Thu, 13 Mar 2014 21:02:06 +0000 (14:02 -0700)
Change-Id: If221cf5546e6432b31dd11ec322ddd4b69d161b2
Closes-Bug: #1291103
Signed-off-by: Fawad Khaliq <fawad@plumgrid.com>
neutron/plugins/plumgrid/plumgrid_plugin/plumgrid_plugin.py

index 12f8e31fa366c06ad9ae1694d9b0242d190f86e9..a01d833bd5e78d8bf8f421d110c5e7191d0c88e0 100644 (file)
@@ -553,16 +553,9 @@ class NeutronPluginPLUMgridV2(db_base_plugin_v2.NeutronDbPluginV2,
         return port
 
     def _network_admin_state(self, network):
-        try:
-            if network["network"].get("admin_state_up"):
-                network_name = network["network"]["name"]
-                if network["network"]["admin_state_up"] is False:
-                    LOG.warning(_("Network with admin_state_up=False are not "
-                                  "supported yet by this plugin. Ignoring "
-                                  "setting for network %s"), network_name)
-        except Exception:
-            err_message = _("Network Admin State Validation Failed: ")
-            raise plum_excep.PLUMgridException(err_msg=err_message)
+        if network["network"].get("admin_state_up") is False:
+            LOG.warning("Networks with admin_state_up=False are not "
+                        "supported by PLUMgrid plugin yet.")
         return network
 
     def _allocate_pools_for_subnet(self, context, subnet):