'Check requested networks for any SR-IOV port request.
Create a PCI request object for each SR-IOV port, and add it to the
pci_requests object that contains a list of PCI request object.'

def create_pci_requests_for_sriov_ports(self, context, pci_requests, requested_networks):

    if ((not requested_networks) or requested_networks.no_allocate):
        return
    neutron = get_client(context, admin=True)
    for request_net in requested_networks:
        phynet_name = None
        vnic_type = network_model.VNIC_TYPE_NORMAL
        if request_net.port_id:
            (vnic_type, phynet_name) = self._get_port_vnic_info(context, neutron, request_net.port_id)
        pci_request_id = None
        if (vnic_type in network_model.VNIC_TYPES_SRIOV):
            spec = {pci_request.PCI_NET_TAG: phynet_name}
            dev_type = pci_request.DEVICE_TYPE_FOR_VNIC_TYPE.get(vnic_type)
            if dev_type:
                spec[pci_request.PCI_DEVICE_TYPE_TAG] = dev_type
            request = objects.InstancePCIRequest(count=1, spec=[spec], request_id=uuidutils.generate_uuid())
            pci_requests.requests.append(request)
            pci_request_id = request.request_id
        request_net.pci_request_id = pci_request_id
