'Return security group information for requested devices.
:params devices: list of devices
:returns:
sg_info{
\'security_groups\': {sg_id: [rule1, rule2]}
\'sg_member_ips\': {sg_id: {\'IPv4\': set(), \'IPv6\': set()}}
\'devices\': {device_id: {device_info}}
Note that sets are serialized into lists by rpc code.'

def security_group_info_for_devices(self, context, **kwargs):

    devices_info = kwargs.get('devices')
    ports = self._get_devices_info(context, devices_info)
    return self.plugin.security_group_info_for_ports(context, ports)
