)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This functional test spawns the OVS agent, with BW"},{"line_number":10,"context_line":"limit rules in a policy attached to ports. Then it"},{"line_number":11,"context_line":"asserts that the low level ovs bw limit setting is set"},{"line_number":12,"context_line":"for each port."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Partially-Implements: blueprint quantum-qos-api"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a4dcd0f_c69d130b","line":11,"updated":"2015-08-07 11:13:00.000000000","message":"bw -\u003e bandwidth","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":11,"context_line":"asserts that the low level ovs bw limit setting is set"},{"line_number":12,"context_line":"for each port."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Partially-Implements: blueprint quantum-qos-api"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Ie5424a257b9ca07afa72a39ae6f1551d6ad351e7"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a4dcd0f_8605cb46","line":14,"updated":"2015-08-07 11:13:00.000000000","message":"I guess it belongs more to ml2-qos but I don\u0027t care (or maybe we even have ovs spec?)","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":11,"context_line":"asserts that the low level ovs bw limit setting is set"},{"line_number":12,"context_line":"for each port."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Partially-Implements: blueprint quantum-qos-api"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Ie5424a257b9ca07afa72a39ae6f1551d6ad351e7"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a4dcd0f_e40da7e8","line":14,"in_reply_to":"1a4dcd0f_8605cb46","updated":"2015-08-07 11:26:25.000000000","message":"ml2-qos should be fine I think.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8bffc7d4c710fd2971eeaa3f45fe69afd87730ab","unresolved":false,"context_lines":[{"line_number":11,"context_line":"asserts that the low level ovs bw limit setting is set"},{"line_number":12,"context_line":"for each port."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"To make this possible we recactors and extract the base"},{"line_number":15,"context_line":"ovs agent test framework into"},{"line_number":16,"context_line":"neutron.tests.functional.agent.l2.base"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"1a4dcd0f_c21cf215","line":14,"updated":"2015-08-08 13:38:41.000000000","message":"we refactor","commit_id":"7c6848847927e9348919d60d9ba253885826a811"}],"neutron/agent/l2/agent_extensions_manager.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"fac5471c5f5057d869cc420a18b5c73c4284a318","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                        \"while handling port update\"),"},{"line_number":62,"context_line":"                    {\u0027name\u0027: extension.name}"},{"line_number":63,"context_line":"                )"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    #TODO(Qos) we are missing how to handle delete. we can pass action"},{"line_number":66,"context_line":"    #type in all the handle methods or add handle_delete_resource methods"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_063a1b99","line":64,"updated":"2015-08-07 10:43:00.000000000","message":"remove introduced blank line!","commit_id":"4ad6423971c8eaa22ed592adf4bed819e8fcff67"}],"neutron/agent/l2/extensions/qos_agent.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"fac5471c5f5057d869cc420a18b5c73c4284a318","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        qos_policy_id \u003d port.get(\u0027qos_policy_id\u0027)"},{"line_number":97,"context_line":"        if qos_policy_id is None:"},{"line_number":98,"context_line":"            #TODO(QoS):  we should also handle removing policy"},{"line_number":99,"context_line":"            return"},{"line_number":100,"context_line":"        #Note(moshele) check if we have seen this port"},{"line_number":101,"context_line":"        #and it has the same policy we do nothing."},{"line_number":102,"context_line":"        if (port_id in self.known_ports and"}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_4654a3c8","line":99,"updated":"2015-08-07 10:43:00.000000000","message":"undo unexpected blank line changes (I had prints in there during debug phase).","commit_id":"4ad6423971c8eaa22ed592adf4bed819e8fcff67"}],"neutron/tests/functional/agent/l2/base.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8bffc7d4c710fd2971eeaa3f45fe69afd87730ab","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"import eventlet"},{"line_number":18,"context_line":"import mock"},{"line_number":19,"context_line":"import random"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from oslo_config import cfg"},{"line_number":22,"context_line":"from oslo_log import log as logging"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_62195e22","line":19,"updated":"2015-08-08 13:38:41.000000000","message":"random is stdlib, others are 3party.","commit_id":"7c6848847927e9348919d60d9ba253885826a811"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"a84393826b25fd7478dd06cf12a164c66bd98f07","unresolved":false,"context_lines":[{"line_number":32,"context_line":"from neutron.common import constants as n_const"},{"line_number":33,"context_line":"from neutron.common import utils"},{"line_number":34,"context_line":"from neutron.plugins.common import constants as p_const"},{"line_number":35,"context_line":"from neutron.plugins.ml2.drivers.openvswitch.agent.common import config \\"},{"line_number":36,"context_line":"    as ovs_config"},{"line_number":37,"context_line":"from neutron.plugins.ml2.drivers.openvswitch.agent.common import constants"},{"line_number":38,"context_line":"from neutron.plugins.ml2.drivers.openvswitch.agent.openflow.ovs_ofctl \\"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_564b9a59","line":35,"updated":"2015-08-10 13:28:47.000000000","message":"Argh, I hate these long imports, but I was the one who moved the code, so it\u0027s a beast of my own creation. :)","commit_id":"a034115e6160d8c2d7e63a1465fea97e1ced03fb"}],"neutron/tests/functional/agent/l2/extensions/test_ovs_agent_qos_extension.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"297048e1749ab24c950a477c02080565af076245","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from neutron.agent.l2 import agent_extensions_manager as ext_manager"},{"line_number":22,"context_line":"from neutron.agent.linux import utils as agent_utils"},{"line_number":23,"context_line":"#TODO(ajo): extract the OVSAgentTestFramework to a base module."},{"line_number":24,"context_line":"from neutron.tests.functional.agent import test_l2_ovs_agent as l2_ovs_base"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_28b5b07c","line":23,"updated":"2015-08-07 05:46:45.000000000","message":"Then let\u0027s extract it now.","commit_id":"75358026133a24d5ad4aa06437e329dc3b22162d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"78fad56452e41b7d28a02dad3925158ec41897b1","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from neutron.agent.l2 import agent_extensions_manager as ext_manager"},{"line_number":22,"context_line":"from neutron.agent.linux import utils as agent_utils"},{"line_number":23,"context_line":"#TODO(ajo): extract the OVSAgentTestFramework to a base module."},{"line_number":24,"context_line":"from neutron.tests.functional.agent import test_l2_ovs_agent as l2_ovs_base"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_edf11502","line":23,"in_reply_to":"1a4dcd0f_28b5b07c","updated":"2015-08-07 07:37:35.000000000","message":"yes sir ;)","commit_id":"75358026133a24d5ad4aa06437e329dc3b22162d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"297048e1749ab24c950a477c02080565af076245","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"},{"line_number":50,"context_line":"        return dev"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def test_port_creation_and_deletion(self):"},{"line_number":53,"context_line":"        agent \u003d self.create_agent()"},{"line_number":54,"context_line":"        self.start_agent(agent)"},{"line_number":55,"context_line":"        network \u003d self._create_test_network_dict()"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_68bf3861","line":52,"updated":"2015-08-07 05:46:45.000000000","message":"Isn\u0027t it a mere copy-paste from ovs test?..","commit_id":"75358026133a24d5ad4aa06437e329dc3b22162d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cbc751726bca06dd8ee1b69ad3f09c319c06aa67","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"},{"line_number":50,"context_line":"        return dev"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def test_port_creation_and_deletion(self):"},{"line_number":53,"context_line":"        agent \u003d self.create_agent()"},{"line_number":54,"context_line":"        self.start_agent(agent)"},{"line_number":55,"context_line":"        network \u003d self._create_test_network_dict()"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_6dc74564","line":52,"in_reply_to":"1a4dcd0f_0d7ec169","updated":"2015-08-07 07:42:32.000000000","message":"that\u0027s what we need. though mocking and actual checks on ports are the most interesting parts.  it should handle, create/update/delete/...","commit_id":"75358026133a24d5ad4aa06437e329dc3b22162d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"78fad56452e41b7d28a02dad3925158ec41897b1","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"},{"line_number":50,"context_line":"        return dev"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"    def test_port_creation_and_deletion(self):"},{"line_number":53,"context_line":"        agent \u003d self.create_agent()"},{"line_number":54,"context_line":"        self.start_agent(agent)"},{"line_number":55,"context_line":"        network \u003d self._create_test_network_dict()"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_0d7ec169","line":52,"in_reply_to":"1a4dcd0f_68bf3861","updated":"2015-08-07 07:37:35.000000000","message":"It\u0027s not going to be very different from it, just at start I\u0027m setting which rule I want to expose via \"get info/get resource/pull\", and then, at the end check that the low level ports that the bandwidth limit is set as we asked in the rule, and otherwise fail.","commit_id":"75358026133a24d5ad4aa06437e329dc3b22162d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9fc31dae766e600a966ef18147c0cd61d0f272f6","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.agent.linux import utils as agent_utils"},{"line_number":23,"context_line":"from neutron.objects.qos import policy"},{"line_number":24,"context_line":"from neutron.objects.qos import rule"},{"line_number":25,"context_line":"#TODO(ajo): extract the OVSAgentTestFramework to a base module."},{"line_number":26,"context_line":"from neutron.tests.functional.agent import test_l2_ovs_agent as l2_ovs_base"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a4dcd0f_86c70b95","line":25,"updated":"2015-08-07 10:42:00.000000000","message":"Addressing this todo, but otherwise this is ready for review.","commit_id":"4ad6423971c8eaa22ed592adf4bed819e8fcff67"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9226a020218f40f04f8c2f536c353933e9d7e1d8","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.agent.linux import utils as agent_utils"},{"line_number":23,"context_line":"from neutron.objects.qos import policy"},{"line_number":24,"context_line":"from neutron.objects.qos import rule"},{"line_number":25,"context_line":"#TODO(ajo): extract the OVSAgentTestFramework to a base module."},{"line_number":26,"context_line":"from neutron.tests.functional.agent import test_l2_ovs_agent as l2_ovs_base"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_86cdcb67","line":25,"updated":"2015-08-07 10:47:31.000000000","message":"addressing this now ^","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":32,"context_line":"TEST_BW_LIMIT_BURST_KBPS \u003d 10"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OVSAgentQoSExtensionTestFramework(l2_ovs_base.OVSAgentTestFramework):"},{"line_number":36,"context_line":"    def setUp(self):"},{"line_number":37,"context_line":"        super(OVSAgentQoSExtensionTestFramework, self).setUp()"},{"line_number":38,"context_line":"        ext_manager.register_opts(self.config)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_c63993f3","line":35,"updated":"2015-08-07 11:13:00.000000000","message":"Any special need to have it in a separate class? We have one test for now.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":32,"context_line":"TEST_BW_LIMIT_BURST_KBPS \u003d 10"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OVSAgentQoSExtensionTestFramework(l2_ovs_base.OVSAgentTestFramework):"},{"line_number":36,"context_line":"    def setUp(self):"},{"line_number":37,"context_line":"        super(OVSAgentQoSExtensionTestFramework, self).setUp()"},{"line_number":38,"context_line":"        ext_manager.register_opts(self.config)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_297fe8e0","line":35,"in_reply_to":"1a4dcd0f_c63993f3","updated":"2015-08-07 11:26:25.000000000","message":"I like this for sanity, and I have been suggested to do it before.\n\nThis will allow for specific rules in separate classes, instead of all in one, at a later time.\n\nIt\u0027s also easier to read, since all the test functions are in one class, with no helpers.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class OVSAgentQoSExtensionTestFramework(l2_ovs_base.OVSAgentTestFramework):"},{"line_number":36,"context_line":"    def setUp(self):"},{"line_number":37,"context_line":"        super(OVSAgentQoSExtensionTestFramework, self).setUp()"},{"line_number":38,"context_line":"        ext_manager.register_opts(self.config)"},{"line_number":39,"context_line":"        self.config.set_override(\u0027extensions\u0027, [\u0027qos\u0027], \u0027agent\u0027)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def set_test_qos_rules(self, policy_rules):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_c66bd3ef","line":38,"updated":"2015-08-07 11:13:00.000000000","message":"Does it actually belong to framework class? Other tests may be interested in other extensions.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class OVSAgentQoSExtensionTestFramework(l2_ovs_base.OVSAgentTestFramework):"},{"line_number":36,"context_line":"    def setUp(self):"},{"line_number":37,"context_line":"        super(OVSAgentQoSExtensionTestFramework, self).setUp()"},{"line_number":38,"context_line":"        ext_manager.register_opts(self.config)"},{"line_number":39,"context_line":"        self.config.set_override(\u0027extensions\u0027, [\u0027qos\u0027], \u0027agent\u0027)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def set_test_qos_rules(self, policy_rules):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_fd243ab3","line":38,"in_reply_to":"1a4dcd0f_09f1cc6a","updated":"2015-08-07 22:10:02.000000000","message":"Done","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class OVSAgentQoSExtensionTestFramework(l2_ovs_base.OVSAgentTestFramework):"},{"line_number":36,"context_line":"    def setUp(self):"},{"line_number":37,"context_line":"        super(OVSAgentQoSExtensionTestFramework, self).setUp()"},{"line_number":38,"context_line":"        ext_manager.register_opts(self.config)"},{"line_number":39,"context_line":"        self.config.set_override(\u0027extensions\u0027, [\u0027qos\u0027], \u0027agent\u0027)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def set_test_qos_rules(self, policy_rules):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_09f1cc6a","line":38,"in_reply_to":"1a4dcd0f_c66bd3ef","updated":"2015-08-07 11:26:25.000000000","message":"True, let\u0027s move it up to the base class, and leave the override here.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        qos_policy.obj_reset_changes()"},{"line_number":53,"context_line":"        self.get_info \u003d mock.patch("},{"line_number":54,"context_line":"            \u0027neutron.api.rpc.handlers.resources_rpc.\u0027"},{"line_number":55,"context_line":"            \u0027ResourcesServerRpcApi.get_info\u0027).start()"},{"line_number":56,"context_line":"        self.get_info.return_value \u003d qos_policy"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _create_test_port_dict(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_a67567cb","line":55,"updated":"2015-08-07 11:13:00.000000000","message":"it will be pull now","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        qos_policy.obj_reset_changes()"},{"line_number":53,"context_line":"        self.get_info \u003d mock.patch("},{"line_number":54,"context_line":"            \u0027neutron.api.rpc.handlers.resources_rpc.\u0027"},{"line_number":55,"context_line":"            \u0027ResourcesServerRpcApi.get_info\u0027).start()"},{"line_number":56,"context_line":"        self.get_info.return_value \u003d qos_policy"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _create_test_port_dict(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_c9e684af","line":55,"in_reply_to":"1a4dcd0f_a67567cb","updated":"2015-08-07 11:26:25.000000000","message":"yes, I count on changing it during rebase, Thanks for the comment.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        qos_policy.obj_reset_changes()"},{"line_number":53,"context_line":"        self.get_info \u003d mock.patch("},{"line_number":54,"context_line":"            \u0027neutron.api.rpc.handlers.resources_rpc.\u0027"},{"line_number":55,"context_line":"            \u0027ResourcesServerRpcApi.get_info\u0027).start()"},{"line_number":56,"context_line":"        self.get_info.return_value \u003d qos_policy"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _create_test_port_dict(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_1d2a467f","line":55,"in_reply_to":"1a4dcd0f_c9e684af","updated":"2015-08-07 22:10:02.000000000","message":"Done","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        self.get_info.return_value \u003d qos_policy"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _create_test_port_dict(self):"},{"line_number":59,"context_line":"        \"\"\"Override top class create test port to extend it.\"\"\""},{"line_number":60,"context_line":"        port_dict \u003d super(OVSAgentQoSExtensionTestFramework,"},{"line_number":61,"context_line":"                          self)._create_test_port_dict()"},{"line_number":62,"context_line":"        port_dict[\u0027qos_policy_id\u0027] \u003d TEST_POLICY_ID"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_896b9cb6","line":59,"updated":"2015-08-07 11:13:00.000000000","message":"that\u0027s self obvious from how you call to super(). Remove.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        self.get_info.return_value \u003d qos_policy"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _create_test_port_dict(self):"},{"line_number":59,"context_line":"        \"\"\"Override top class create test port to extend it.\"\"\""},{"line_number":60,"context_line":"        port_dict \u003d super(OVSAgentQoSExtensionTestFramework,"},{"line_number":61,"context_line":"                          self)._create_test_port_dict()"},{"line_number":62,"context_line":"        port_dict[\u0027qos_policy_id\u0027] \u003d TEST_POLICY_ID"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_dd237ea6","line":59,"in_reply_to":"1a4dcd0f_896b9cb6","updated":"2015-08-07 22:10:02.000000000","message":"Done","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        return port_dict"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    def _get_device_details(self, port, network):"},{"line_number":66,"context_line":"        \"\"\"Override top class get_device_details to extend it.\"\"\""},{"line_number":67,"context_line":"        dev \u003d super(OVSAgentQoSExtensionTestFramework,"},{"line_number":68,"context_line":"                    self)._get_device_details(port, network)"},{"line_number":69,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_c96c44d2","line":66,"updated":"2015-08-07 11:13:00.000000000","message":"ditto","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        return port_dict"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    def _get_device_details(self, port, network):"},{"line_number":66,"context_line":"        \"\"\"Override top class get_device_details to extend it.\"\"\""},{"line_number":67,"context_line":"        dev \u003d super(OVSAgentQoSExtensionTestFramework,"},{"line_number":68,"context_line":"                    self)._get_device_details(port, network)"},{"line_number":69,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_9d3656e6","line":66,"in_reply_to":"1a4dcd0f_c96c44d2","updated":"2015-08-07 22:10:02.000000000","message":"Done","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    def _get_device_details(self, port, network):"},{"line_number":66,"context_line":"        \"\"\"Override top class get_device_details to extend it.\"\"\""},{"line_number":67,"context_line":"        dev \u003d super(OVSAgentQoSExtensionTestFramework,"},{"line_number":68,"context_line":"                    self)._get_device_details(port, network)"},{"line_number":69,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"},{"line_number":70,"context_line":"        return dev"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_c9ae8480","line":68,"updated":"2015-08-07 11:13:00.000000000","message":"If that is the reason why you made the super class method non-static, then better to call to cls._get_device_details() directly here.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    def _get_device_details(self, port, network):"},{"line_number":66,"context_line":"        \"\"\"Override top class get_device_details to extend it.\"\"\""},{"line_number":67,"context_line":"        dev \u003d super(OVSAgentQoSExtensionTestFramework,"},{"line_number":68,"context_line":"                    self)._get_device_details(port, network)"},{"line_number":69,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"},{"line_number":70,"context_line":"        return dev"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_4980348b","line":68,"in_reply_to":"1a4dcd0f_c9ae8480","updated":"2015-08-07 11:26:25.000000000","message":"No, the reason is for the top level class to reach this one actually, I know I can do the opposite from here, that was working.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"},{"line_number":70,"context_line":"        return dev"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def setup_agent_and_ports(self):"},{"line_number":73,"context_line":"        self.agent \u003d self.create_agent()"},{"line_number":74,"context_line":"        self.start_agent(self.agent)"},{"line_number":75,"context_line":"        network \u003d self._create_test_network_dict()"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_29efe81e","line":72,"updated":"2015-08-07 11:13:00.000000000","message":"I believe you copy-pasted it from test_port_creation_and_deletion, so please instead reuse the code.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"},{"line_number":70,"context_line":"        return dev"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def setup_agent_and_ports(self):"},{"line_number":73,"context_line":"        self.agent \u003d self.create_agent()"},{"line_number":74,"context_line":"        self.start_agent(self.agent)"},{"line_number":75,"context_line":"        network \u003d self._create_test_network_dict()"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_89615c07","line":72,"in_reply_to":"1a4dcd0f_29efe81e","updated":"2015-08-07 11:26:25.000000000","message":"ok, let\u0027s move it up, and reuse it for both.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        dev[\u0027qos_policy_id\u0027] \u003d port[\u0027qos_policy_id\u0027]"},{"line_number":70,"context_line":"        return dev"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def setup_agent_and_ports(self):"},{"line_number":73,"context_line":"        self.agent \u003d self.create_agent()"},{"line_number":74,"context_line":"        self.start_agent(self.agent)"},{"line_number":75,"context_line":"        network \u003d self._create_test_network_dict()"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_1d51e60e","line":72,"in_reply_to":"1a4dcd0f_89615c07","updated":"2015-08-07 22:10:02.000000000","message":"Done","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"class TestOVSAgentQosExtension(OVSAgentQoSExtensionTestFramework):"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_port_creation_with_bwlimit_policy(self):"},{"line_number":88,"context_line":"        \"\"\"Make sure BW limit policy is set in low level to ports.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.set_test_qos_rules(["}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_c9f1a402","line":87,"updated":"2015-08-07 11:13:00.000000000","message":"with_bandwidth_limit_rule","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"class TestOVSAgentQosExtension(OVSAgentQoSExtensionTestFramework):"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_port_creation_with_bwlimit_policy(self):"},{"line_number":88,"context_line":"        \"\"\"Make sure BW limit policy is set in low level to ports.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.set_test_qos_rules(["}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_5d476e4b","line":87,"in_reply_to":"1a4dcd0f_c9f1a402","updated":"2015-08-07 22:10:02.000000000","message":"Done","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":85,"context_line":"class TestOVSAgentQosExtension(OVSAgentQoSExtensionTestFramework):"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_port_creation_with_bwlimit_policy(self):"},{"line_number":88,"context_line":"        \"\"\"Make sure BW limit policy is set in low level to ports.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.set_test_qos_rules(["},{"line_number":91,"context_line":"            rule.QosBandwidthLimitRule(context\u003dmock.Mock(),"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_e9f4a0f1","line":88,"updated":"2015-08-07 11:13:00.000000000","message":"Please refrain from abbreviations: bandwidth limit. Also, you actually set rule, not policy itself.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":85,"context_line":"class TestOVSAgentQosExtension(OVSAgentQoSExtensionTestFramework):"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_port_creation_with_bwlimit_policy(self):"},{"line_number":88,"context_line":"        \"\"\"Make sure BW limit policy is set in low level to ports.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.set_test_qos_rules(["},{"line_number":91,"context_line":"            rule.QosBandwidthLimitRule(context\u003dmock.Mock(),"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_fd72faaf","line":88,"in_reply_to":"1a4dcd0f_44057b0e","updated":"2015-08-07 22:10:02.000000000","message":"Done","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":85,"context_line":"class TestOVSAgentQosExtension(OVSAgentQoSExtensionTestFramework):"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_port_creation_with_bwlimit_policy(self):"},{"line_number":88,"context_line":"        \"\"\"Make sure BW limit policy is set in low level to ports.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.set_test_qos_rules(["},{"line_number":91,"context_line":"            rule.QosBandwidthLimitRule(context\u003dmock.Mock(),"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_44057b0e","line":88,"in_reply_to":"1a4dcd0f_e9f4a0f1","updated":"2015-08-07 11:26:25.000000000","message":"Well it\u0027s a policy to do bandwidth limiting, since it only has a rule for that.\n\nBut yes, too many abbreviations. /me blames the 80 column limit!","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        \"\"\"Make sure BW limit policy is set in low level to ports.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.set_test_qos_rules(["},{"line_number":91,"context_line":"            rule.QosBandwidthLimitRule(context\u003dmock.Mock(),"},{"line_number":92,"context_line":"            id\u003dTEST_BW_LIMIT_RULE_ID,"},{"line_number":93,"context_line":"            max_kbps\u003dTEST_BW_LIMIT_MAX_KBPS,"},{"line_number":94,"context_line":"            max_burst_kbps\u003dTEST_BW_LIMIT_BURST_KBPS)])"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_a949b832","line":91,"updated":"2015-08-07 11:13:00.000000000","message":"afaik you can pass None as context if you don\u0027t plan to write in db.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        \"\"\"Make sure BW limit policy is set in low level to ports.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.set_test_qos_rules(["},{"line_number":91,"context_line":"            rule.QosBandwidthLimitRule(context\u003dmock.Mock(),"},{"line_number":92,"context_line":"            id\u003dTEST_BW_LIMIT_RULE_ID,"},{"line_number":93,"context_line":"            max_kbps\u003dTEST_BW_LIMIT_MAX_KBPS,"},{"line_number":94,"context_line":"            max_burst_kbps\u003dTEST_BW_LIMIT_BURST_KBPS)])"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_bd6c72d1","line":91,"in_reply_to":"1a4dcd0f_a416bf49","updated":"2015-08-07 22:10:02.000000000","message":"Done","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        \"\"\"Make sure BW limit policy is set in low level to ports.\"\"\""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        self.set_test_qos_rules(["},{"line_number":91,"context_line":"            rule.QosBandwidthLimitRule(context\u003dmock.Mock(),"},{"line_number":92,"context_line":"            id\u003dTEST_BW_LIMIT_RULE_ID,"},{"line_number":93,"context_line":"            max_kbps\u003dTEST_BW_LIMIT_MAX_KBPS,"},{"line_number":94,"context_line":"            max_burst_kbps\u003dTEST_BW_LIMIT_BURST_KBPS)])"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_a416bf49","line":91,"in_reply_to":"1a4dcd0f_a949b832","updated":"2015-08-07 11:26:25.000000000","message":"ack.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        for port in self.ports:"},{"line_number":99,"context_line":"            max_rate, burst \u003d ("},{"line_number":100,"context_line":"                self.agent.int_br.get_qos_bw_limit_for_port(port[\u0027vif_name\u0027]))"},{"line_number":101,"context_line":"            self.assertEqual(max_rate, TEST_BW_LIMIT_MAX_KBPS)"},{"line_number":102,"context_line":"            self.assertEqual(burst, TEST_BW_LIMIT_BURST_KBPS)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_c9a9a491","line":100,"updated":"2015-08-07 11:13:00.000000000","message":"(No action required) I guess we\u0027ll need to make those function names more clear too.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        for port in self.ports:"},{"line_number":99,"context_line":"            max_rate, burst \u003d ("},{"line_number":100,"context_line":"                self.agent.int_br.get_qos_bw_limit_for_port(port[\u0027vif_name\u0027]))"},{"line_number":101,"context_line":"            self.assertEqual(max_rate, TEST_BW_LIMIT_MAX_KBPS)"},{"line_number":102,"context_line":"            self.assertEqual(burst, TEST_BW_LIMIT_BURST_KBPS)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_84170344","line":100,"in_reply_to":"1a4dcd0f_c9a9a491","updated":"2015-08-07 11:26:25.000000000","message":"They are extremely long, but we can eventually change it, it\u0027s just internal implementation.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":99,"context_line":"            max_rate, burst \u003d ("},{"line_number":100,"context_line":"                self.agent.int_br.get_qos_bw_limit_for_port(port[\u0027vif_name\u0027]))"},{"line_number":101,"context_line":"            self.assertEqual(max_rate, TEST_BW_LIMIT_MAX_KBPS)"},{"line_number":102,"context_line":"            self.assertEqual(burst, TEST_BW_LIMIT_BURST_KBPS)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_897f1c14","line":102,"updated":"2015-08-07 11:13:00.000000000","message":"We also need tests for:\n\n- changing values in rules;\n- unsetting policy from a port;\n- having multiple ports but only some of them applied to policies (maybe to multiple different policies).","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":99,"context_line":"            max_rate, burst \u003d ("},{"line_number":100,"context_line":"                self.agent.int_br.get_qos_bw_limit_for_port(port[\u0027vif_name\u0027]))"},{"line_number":101,"context_line":"            self.assertEqual(max_rate, TEST_BW_LIMIT_MAX_KBPS)"},{"line_number":102,"context_line":"            self.assertEqual(burst, TEST_BW_LIMIT_BURST_KBPS)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_c4666bec","line":102,"in_reply_to":"1a4dcd0f_897f1c14","updated":"2015-08-07 11:26:25.000000000","message":"Yes, I will do on a separate patch, I\u0027ve seen that delete will need fixes to the code, so I will add the delete tests + fixes for it, and then for updates.\n\nYour last suggestion may need rework, I\u0027ll look at it.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c32d32d24631335e326f672a03ef98f179c068b7","unresolved":false,"context_lines":[{"line_number":99,"context_line":"            max_rate, burst \u003d ("},{"line_number":100,"context_line":"                self.agent.int_br.get_qos_bw_limit_for_port(port[\u0027vif_name\u0027]))"},{"line_number":101,"context_line":"            self.assertEqual(max_rate, TEST_BW_LIMIT_MAX_KBPS)"},{"line_number":102,"context_line":"            self.assertEqual(burst, TEST_BW_LIMIT_BURST_KBPS)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_7daeeae8","line":102,"in_reply_to":"1a4dcd0f_c4666bec","updated":"2015-08-07 22:10:02.000000000","message":"Dressed the lat point, now updates and unsetting will be done in separate patches.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"022502d25c1ff543b95d76a9ddf63c25648224d0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 Red Hat, Inc."},{"line_number":2,"context_line":"# Copyright (c) 2015 SUSE Linux Products GmbH"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"},{"line_number":5,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_7b94c489","line":2,"updated":"2015-08-07 15:40:03.000000000","message":"This line is wrong ^ :)","commit_id":"b9e24f8c9a0154fbc3d6d32b8dd34d5a3994eef0"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"022502d25c1ff543b95d76a9ddf63c25648224d0","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            max_rate, burst \u003d ("},{"line_number":102,"context_line":"                self.agent.int_br.get_qos_bw_limit_for_port(port[\u0027vif_name\u0027]))"},{"line_number":103,"context_line":"            self.assertEqual(max_rate, TEST_BW_LIMIT_RULE_1.max_kbps)"},{"line_number":104,"context_line":"            self.assertEqual(burst, TEST_BW_LIMIT_RULE_1.max_burst_kbps)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_5bc78895","line":104,"updated":"2015-08-07 15:40:03.000000000","message":"I need to follow up with all the comments ihar left on previous patchset.","commit_id":"b9e24f8c9a0154fbc3d6d32b8dd34d5a3994eef0"}],"neutron/tests/functional/agent/test_l2_ovs_agent.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"297048e1749ab24c950a477c02080565af076245","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                \u0027ip_address\u0027], ip_len)]"},{"line_number":172,"context_line":"            self.driver.init_l3(port.get(\u0027vif_name\u0027), ip_cidrs, namespace\u003dNone)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    def _get_device_details(self, port, network):"},{"line_number":175,"context_line":"        dev \u003d {\u0027device\u0027: port[\u0027id\u0027],"},{"line_number":176,"context_line":"               \u0027port_id\u0027: port[\u0027id\u0027],"},{"line_number":177,"context_line":"               \u0027network_id\u0027: network[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_889ba417","line":174,"updated":"2015-08-07 05:46:45.000000000","message":"why do you need it?","commit_id":"75358026133a24d5ad4aa06437e329dc3b22162d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"78fad56452e41b7d28a02dad3925158ec41897b1","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                \u0027ip_address\u0027], ip_len)]"},{"line_number":172,"context_line":"            self.driver.init_l3(port.get(\u0027vif_name\u0027), ip_cidrs, namespace\u003dNone)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    def _get_device_details(self, port, network):"},{"line_number":175,"context_line":"        dev \u003d {\u0027device\u0027: port[\u0027id\u0027],"},{"line_number":176,"context_line":"               \u0027port_id\u0027: port[\u0027id\u0027],"},{"line_number":177,"context_line":"               \u0027network_id\u0027: network[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_8d45f143","line":174,"in_reply_to":"1a4dcd0f_889ba417","updated":"2015-08-07 07:37:35.000000000","message":"Look at line 240.\n\nBasically, I cannot override it in subclasses otherwise. (It didn\u0027t seem to work as an static method but could it could be I did something wrong).","commit_id":"75358026133a24d5ad4aa06437e329dc3b22162d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"78fad56452e41b7d28a02dad3925158ec41897b1","unresolved":false,"context_lines":[{"line_number":237,"context_line":"            details \u003d []"},{"line_number":238,"context_line":"            for port in ports:"},{"line_number":239,"context_line":"                if port[\u0027id\u0027] in devices:"},{"line_number":240,"context_line":"                    dev \u003d self._get_device_details("},{"line_number":241,"context_line":"                        port, network)"},{"line_number":242,"context_line":"                    details.append(dev)"},{"line_number":243,"context_line":"            return {\u0027devices\u0027: details, \u0027failed_devices\u0027: []}"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a4dcd0f_72117e03","line":240,"updated":"2015-08-07 07:37:35.000000000","message":"To make sure we can override it in the subclasses..","commit_id":"75358026133a24d5ad4aa06437e329dc3b22162d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":171,"context_line":"                \u0027ip_address\u0027], ip_len)]"},{"line_number":172,"context_line":"            self.driver.init_l3(port.get(\u0027vif_name\u0027), ip_cidrs, namespace\u003dNone)"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"    def _get_device_details(self, port, network):"},{"line_number":175,"context_line":"        dev \u003d {\u0027device\u0027: port[\u0027id\u0027],"},{"line_number":176,"context_line":"               \u0027port_id\u0027: port[\u0027id\u0027],"},{"line_number":177,"context_line":"               \u0027network_id\u0027: network[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_69709040","line":174,"updated":"2015-08-07 11:13:00.000000000","message":"hm. why the change?","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"c7aacc6dc588c05900a0cafd6c65d0d47ed848f6","unresolved":false,"context_lines":[{"line_number":237,"context_line":"            details \u003d []"},{"line_number":238,"context_line":"            for port in ports:"},{"line_number":239,"context_line":"                if port[\u0027id\u0027] in devices:"},{"line_number":240,"context_line":"                    dev \u003d self._get_device_details("},{"line_number":241,"context_line":"                        port, network)"},{"line_number":242,"context_line":"                    details.append(dev)"},{"line_number":243,"context_line":"            return {\u0027devices\u0027: details, \u0027failed_devices\u0027: []}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_290a888a","line":240,"updated":"2015-08-07 11:13:00.000000000","message":"self.__class__._get_device_details?","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"5a0a770699e17e090735e0986e24fcc78daaa2e8","unresolved":false,"context_lines":[{"line_number":237,"context_line":"            details \u003d []"},{"line_number":238,"context_line":"            for port in ports:"},{"line_number":239,"context_line":"                if port[\u0027id\u0027] in devices:"},{"line_number":240,"context_line":"                    dev \u003d self._get_device_details("},{"line_number":241,"context_line":"                        port, network)"},{"line_number":242,"context_line":"                    details.append(dev)"},{"line_number":243,"context_line":"            return {\u0027devices\u0027: details, \u0027failed_devices\u0027: []}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_440a5b8b","line":240,"in_reply_to":"1a4dcd0f_045a13f2","updated":"2015-08-07 11:30:00.000000000","message":"sorry. for the sake of not referencing self ;)","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b91c840b0c719c22fcdc717d8e545d5427a44475","unresolved":false,"context_lines":[{"line_number":237,"context_line":"            details \u003d []"},{"line_number":238,"context_line":"            for port in ports:"},{"line_number":239,"context_line":"                if port[\u0027id\u0027] in devices:"},{"line_number":240,"context_line":"                    dev \u003d self._get_device_details("},{"line_number":241,"context_line":"                        port, network)"},{"line_number":242,"context_line":"                    details.append(dev)"},{"line_number":243,"context_line":"            return {\u0027devices\u0027: details, \u0027failed_devices\u0027: []}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_045a13f2","line":240,"in_reply_to":"1a4dcd0f_290a888a","updated":"2015-08-07 11:26:25.000000000","message":"That may actually work, but it\u0027s more twisted than using self. Sincerely, this again boils down to the staticmethod by shake of just being a static method, not by having static usage from class....","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"ad4b652ce22e4a7a06a8ca58d51d06febb359032","unresolved":false,"context_lines":[{"line_number":237,"context_line":"            details \u003d []"},{"line_number":238,"context_line":"            for port in ports:"},{"line_number":239,"context_line":"                if port[\u0027id\u0027] in devices:"},{"line_number":240,"context_line":"                    dev \u003d self._get_device_details("},{"line_number":241,"context_line":"                        port, network)"},{"line_number":242,"context_line":"                    details.append(dev)"},{"line_number":243,"context_line":"            return {\u0027devices\u0027: details, \u0027failed_devices\u0027: []}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_045c537b","line":240,"in_reply_to":"1a4dcd0f_440a5b8b","updated":"2015-08-07 11:32:43.000000000","message":"well, for the least, it\u0027s probably enough to have it as class method.","commit_id":"ffdc698dc544c7ca6e609cbb174d372ce854ac3d"}]}
