'Check if available storage ports exist.'

def check_ports_info(self):

    if (self.conf.vsp_target_ports and (not self.storage_info['controller_ports'])):
        msg = utils.output_log(MSG.RESOURCE_NOT_FOUND, resource='Target    ports')
        raise exception.VSPError(msg)
    if (self.conf.vsp_compute_target_ports and (not self.storage_info['compute_ports'])):
        msg = utils.output_log(MSG.RESOURCE_NOT_FOUND, resource='Compute    target    ports')
        raise exception.VSPError(msg)
    utils.output_log(MSG.SET_CONFIG_VALUE, object='target    port    list', value=self.storage_info['controller_ports'])
    utils.output_log(MSG.SET_CONFIG_VALUE, object='compute    target    port    list', value=self.storage_info['compute_ports'])
