)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"58ce3b9c3442ced043fbfc70bfb60caffe5415ff","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Nova change that adds a vif driver for this vif type:"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"https://review.openstack.org/#/c/262583/"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I895dab98e5e5a9369771539e51ba5c500bfe0045"},{"line_number":21,"context_line":"Related-blueprint: sriov-pf-passthrough-neutron-port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a68dd71_5c41b938","line":19,"updated":"2016-01-20 13:57:57.000000000","message":"This change is probably worth a DocImpact explaining what the new VIF type is for","commit_id":"7cf883620b583d5190f7f3c50f29f877f3b47469"},{"author":{"_account_id":5511,"name":"Nikola Dipanov","email":"ndipanov@redhat.com","username":"ndipanov"},"change_message_id":"932a9d0a29898b489cd77342516e52e877c8d03c","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Nova change that adds a vif driver for this vif type:"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"https://review.openstack.org/#/c/262583/"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I895dab98e5e5a9369771539e51ba5c500bfe0045"},{"line_number":21,"context_line":"Related-blueprint: sriov-pf-passthrough-neutron-port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a68dd71_e16217d8","line":19,"in_reply_to":"9a68dd71_5c41b938","updated":"2016-01-21 10:45:16.000000000","message":"OK","commit_id":"7cf883620b583d5190f7f3c50f29f877f3b47469"}],"neutron/plugins/ml2/drivers/mech_sriov/mech_driver/mech_driver.py":[{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"c46e8afab7cac39b4eac404853b6168c6778de47","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        \"\"\"Initialize base class for SriovNicSwitch L2 agent type."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        :param agent_type: Constant identifying agent type in agents_db"},{"line_number":73,"context_line":"        :param vif_type: Value for binding:vif_type when bound"},{"line_number":74,"context_line":"        :param vif_details: Dictionary with details for VIF driver when bound"},{"line_number":75,"context_line":"        :param supported_vnic_types: The binding:vnic_type values we can bind"},{"line_number":76,"context_line":"        :param supported_pci_vendor_info: The pci_vendor_info values to bind"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa69d971_e47b8c26","line":73,"range":{"start_line":73,"start_character":8,"end_line":73,"end_character":62},"updated":"2016-01-05 19:46:26.000000000","message":"you remove the :param vif_type comment as well","commit_id":"7d4802d9dc554ea2fae0313a4c5d358842f0e3fb"},{"author":{"_account_id":5511,"name":"Nikola Dipanov","email":"ndipanov@redhat.com","username":"ndipanov"},"change_message_id":"b3dc659dce84e609a589cd66afdcd666e62e3f7c","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        \"\"\"Initialize base class for SriovNicSwitch L2 agent type."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        :param agent_type: Constant identifying agent type in agents_db"},{"line_number":73,"context_line":"        :param vif_type: Value for binding:vif_type when bound"},{"line_number":74,"context_line":"        :param vif_details: Dictionary with details for VIF driver when bound"},{"line_number":75,"context_line":"        :param supported_vnic_types: The binding:vnic_type values we can bind"},{"line_number":76,"context_line":"        :param supported_pci_vendor_info: The pci_vendor_info values to bind"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa69d971_6abd25b6","line":73,"range":{"start_line":73,"start_character":8,"end_line":73,"end_character":62},"in_reply_to":"fa69d971_e47b8c26","updated":"2016-01-05 20:35:12.000000000","message":"Done","commit_id":"7d4802d9dc554ea2fae0313a4c5d358842f0e3fb"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"c46e8afab7cac39b4eac404853b6168c6778de47","unresolved":false,"context_lines":[{"line_number":101,"context_line":"                   \u0027network\u0027: context.network.current[\u0027id\u0027]})"},{"line_number":102,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"},{"line_number":103,"context_line":"                                        portbindings.VNIC_NORMAL)"},{"line_number":104,"context_line":"        vif_type \u003d self.vnic_type_to_vif_type.get(vnic_type,"},{"line_number":105,"context_line":"                                                  VIF_TYPE_HW_VEB)"},{"line_number":106,"context_line":"        if vnic_type not in self.supported_vnic_types:"},{"line_number":107,"context_line":"            LOG.debug(\"Refusing to bind due to unsupported vnic_type: %s\","},{"line_number":108,"context_line":"                      vnic_type)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa69d971_64bd5cb6","line":105,"range":{"start_line":104,"start_character":0,"end_line":105,"end_character":66},"updated":"2016-01-05 19:46:26.000000000","message":"this code should be after the validation below","commit_id":"7d4802d9dc554ea2fae0313a4c5d358842f0e3fb"},{"author":{"_account_id":5511,"name":"Nikola Dipanov","email":"ndipanov@redhat.com","username":"ndipanov"},"change_message_id":"b3dc659dce84e609a589cd66afdcd666e62e3f7c","unresolved":false,"context_lines":[{"line_number":101,"context_line":"                   \u0027network\u0027: context.network.current[\u0027id\u0027]})"},{"line_number":102,"context_line":"        vnic_type \u003d context.current.get(portbindings.VNIC_TYPE,"},{"line_number":103,"context_line":"                                        portbindings.VNIC_NORMAL)"},{"line_number":104,"context_line":"        vif_type \u003d self.vnic_type_to_vif_type.get(vnic_type,"},{"line_number":105,"context_line":"                                                  VIF_TYPE_HW_VEB)"},{"line_number":106,"context_line":"        if vnic_type not in self.supported_vnic_types:"},{"line_number":107,"context_line":"            LOG.debug(\"Refusing to bind due to unsupported vnic_type: %s\","},{"line_number":108,"context_line":"                      vnic_type)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa69d971_cacc516c","line":105,"range":{"start_line":104,"start_character":0,"end_line":105,"end_character":66},"in_reply_to":"fa69d971_64bd5cb6","updated":"2016-01-05 20:35:12.000000000","message":"Done","commit_id":"7d4802d9dc554ea2fae0313a4c5d358842f0e3fb"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"6a604adfc6cff40b78afcc0d82c71857e7b75283","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                     itertools.repeat(VIF_TYPE_HW_VEB))))"},{"line_number":82,"context_line":"        # NOTE(ndipanov): PF passthrough requires a different vif type"},{"line_number":83,"context_line":"        self.vnic_type_to_vif_type[portbindings.VNIC_DIRECT_PHYSICAL] \u003d ("},{"line_number":84,"context_line":"            VIF_TYPE_HOSTDEV_PHY)"},{"line_number":85,"context_line":"        self.vif_details \u003d vif_details"},{"line_number":86,"context_line":"        self.supported_network_types \u003d (p_const.TYPE_VLAN, p_const.TYPE_FLAT)"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa69d971_992f0488","line":84,"updated":"2016-01-08 07:26:18.000000000","message":"useless subjective suggestion - shorter less functional version (take only if you need to respin and feel that reads better)- :\n\nself.vic_type_for_vif_type \u003d (\n    {vtype: VIF_TYPE_HOSTDEV_PHY \n            if vtype \u003d\u003d portbindings.VNIC_DIRECT_PHYSICAL \n            else VIF_TYPE_HW_VEB for vtype in self.supported_vnic_types})","commit_id":"c1a26f74583d10b9b93c0ee7fceacf1860350713"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"3e5c90c3c51c5ac9e5c8649039b0d8dd2e692b26","unresolved":false,"context_lines":[{"line_number":103,"context_line":"                      vnic_type)"},{"line_number":104,"context_line":"            return"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        vif_type \u003d self.vnic_type_for_vif_type.get(vnic_type,"},{"line_number":107,"context_line":"                                                   VIF_TYPE_HW_VEB)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        if not self._check_supported_pci_vendor_device(context):"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba63e191_c40488c1","line":106,"updated":"2016-01-20 12:08:03.000000000","message":"I would prefer to handle error in case unmapped vnic_type is caught and not have default vif_type","commit_id":"7cf883620b583d5190f7f3c50f29f877f3b47469"},{"author":{"_account_id":5511,"name":"Nikola Dipanov","email":"ndipanov@redhat.com","username":"ndipanov"},"change_message_id":"932a9d0a29898b489cd77342516e52e877c8d03c","unresolved":false,"context_lines":[{"line_number":103,"context_line":"                      vnic_type)"},{"line_number":104,"context_line":"            return"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        vif_type \u003d self.vnic_type_for_vif_type.get(vnic_type,"},{"line_number":107,"context_line":"                                                   VIF_TYPE_HW_VEB)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        if not self._check_supported_pci_vendor_device(context):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a68dd71_c1eef321","line":106,"in_reply_to":"ba63e191_c40488c1","updated":"2016-01-21 10:45:16.000000000","message":"Well I agree but that would really be changing previous behaviour (which also relied on having a single default vif type) which does not really seem relevant to what this patch tries to accomplish.","commit_id":"7cf883620b583d5190f7f3c50f29f877f3b47469"}],"neutron/tests/unit/plugins/ml2/drivers/mech_sriov/mech_driver/test_mech_sriov_nic_switch.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"58ce3b9c3442ced043fbfc70bfb60caffe5415ff","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def test_vnic_type_direct_physical(self):"},{"line_number":152,"context_line":"        self._check_vif_type_for_vnic_type(portbindings.VNIC_DIRECT_PHYSICAL,"},{"line_number":153,"context_line":"                                           mech_driver.VIF_TYPE_HOSTDEV_PHY)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"class SriovSwitchMechProfileTestCase(SriovNicSwitchMechanismBaseTestCase):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a68dd71_41031610","line":153,"updated":"2016-01-20 13:57:57.000000000","message":"out of curiosity, since the code was not using the new vif type before...was full PF passthrough not working ?","commit_id":"7cf883620b583d5190f7f3c50f29f877f3b47469"},{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"cde465879ef112d9bbb81fbebe764d6a6c6e9a4b","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def test_vnic_type_direct_physical(self):"},{"line_number":152,"context_line":"        self._check_vif_type_for_vnic_type(portbindings.VNIC_DIRECT_PHYSICAL,"},{"line_number":153,"context_line":"                                           mech_driver.VIF_TYPE_HOSTDEV_PHY)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"class SriovSwitchMechProfileTestCase(SriovNicSwitchMechanismBaseTestCase):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a68dd71_f330db09","line":153,"in_reply_to":"9a68dd71_41031610","updated":"2016-01-20 14:39:29.000000000","message":"I believe it is always required to have neutron support before the nova vif driver. I think it could be possible to get along with new vnic_type and already existing vif_type, but have new vif_type is cleaner approach from nova vif plugging perspective.","commit_id":"7cf883620b583d5190f7f3c50f29f877f3b47469"},{"author":{"_account_id":5511,"name":"Nikola Dipanov","email":"ndipanov@redhat.com","username":"ndipanov"},"change_message_id":"932a9d0a29898b489cd77342516e52e877c8d03c","unresolved":false,"context_lines":[{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def test_vnic_type_direct_physical(self):"},{"line_number":152,"context_line":"        self._check_vif_type_for_vnic_type(portbindings.VNIC_DIRECT_PHYSICAL,"},{"line_number":153,"context_line":"                                           mech_driver.VIF_TYPE_HOSTDEV_PHY)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"class SriovSwitchMechProfileTestCase(SriovNicSwitchMechanismBaseTestCase):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a68dd71_2196ef4c","line":153,"in_reply_to":"9a68dd71_f330db09","updated":"2016-01-21 10:45:16.000000000","message":"Rosella - any PF would have never been exposed to the guest by Nova (they were filtered out), so it was never possible to even assign a PF PCI device to an instance (via neutron port or through nova\u0027s own interfaces) - see https://review.openstack.org/#/c/249016/","commit_id":"7cf883620b583d5190f7f3c50f29f877f3b47469"}]}
