Fix in admin_state_up check function
Change-Id: If221cf5546e6432b31dd11ec322ddd4b69d161b2 Closes-Bug: #1291103 Signed-off-by: Fawad Khaliq <fawad@plumgrid.com>
This commit is contained in:
@@ -553,16 +553,9 @@ class NeutronPluginPLUMgridV2(db_base_plugin_v2.NeutronDbPluginV2,
|
|||||||
return port
|
return port
|
||||||
|
|
||||||
def _network_admin_state(self, network):
|
def _network_admin_state(self, network):
|
||||||
try:
|
if network["network"].get("admin_state_up") is False:
|
||||||
if network["network"].get("admin_state_up"):
|
LOG.warning("Networks with admin_state_up=False are not "
|
||||||
network_name = network["network"]["name"]
|
"supported by PLUMgrid plugin yet.")
|
||||||
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)
|
|
||||||
return network
|
return network
|
||||||
|
|
||||||
def _allocate_pools_for_subnet(self, context, subnet):
|
def _allocate_pools_for_subnet(self, context, subnet):
|
||||||
|
|||||||
Reference in New Issue
Block a user