raise vimconn.VimConnConnectionException(type(e).__name__ + ": " + str(e))
- def get_availability_zones_list(self):
- """Obtain AvailabilityZones from AWS"""
- try:
- self._reload_connection()
- az_list = []
-
- for az in self.conn.get_all_zones():
- az_list.append(az.name)
-
- return az_list
- except Exception as e:
- self.format_vimconn_exception(e)
-
def get_tenant_list(self, filter_dict={}):
"""Obtain tenants of VIM
filter_dict dictionary that can contain the following keys:
+ interface.private_ip_address
)
else:
- interface_dict[
- "ip_address"
- ] = interface.private_ip_address
+ interface_dict["ip_address"] = (
+ interface.private_ip_address
+ )
instance_dict["interfaces"].append(interface_dict)
except Exception as e: