'Returns a dictionary of relevant autosupport information.
Currently returned fields are:
model -- E-series model name
serial_numbers -- Serial number for each controller
firmware_version -- Version of active firmware
chassis_sn -- Serial number for whole chassis'

def get_asup_info(self):

    asup_info = {}
    controllers = self.list_hardware_inventory().get('controllers')
    if controllers:
        asup_info['model'] = controllers[0].get('modelName', 'unknown')
        serial_numbers = [value['serialNumber'].rstrip() for (__, value) in enumerate(controllers)]
        serial_numbers.sort()
        for (index, value) in enumerate(serial_numbers):
            if (not value):
                serial_numbers[index] = 'unknown'
        asup_info['serial_numbers'] = serial_numbers
    else:
        asup_info['model'] = 'unknown'
        asup_info['serial_numbers'] = ['unknown', 'unknown']
    system_info = self.list_storage_system()
    if system_info:
        asup_info['firmware_version'] = system_info['fwVersion']
        asup_info['chassis_sn'] = system_info['chassisSerialNumber']
    else:
        asup_info['firmware_version'] = 'unknown'
        asup_info['chassis_sn'] = 'unknown'
    return asup_info
