'Bulk method of get_port_from_device.
Subclasses may override this to provide better performance for DB
queries, backend calls, etc.'

def get_ports_from_devices(self, context, devices):

    return [self.get_port_from_device(context, device) for device in devices]
