'Return a list of ports corresponding to the specified connector.'

def get_target_ports(self, connector):

    if (('ip' in connector) and (connector['ip'] == CONF.my_ip)):
        return self.storage_info['controller_ports']
    return (self.storage_info['compute_ports'] or self.storage_info['controller_ports'])
