Merge "NSX|V AZ validation message"
This commit is contained in:
commit
e8b2397926
@ -214,7 +214,9 @@ class NsxVAvailabilityZones(common_az.ConfiguredAvailabilityZones):
|
|||||||
"""
|
"""
|
||||||
resources = set()
|
resources = set()
|
||||||
for az in self.list_availability_zones_objects():
|
for az in self.list_availability_zones_objects():
|
||||||
|
if az.resource_pool:
|
||||||
resources.add(az.resource_pool)
|
resources.add(az.resource_pool)
|
||||||
|
if az.datastore_id:
|
||||||
resources.add(az.datastore_id)
|
resources.add(az.datastore_id)
|
||||||
if az.ha_datastore_id:
|
if az.ha_datastore_id:
|
||||||
resources.add(az.ha_datastore_id)
|
resources.add(az.ha_datastore_id)
|
||||||
|
@ -4312,7 +4312,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
|||||||
# Add the availability zones resources
|
# Add the availability zones resources
|
||||||
az_resources = self._availability_zones_data.get_inventory()
|
az_resources = self._availability_zones_data.get_inventory()
|
||||||
for res in az_resources:
|
for res in az_resources:
|
||||||
inventory.append((res, 'availability_zones'))
|
inventory.append((res, 'availability_zone ' + res))
|
||||||
|
|
||||||
if cfg.CONF.nsxv.use_nsx_policies:
|
if cfg.CONF.nsxv.use_nsx_policies:
|
||||||
# if use_nsx_policies=True, the default policy must be defined
|
# if use_nsx_policies=True, the default policy must be defined
|
||||||
|
Loading…
Reference in New Issue
Block a user