def get_ports_from_devices(self, context, devices):
        return [self.get_port_from_device(context, device)
                for device in devices]
Bulk method of get_port_from_device.
dataset/ETHPy150Open openstack/neutron/neutron/db/securitygroups_rpc_base.py/SecurityGroupServerRpcMixin.get_ports_from_devices