diff --git a/neutron/db/db_base_plugin_v2.py b/neutron/db/db_base_plugin_v2.py index 714d189e81f..b801fd57a38 100644 --- a/neutron/db/db_base_plugin_v2.py +++ b/neutron/db/db_base_plugin_v2.py @@ -1260,7 +1260,7 @@ class NeutronDbPluginV2(neutron_plugin_base_v2.NeutronPluginBaseV2, s['dns_nameservers'], s['host_routes'], s['allocation_pools']) - if network.external: + if hasattr(network, 'external') and network.external: self._update_router_gw_ports(context, subnet['id'], subnet['network_id']) @@ -1286,7 +1286,7 @@ class NeutronDbPluginV2(neutron_plugin_base_v2.NeutronPluginBaseV2, s['dns_nameservers'], s['host_routes'], s['allocation_pools']) - if network.external: + if hasattr(network, 'external') and network.external: self._update_router_gw_ports(context, subnet['id'], subnet['network_id'])