NSX|v AdminUtil ignore irrelevant orphaned networks
If the backend network name does not contain a uuid, it is not a neutron network. Change-Id: Iecfc9e4c627057054eba455e618fc02680b0cff3
This commit is contained in:
parent
d47dde07b5
commit
b0fde1cdb6
@ -164,7 +164,10 @@ def list_orphaned_networks(resource, event, trigger, **kwargs):
|
||||
for net in backend_networks:
|
||||
moref = net['moref']
|
||||
backend_name = net['name']
|
||||
if backend_name.startswith('edge-') or net['type'] == 'Network':
|
||||
# Decide if this is a neutron network by its name (which should always
|
||||
# contain the net-id), and type
|
||||
if (backend_name.startswith('edge-') or len(backend_name) < 36
|
||||
or net['type'] == 'Network'):
|
||||
# This is not a neutron network
|
||||
continue
|
||||
# get the list of neutron networks with this moref
|
||||
|
Loading…
x
Reference in New Issue
Block a user