)]}'
{"ironic/drivers/modules/network/common.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f8473452469f644cd246c5c055fa8e656ea0b65","unresolved":false,"context_lines":[{"line_number":299,"context_line":"    attach/detach that are external to ironic."},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    NOTE: This does not yet support the full set of VIF methods, as it does"},{"line_number":302,"context_line":"    not provide port_changed, or portgroup_changed."},{"line_number":303,"context_line":"    \"\"\""},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"    @staticmethod"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_e86f13c3","line":302,"updated":"2017-07-24 10:29:12.000000000","message":"this has to be updated, I guess","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"d4fb9072a30709476df7d11cd1ad573dbe582773","unresolved":false,"context_lines":[{"line_number":299,"context_line":"    attach/detach that are external to ironic."},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    NOTE: This does not yet support the full set of VIF methods, as it does"},{"line_number":302,"context_line":"    not provide port_changed, or portgroup_changed."},{"line_number":303,"context_line":"    \"\"\""},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"    @staticmethod"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_3b5ef943","line":302,"in_reply_to":"ff346bd7_e86f13c3","updated":"2017-07-27 17:41:55.000000000","message":"Done","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f8473452469f644cd246c5c055fa8e656ea0b65","unresolved":false,"context_lines":[{"line_number":483,"context_line":"        :param task: a TaskManager instance."},{"line_number":484,"context_line":"        :param portgroup_obj: a changed Portgroup object from the API before"},{"line_number":485,"context_line":"            it is saved to database."},{"line_number":486,"context_line":"        :raises: Conflict"},{"line_number":487,"context_line":"        \"\"\""},{"line_number":488,"context_line":"        context \u003d task.context"},{"line_number":489,"context_line":"        portgroup_uuid \u003d portgroup_obj.uuid"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_c8744f9c","line":486,"updated":"2017-07-24 10:29:12.000000000","message":"nit: when?","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"d4fb9072a30709476df7d11cd1ad573dbe582773","unresolved":false,"context_lines":[{"line_number":483,"context_line":"        :param task: a TaskManager instance."},{"line_number":484,"context_line":"        :param portgroup_obj: a changed Portgroup object from the API before"},{"line_number":485,"context_line":"            it is saved to database."},{"line_number":486,"context_line":"        :raises: Conflict"},{"line_number":487,"context_line":"        \"\"\""},{"line_number":488,"context_line":"        context \u003d task.context"},{"line_number":489,"context_line":"        portgroup_uuid \u003d portgroup_obj.uuid"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_a60c0cec","line":486,"in_reply_to":"ff346bd7_c8744f9c","updated":"2017-07-27 17:41:55.000000000","message":"Done","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f8473452469f644cd246c5c055fa8e656ea0b65","unresolved":false,"context_lines":[{"line_number":649,"context_line":"        \"\"\"Update the address in neutron for a port-like object."},{"line_number":650,"context_line":""},{"line_number":651,"context_line":"        :param port_like_obj: a changed Port or Portgroup object from the API"},{"line_number":652,"context_line":"            before it is saved to database."},{"line_number":653,"context_line":"        \"\"\""},{"line_number":654,"context_line":"        # NOTE(vsaienko) address is not mandatory field in portgroup."},{"line_number":655,"context_line":"        # Do not touch neutron port if we removed address on portgroup."}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_a8690bbf","line":652,"updated":"2017-07-24 10:29:12.000000000","message":":raises:?","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"d4fb9072a30709476df7d11cd1ad573dbe582773","unresolved":false,"context_lines":[{"line_number":649,"context_line":"        \"\"\"Update the address in neutron for a port-like object."},{"line_number":650,"context_line":""},{"line_number":651,"context_line":"        :param port_like_obj: a changed Port or Portgroup object from the API"},{"line_number":652,"context_line":"            before it is saved to database."},{"line_number":653,"context_line":"        \"\"\""},{"line_number":654,"context_line":"        # NOTE(vsaienko) address is not mandatory field in portgroup."},{"line_number":655,"context_line":"        # Do not touch neutron port if we removed address on portgroup."}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_06fd18b0","line":652,"in_reply_to":"ff346bd7_a8690bbf","updated":"2017-07-27 17:41:55.000000000","message":"Done","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f8473452469f644cd246c5c055fa8e656ea0b65","unresolved":false,"context_lines":[{"line_number":666,"context_line":"        :param task: a TaskManager instance."},{"line_number":667,"context_line":"        :param port_obj: a changed Port object from the API before it is saved"},{"line_number":668,"context_line":"            to database."},{"line_number":669,"context_line":"        :raises: FailedToUpdateDHCPOptOnPort, Conflict, FailedToUpdateMacOnPort"},{"line_number":670,"context_line":"        \"\"\""},{"line_number":671,"context_line":"        self._update_address_for_port_like_obj(port_obj)"},{"line_number":672,"context_line":"        super(NeutronVIFPortIDMixin, self).port_changed(task, port_obj)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_886647ed","line":669,"updated":"2017-07-24 10:29:12.000000000","message":"nit: I\u0027d prefer each exception on its own line with an explanation when it happens","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"d4fb9072a30709476df7d11cd1ad573dbe582773","unresolved":false,"context_lines":[{"line_number":666,"context_line":"        :param task: a TaskManager instance."},{"line_number":667,"context_line":"        :param port_obj: a changed Port object from the API before it is saved"},{"line_number":668,"context_line":"            to database."},{"line_number":669,"context_line":"        :raises: FailedToUpdateDHCPOptOnPort, Conflict, FailedToUpdateMacOnPort"},{"line_number":670,"context_line":"        \"\"\""},{"line_number":671,"context_line":"        self._update_address_for_port_like_obj(port_obj)"},{"line_number":672,"context_line":"        super(NeutronVIFPortIDMixin, self).port_changed(task, port_obj)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_c634b095","line":669,"in_reply_to":"ff346bd7_886647ed","updated":"2017-07-27 17:41:55.000000000","message":"Done","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f8473452469f644cd246c5c055fa8e656ea0b65","unresolved":false,"context_lines":[{"line_number":677,"context_line":"        :param task: a TaskManager instance."},{"line_number":678,"context_line":"        :param portgroup_obj: a changed Portgroup object from the API before"},{"line_number":679,"context_line":"            it is saved to database."},{"line_number":680,"context_line":"        :raises: FailedToUpdateDHCPOptOnPort, Conflict, FailedToUpdateMacOnPort"},{"line_number":681,"context_line":"        \"\"\""},{"line_number":682,"context_line":"        self._update_address_for_port_like_obj(portgroup_obj)"},{"line_number":683,"context_line":"        super(NeutronVIFPortIDMixin, self).portgroup_changed(task,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_686323de","line":680,"updated":"2017-07-24 10:29:12.000000000","message":"ditto","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"d4fb9072a30709476df7d11cd1ad573dbe582773","unresolved":false,"context_lines":[{"line_number":677,"context_line":"        :param task: a TaskManager instance."},{"line_number":678,"context_line":"        :param portgroup_obj: a changed Portgroup object from the API before"},{"line_number":679,"context_line":"            it is saved to database."},{"line_number":680,"context_line":"        :raises: FailedToUpdateDHCPOptOnPort, Conflict, FailedToUpdateMacOnPort"},{"line_number":681,"context_line":"        \"\"\""},{"line_number":682,"context_line":"        self._update_address_for_port_like_obj(portgroup_obj)"},{"line_number":683,"context_line":"        super(NeutronVIFPortIDMixin, self).portgroup_changed(task,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_a6252c5e","line":680,"in_reply_to":"ff346bd7_686323de","updated":"2017-07-27 17:41:55.000000000","message":"Done","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"}],"ironic/tests/unit/drivers/modules/network/test_common.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f8473452469f644cd246c5c055fa8e656ea0b65","unresolved":false,"context_lines":[{"line_number":928,"context_line":"            extra\u003d{\u0027vif_port_id\u0027: \u0027fake-id\u0027})"},{"line_number":929,"context_line":"        new_address \u003d \u002711:22:33:44:55:bb\u0027"},{"line_number":930,"context_line":"        pg.address \u003d new_address"},{"line_number":931,"context_line":"        with task_manager.acquire(self.context, self.node.id) as task:"},{"line_number":932,"context_line":"            self.interface.portgroup_changed(task, pg)"},{"line_number":933,"context_line":""},{"line_number":934,"context_line":"    @mock.patch.object(common_utils, \u0027warn_about_deprecated_extra_vif_port_id\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_48605fcf","line":931,"updated":"2017-07-24 10:29:12.000000000","message":"let\u0027s maybe assert that DHCPProvider methods were not called?","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"d4fb9072a30709476df7d11cd1ad573dbe582773","unresolved":false,"context_lines":[{"line_number":928,"context_line":"            extra\u003d{\u0027vif_port_id\u0027: \u0027fake-id\u0027})"},{"line_number":929,"context_line":"        new_address \u003d \u002711:22:33:44:55:bb\u0027"},{"line_number":930,"context_line":"        pg.address \u003d new_address"},{"line_number":931,"context_line":"        with task_manager.acquire(self.context, self.node.id) as task:"},{"line_number":932,"context_line":"            self.interface.portgroup_changed(task, pg)"},{"line_number":933,"context_line":""},{"line_number":934,"context_line":"    @mock.patch.object(common_utils, \u0027warn_about_deprecated_extra_vif_port_id\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_c631505c","line":931,"in_reply_to":"ff346bd7_48605fcf","updated":"2017-07-27 17:41:55.000000000","message":"portgroup_changed doesn\u0027t update DHCP options, only port_changed does. I\u0027ve added an assert to L710.","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f8473452469f644cd246c5c055fa8e656ea0b65","unresolved":false,"context_lines":[{"line_number":939,"context_line":"        extra \u003d {\u0027vif_port_id\u0027: \u0027foo\u0027}"},{"line_number":940,"context_line":"        pg.extra \u003d extra"},{"line_number":941,"context_line":"        with task_manager.acquire(self.context, self.node.id) as task:"},{"line_number":942,"context_line":"            self.interface.portgroup_changed(task, pg)"},{"line_number":943,"context_line":"        self.assertEqual(1, mock_warn.call_count)"},{"line_number":944,"context_line":""},{"line_number":945,"context_line":"    @mock.patch.object(common_utils, \u0027warn_about_deprecated_extra_vif_port_id\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_289bdbc9","line":942,"updated":"2017-07-24 10:29:12.000000000","message":"nit: I\u0027d slightly prefer assert_called_once_with","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"d4fb9072a30709476df7d11cd1ad573dbe582773","unresolved":false,"context_lines":[{"line_number":939,"context_line":"        extra \u003d {\u0027vif_port_id\u0027: \u0027foo\u0027}"},{"line_number":940,"context_line":"        pg.extra \u003d extra"},{"line_number":941,"context_line":"        with task_manager.acquire(self.context, self.node.id) as task:"},{"line_number":942,"context_line":"            self.interface.portgroup_changed(task, pg)"},{"line_number":943,"context_line":"        self.assertEqual(1, mock_warn.call_count)"},{"line_number":944,"context_line":""},{"line_number":945,"context_line":"    @mock.patch.object(common_utils, \u0027warn_about_deprecated_extra_vif_port_id\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_a6dacc47","line":942,"in_reply_to":"ff346bd7_289bdbc9","updated":"2017-07-27 17:41:55.000000000","message":"Done","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"8f8473452469f644cd246c5c055fa8e656ea0b65","unresolved":false,"context_lines":[{"line_number":1008,"context_line":"        pg.standalone_ports_supported \u003d standalone_ports"},{"line_number":1009,"context_line":""},{"line_number":1010,"context_line":"        with task_manager.acquire(self.context, self.node.id) as task:"},{"line_number":1011,"context_line":"            if not expect_errors:"},{"line_number":1012,"context_line":"                self.interface.portgroup_changed(task, pg)"},{"line_number":1013,"context_line":"            else:"},{"line_number":1014,"context_line":"                self.assertRaises(exception.Conflict,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_08a017f4","line":1011,"updated":"2017-07-24 10:29:12.000000000","message":"again, this does not make any asserts on what portgroup_changed actually did","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"d4fb9072a30709476df7d11cd1ad573dbe582773","unresolved":false,"context_lines":[{"line_number":1008,"context_line":"        pg.standalone_ports_supported \u003d standalone_ports"},{"line_number":1009,"context_line":""},{"line_number":1010,"context_line":"        with task_manager.acquire(self.context, self.node.id) as task:"},{"line_number":1011,"context_line":"            if not expect_errors:"},{"line_number":1012,"context_line":"                self.interface.portgroup_changed(task, pg)"},{"line_number":1013,"context_line":"            else:"},{"line_number":1014,"context_line":"                self.assertRaises(exception.Conflict,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_c6f6f063","line":1011,"in_reply_to":"ff346bd7_08a017f4","updated":"2017-07-27 17:41:55.000000000","message":"portgroup_changed in VIFPortIDMixin now only contains validation. I think the tests that use this helper are just checking the validation of various permutations of standalone ports, pxe_enabled, VIF/no VIF etc.","commit_id":"d10ecf71224be44851742f3aa043139ac099370d"}]}
