)]}'
{"neutron/agent/l3/dvr_fip_ns.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9e72b360335f73889f80e72b88055449feb2062c","unresolved":false,"context_lines":[{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from neutron.agent.l3 import fip_rule_priority_allocator as frpa"},{"line_number":18,"context_line":"from neutron.agent.l3.link_local_allocator import LinkLocalAllocator"},{"line_number":19,"context_line":"from neutron.agent.l3 import namespaces"},{"line_number":20,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":21,"context_line":"from neutron.agent.linux import iptables_manager"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_69122259","line":18,"updated":"2015-08-11 21:09:45.000000000","message":"nit: I know L17 is to not wrap, but I\u0027d vote for keeping the syntax the same for both.","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0c8a73584bac1a994649e4de23dfb47e39cf4a30","unresolved":false,"context_lines":[{"line_number":15,"context_line":"import os"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from neutron.agent.l3 import fip_rule_priority_allocator as frpa"},{"line_number":18,"context_line":"from neutron.agent.l3.link_local_allocator import LinkLocalAllocator"},{"line_number":19,"context_line":"from neutron.agent.l3 import namespaces"},{"line_number":20,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":21,"context_line":"from neutron.agent.linux import iptables_manager"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_3a43f643","line":18,"in_reply_to":"1a4dcd0f_69122259","updated":"2015-08-11 22:29:09.000000000","message":"Done","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"}],"neutron/agent/l3/dvr_local_router.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"cf9e9fd1367f18efd86fb722d3482047bfaf9732","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                                table\u003ddvr_fip_ns.FIP_RT_TBL,"},{"line_number":115,"context_line":"                                priority\u003drule_pr)"},{"line_number":116,"context_line":"            self.fip_ns.deallocate_rule_priority(rule_pr)"},{"line_number":117,"context_line":"            #TODO(rajeev): Handle else case - exception/log?"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        device \u003d ip_lib.IPDevice(fip_2_rtr_name, namespace\u003dfip_ns_name)"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_353c69c7","side":"PARENT","line":117,"updated":"2015-08-11 22:58:39.000000000","message":"Is this no longer relevant?","commit_id":"86bf1b41504ed9aa1c1a6c4a8b653ab7b5be9b52"}],"neutron/agent/l3/fip_rule_priority_allocator.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9e72b360335f73889f80e72b88055449feb2062c","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class FipRulePriorityAllocator(ItemAllocator):"},{"line_number":36,"context_line":"    \"\"\"Maanges allocation of floating ips (FIPs)."},{"line_number":37,"context_line":"        IP rule priorities assigned to DVR floating IPs need"},{"line_number":38,"context_line":"        to be preserved over L3 agent restarts."},{"line_number":39,"context_line":"        This class provides an allocator which saves the prirorities"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_49040649","line":36,"updated":"2015-08-11 21:09:45.000000000","message":"s/Maanges/Manages, and allocation of floating IP priorities, not FIPs themselves.","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0c8a73584bac1a994649e4de23dfb47e39cf4a30","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class FipRulePriorityAllocator(ItemAllocator):"},{"line_number":36,"context_line":"    \"\"\"Maanges allocation of floating ips (FIPs)."},{"line_number":37,"context_line":"        IP rule priorities assigned to DVR floating IPs need"},{"line_number":38,"context_line":"        to be preserved over L3 agent restarts."},{"line_number":39,"context_line":"        This class provides an allocator which saves the prirorities"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_da88d273","line":36,"in_reply_to":"1a4dcd0f_49040649","updated":"2015-08-11 22:29:09.000000000","message":"Done","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9e72b360335f73889f80e72b88055449feb2062c","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    def __init__(self, data_store_path, priority_rule_start,"},{"line_number":43,"context_line":"                 priority_rule_end):"},{"line_number":44,"context_line":"        \"\"\"Create the necessary pool and create the item allocator"},{"line_number":45,"context_line":"            using \u0027,\u0027 as the delimiter and LinkLocalAllocator as the"},{"line_number":46,"context_line":"            class type"},{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":"        pool \u003d set(FipPriority(str(s)) for s in range(priority_rule_start,"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_09a83e1f","line":45,"updated":"2015-08-11 21:09:45.000000000","message":"s/LinkLocalAllocator/FipRulePriorityAllocator","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0c8a73584bac1a994649e4de23dfb47e39cf4a30","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    def __init__(self, data_store_path, priority_rule_start,"},{"line_number":43,"context_line":"                 priority_rule_end):"},{"line_number":44,"context_line":"        \"\"\"Create the necessary pool and create the item allocator"},{"line_number":45,"context_line":"            using \u0027,\u0027 as the delimiter and LinkLocalAllocator as the"},{"line_number":46,"context_line":"            class type"},{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":"        pool \u003d set(FipPriority(str(s)) for s in range(priority_rule_start,"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_1a8b9a69","line":45,"in_reply_to":"1a4dcd0f_09a83e1f","updated":"2015-08-11 22:29:09.000000000","message":"Done","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"cf9e9fd1367f18efd86fb722d3482047bfaf9732","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014 Hewlett-Packard Development Company, L.P."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_55401534","line":1,"updated":"2015-08-11 22:58:39.000000000","message":"Are you planning a career move?  I\u0027d say either use your company or none.  \nAlso, the year is wrong to be really nit-picky.","commit_id":"7789bdd5b8caf5e186e17f8b92bfa20d06cc52ba"}],"neutron/agent/l3/floating_point_allocator.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"93a1b5294d5c229ab981ebf2a46ca65d54dfaa48","unresolved":false,"context_lines":[{"line_number":10,"context_line":"#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":11,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"from neutron.agent.l3.item_allocator import ItemAllocator"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1a4dcd0f_f74ec939","line":13,"updated":"2015-08-07 02:56:20.000000000","message":"floating_point_allocator.py ? :)","commit_id":"467c7414cfc07470bd97d2db97334ff29787c776"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"7df6230a0003c8547b5572b8ca0f9847074d8278","unresolved":false,"context_lines":[{"line_number":10,"context_line":"#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":11,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":12,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":13,"context_line":"#    under the License."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"from neutron.agent.l3.item_allocator import ItemAllocator"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1a4dcd0f_f7fc89b9","line":13,"in_reply_to":"1a4dcd0f_f74ec939","updated":"2015-08-07 02:57:48.000000000","message":"yeah - I need to rename it - I expect I\u0027ll have another go around with it","commit_id":"467c7414cfc07470bd97d2db97334ff29787c776"}],"neutron/agent/l3/link_local_allocator.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"10a58f87cecab76c65d50faaf7fb42eb0c360a8c","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        subnet \u003d netaddr.IPNetwork(subnet)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        self.allocations \u003d {}"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        self.remembered \u003d {}"},{"line_number":51,"context_line":"        for line in self._read():"},{"line_number":52,"context_line":"            key, cidr \u003d line.strip().split(\u0027,\u0027)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_7cae5e82","side":"PARENT","line":49,"updated":"2015-08-05 22:56:14.000000000","message":"nit:  Try to avoid gratuitous whitespace changes.","commit_id":"3b0f10c4645a8971e850da1be49b628608cb6bbd"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"10a58f87cecab76c65d50faaf7fb42eb0c360a8c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"1a4dcd0f_3ca696ae","updated":"2015-08-05 22:56:14.000000000","message":"Should this file be renamed?  I also wonder if this refactor should be done in a separate commit on its own so that reviewers can stay a bit more focused in the context of each patch.  Food for thought.\n\nThis is an interesting and clever reuse of this class in general.","commit_id":"9d07e84588de3aa24d9c8cc493d4df99bfa2fdce"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"f1592c8695845d32c7491d27c9ff7a3b3c784c59","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"1a4dcd0f_7f0df0e6","in_reply_to":"1a4dcd0f_3ca696ae","updated":"2015-08-05 23:10:44.000000000","message":"I\u0027m inclined to leave this as is for now and rename/refactor it later","commit_id":"9d07e84588de3aa24d9c8cc493d4df99bfa2fdce"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"10a58f87cecab76c65d50faaf7fb42eb0c360a8c","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    key,value"},{"line_number":43,"context_line":"    one record per line."},{"line_number":44,"context_line":"    \"\"\""},{"line_number":45,"context_line":"    def __init__(self, state_file, ItemClass, itemPool, delimiter\u003d\u0027,\u0027):"},{"line_number":46,"context_line":"        \"\"\"Read the file with previous allocations recorded."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        See the note in the allocate method for more detail."}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_7c33be62","line":45,"updated":"2015-08-05 22:56:14.000000000","message":"IMO, the CamelCase is fine for ItemClass because it represents a type.  I actually like it that way but I\u0027ve had other reviewers disagree with me in the past.\n\nCamelCase is probably inappropriate for itemPool.  It should be item_pool.","commit_id":"9d07e84588de3aa24d9c8cc493d4df99bfa2fdce"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"f1592c8695845d32c7491d27c9ff7a3b3c784c59","unresolved":false,"context_lines":[{"line_number":42,"context_line":"    key,value"},{"line_number":43,"context_line":"    one record per line."},{"line_number":44,"context_line":"    \"\"\""},{"line_number":45,"context_line":"    def __init__(self, state_file, ItemClass, itemPool, delimiter\u003d\u0027,\u0027):"},{"line_number":46,"context_line":"        \"\"\"Read the file with previous allocations recorded."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        See the note in the allocate method for more detail."}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_3ffc48b7","line":45,"in_reply_to":"1a4dcd0f_7c33be62","updated":"2015-08-05 23:10:44.000000000","message":"Done","commit_id":"9d07e84588de3aa24d9c8cc493d4df99bfa2fdce"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"10a58f87cecab76c65d50faaf7fb42eb0c360a8c","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        return hash(self.__repr__())"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def __eq__(self, other):"},{"line_number":152,"context_line":"            if isinstance(other, FipPriority):"},{"line_number":153,"context_line":"                return (self.index \u003d\u003d other.index)"},{"line_number":154,"context_line":"            else:"},{"line_number":155,"context_line":"                return False"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_7c589e8a","line":152,"updated":"2015-08-05 22:56:14.000000000","message":"nit:  Bad indentation.","commit_id":"9d07e84588de3aa24d9c8cc493d4df99bfa2fdce"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"f1592c8695845d32c7491d27c9ff7a3b3c784c59","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        return hash(self.__repr__())"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def __eq__(self, other):"},{"line_number":152,"context_line":"            if isinstance(other, FipPriority):"},{"line_number":153,"context_line":"                return (self.index \u003d\u003d other.index)"},{"line_number":154,"context_line":"            else:"},{"line_number":155,"context_line":"                return False"}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_ff182020","line":152,"in_reply_to":"1a4dcd0f_7c589e8a","updated":"2015-08-05 23:10:44.000000000","message":"Done","commit_id":"9d07e84588de3aa24d9c8cc493d4df99bfa2fdce"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"46a6cecf10c83c1f9f4cde90b0c82a7531185a78","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"class LinkLocalAllocator(ItemAllocator):"},{"line_number":31,"context_line":"    \"\"\"Manages allocation of link local IP addresses. meh"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    These link local addresses are used for routing inside the fip namespaces."},{"line_number":34,"context_line":"    The associations need to persist across agent restarts to maintain"}],"source_content_type":"text/x-python","patch_set":13,"id":"1a4dcd0f_26157348","line":31,"updated":"2015-08-10 17:04:34.000000000","message":"meh?","commit_id":"30a8bf4ea0fb649c9adbec619f2477c1d75284db"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9e72b360335f73889f80e72b88055449feb2062c","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"class LinkLocalAllocator(ItemAllocator):"},{"line_number":31,"context_line":"    \"\"\"Manages allocation of link local IP addresses. meh"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    These link local addresses are used for routing inside the fip namespaces."},{"line_number":34,"context_line":"    The associations need to persist across agent restarts to maintain"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_c9efb685","line":31,"updated":"2015-08-11 21:09:45.000000000","message":"-meh :)","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0c8a73584bac1a994649e4de23dfb47e39cf4a30","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"class LinkLocalAllocator(ItemAllocator):"},{"line_number":31,"context_line":"    \"\"\"Manages allocation of link local IP addresses. meh"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    These link local addresses are used for routing inside the fip namespaces."},{"line_number":34,"context_line":"    The associations need to persist across agent restarts to maintain"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_bad14659","line":31,"in_reply_to":"1a4dcd0f_c9efb685","updated":"2015-08-11 22:29:09.000000000","message":"Done","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"}],"neutron/tests/functional/agent/test_l3_agent.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9e72b360335f73889f80e72b88055449feb2062c","unresolved":false,"context_lines":[{"line_number":1302,"context_line":"            fip_ns, floating_ips[0][\u0027fixed_ip_address\u0027])"},{"line_number":1303,"context_line":"        self.assertNotEqual(fip_rule_prio_1, fip_rule_prio_2)"},{"line_number":1304,"context_line":"        floating_ips[0][\u0027floating_ip_address\u0027] \u003d \u002719.4.4.2\u0027"},{"line_number":1305,"context_line":"        floating_ips[0][\u0027fixed_ip_address\u0027] \u003d \u002710.0.0.1\u0027"},{"line_number":1306,"context_line":""},{"line_number":1307,"context_line":"    def _get_fip_rule_priority(self, namespace, fip):"},{"line_number":1308,"context_line":"        iprule \u003d ip_lib.IPRule(namespace)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_a9f58aed","line":1305,"updated":"2015-08-11 21:09:45.000000000","message":"I don\u0027t think these two assignments after the assert are really doing anything","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0c8a73584bac1a994649e4de23dfb47e39cf4a30","unresolved":false,"context_lines":[{"line_number":1302,"context_line":"            fip_ns, floating_ips[0][\u0027fixed_ip_address\u0027])"},{"line_number":1303,"context_line":"        self.assertNotEqual(fip_rule_prio_1, fip_rule_prio_2)"},{"line_number":1304,"context_line":"        floating_ips[0][\u0027floating_ip_address\u0027] \u003d \u002719.4.4.2\u0027"},{"line_number":1305,"context_line":"        floating_ips[0][\u0027fixed_ip_address\u0027] \u003d \u002710.0.0.1\u0027"},{"line_number":1306,"context_line":""},{"line_number":1307,"context_line":"    def _get_fip_rule_priority(self, namespace, fip):"},{"line_number":1308,"context_line":"        iprule \u003d ip_lib.IPRule(namespace)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_fa002ead","line":1305,"in_reply_to":"1a4dcd0f_a9f58aed","updated":"2015-08-11 22:29:09.000000000","message":"My understanding was that I was supposed to \"put things back the way I found them\", so they do that - I added a comment explaining why","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9e72b360335f73889f80e72b88055449feb2062c","unresolved":false,"context_lines":[{"line_number":1306,"context_line":""},{"line_number":1307,"context_line":"    def _get_fip_rule_priority(self, namespace, fip):"},{"line_number":1308,"context_line":"        iprule \u003d ip_lib.IPRule(namespace)"},{"line_number":1309,"context_line":"        lines \u003d iprule.rule._as_root([4], [\u0027show\u0027]).splitlines()"},{"line_number":1310,"context_line":"        for line in lines:"},{"line_number":1311,"context_line":"            if fip in line:"},{"line_number":1312,"context_line":"                info \u003d iprule.rule._parse_line(4, line)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_29497ab7","line":1309,"updated":"2015-08-11 21:09:45.000000000","message":"Looks like it\u0027s maybe time to write IPRule.show() instead of calling hidden methods in IPRule - it could take both IP and priority and...","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0c8a73584bac1a994649e4de23dfb47e39cf4a30","unresolved":false,"context_lines":[{"line_number":1306,"context_line":""},{"line_number":1307,"context_line":"    def _get_fip_rule_priority(self, namespace, fip):"},{"line_number":1308,"context_line":"        iprule \u003d ip_lib.IPRule(namespace)"},{"line_number":1309,"context_line":"        lines \u003d iprule.rule._as_root([4], [\u0027show\u0027]).splitlines()"},{"line_number":1310,"context_line":"        for line in lines:"},{"line_number":1311,"context_line":"            if fip in line:"},{"line_number":1312,"context_line":"                info \u003d iprule.rule._parse_line(4, line)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_5af842c3","line":1309,"in_reply_to":"1a4dcd0f_29497ab7","updated":"2015-08-11 22:29:09.000000000","message":"yeah, but I\u0027m worried that would become a commingled change.  I\u0027d rather do it is as a separate patch - maybe after this merges.","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0841e364f2cb7fce55115660b1d4122fcf6a1531","unresolved":false,"context_lines":[{"line_number":1290,"context_line":"        router_info \u003d self.generate_dvr_router_info()"},{"line_number":1291,"context_line":"        router \u003d self.manage_router(self.agent, router_info)"},{"line_number":1292,"context_line":"        floating_ips \u003d router.router[l3_constants.FLOATINGIP_KEY]"},{"line_number":1293,"context_line":"        fip_ns \u003d \"qrouter-\" + router_info[\u0027id\u0027]"},{"line_number":1294,"context_line":"        fip_rule_prio_1 \u003d self._get_fip_rule_priority("},{"line_number":1295,"context_line":"            fip_ns, floating_ips[0][\u0027fixed_ip_address\u0027])"},{"line_number":1296,"context_line":"        restarted_agent \u003d neutron_l3_agent.L3NATAgent("}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_50126358","line":1293,"updated":"2015-08-11 23:59:07.000000000","message":"This variable name is really confusing... fip_ns -\u003e router_ns? Also, why not just use router.ns_name?","commit_id":"7789bdd5b8caf5e186e17f8b92bfa20d06cc52ba"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0841e364f2cb7fce55115660b1d4122fcf6a1531","unresolved":false,"context_lines":[{"line_number":1301,"context_line":"        fip_rule_prio_2 \u003d self._get_fip_rule_priority("},{"line_number":1302,"context_line":"            fip_ns, floating_ips[0][\u0027fixed_ip_address\u0027])"},{"line_number":1303,"context_line":"        self.assertNotEqual(fip_rule_prio_1, fip_rule_prio_2)"},{"line_number":1304,"context_line":"        # put things back the way we found them"},{"line_number":1305,"context_line":"        floating_ips[0][\u0027floating_ip_address\u0027] \u003d \u002719.4.4.2\u0027"},{"line_number":1306,"context_line":"        floating_ips[0][\u0027fixed_ip_address\u0027] \u003d \u002710.0.0.1\u0027"},{"line_number":1307,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_30431744","line":1304,"updated":"2015-08-11 23:59:07.000000000","message":"You can delete lines 1304 to 1306, there\u0027s no need to do this. Other tests create their own router instances.","commit_id":"7789bdd5b8caf5e186e17f8b92bfa20d06cc52ba"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0841e364f2cb7fce55115660b1d4122fcf6a1531","unresolved":false,"context_lines":[{"line_number":1305,"context_line":"        floating_ips[0][\u0027floating_ip_address\u0027] \u003d \u002719.4.4.2\u0027"},{"line_number":1306,"context_line":"        floating_ips[0][\u0027fixed_ip_address\u0027] \u003d \u002710.0.0.1\u0027"},{"line_number":1307,"context_line":""},{"line_number":1308,"context_line":"    def _get_fip_rule_priority(self, namespace, fip):"},{"line_number":1309,"context_line":"        iprule \u003d ip_lib.IPRule(namespace)"},{"line_number":1310,"context_line":"        lines \u003d iprule.rule._as_root([4], [\u0027show\u0027]).splitlines()"},{"line_number":1311,"context_line":"        for line in lines:"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_701d1f61","line":1308,"updated":"2015-08-11 23:59:07.000000000","message":"rename fip to fixed_ip?","commit_id":"7789bdd5b8caf5e186e17f8b92bfa20d06cc52ba"}],"neutron/tests/unit/agent/l3/test_dvr_fip_ns.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c82e13b4de3ea596ff547c1fe3836137aea08103","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        device_exists.return_value \u003d True"},{"line_number":192,"context_line":"        ri \u003d mock.Mock()"},{"line_number":193,"context_line":"        ri.dist_fip_count \u003d None"},{"line_number":194,"context_line":"        ri.floating_ips_dic \u003d {}"},{"line_number":195,"context_line":"        self._test_scan_fip_ports(ri, [])"},{"line_number":196,"context_line":"        self.assertEqual(0, ri.dist_fip_count)"},{"line_number":197,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"1a4dcd0f_b2d1c1fd","line":194,"updated":"2015-08-10 15:50:51.000000000","message":"* ri.floating_ips_dict ?","commit_id":"30a8bf4ea0fb649c9adbec619f2477c1d75284db"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9e72b360335f73889f80e72b88055449feb2062c","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        device_exists.return_value \u003d True"},{"line_number":192,"context_line":"        ri \u003d mock.Mock()"},{"line_number":193,"context_line":"        ri.dist_fip_count \u003d None"},{"line_number":194,"context_line":"        ri.floating_ips_dic \u003d {}"},{"line_number":195,"context_line":"        self._test_scan_fip_ports(ri, [])"},{"line_number":196,"context_line":"        self.assertEqual(0, ri.dist_fip_count)"},{"line_number":197,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_097fdeab","line":194,"updated":"2015-08-11 21:09:45.000000000","message":"s/floating_ips_dic/floating_ips_dict","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"0c8a73584bac1a994649e4de23dfb47e39cf4a30","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        device_exists.return_value \u003d True"},{"line_number":192,"context_line":"        ri \u003d mock.Mock()"},{"line_number":193,"context_line":"        ri.dist_fip_count \u003d None"},{"line_number":194,"context_line":"        ri.floating_ips_dic \u003d {}"},{"line_number":195,"context_line":"        self._test_scan_fip_ports(ri, [])"},{"line_number":196,"context_line":"        self.assertEqual(0, ri.dist_fip_count)"},{"line_number":197,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a4dcd0f_5a1fe207","line":194,"in_reply_to":"1a4dcd0f_097fdeab","updated":"2015-08-11 22:29:09.000000000","message":"Done","commit_id":"ded173a7201cef1d3b1afa436792a2c563d359da"}],"neutron/tests/unit/agent/l3/test_fip_rule_priority_allocator.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0841e364f2cb7fce55115660b1d4122fcf6a1531","unresolved":false,"context_lines":[{"line_number":46,"context_line":"        self.assertNotEqual(hash(left_pr), hash(other_pr))"},{"line_number":47,"context_line":"        self.assertNotEqual(hash(other_pr), hash(right_pr))"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def test_set_operations(self):"},{"line_number":50,"context_line":"        starting_set \u003d set(frpa.FipPriority(str(s)) for s in range(1, 10))"},{"line_number":51,"context_line":"        remove_priority_list \u003d [frpa.FipPriority(\u00278\u0027), frpa.FipPriority(\u00279\u0027)]"},{"line_number":52,"context_line":"        starting_set.difference_update(remove_priority_list)"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_10e29b2f","line":49,"updated":"2015-08-11 23:59:07.000000000","message":"Please remove this test. We may assume that the \u0027set\u0027 built-in works.","commit_id":"7789bdd5b8caf5e186e17f8b92bfa20d06cc52ba"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0841e364f2cb7fce55115660b1d4122fcf6a1531","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self.assertNotIn(remove_priority_list, starting_set)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"class TestFipRulePriorityAllocator(base.BaseTestCase):"},{"line_number":58,"context_line":"    def setUp(self):"},{"line_number":59,"context_line":"        super(TestFipRulePriorityAllocator, self).setUp()"},{"line_number":60,"context_line":"        self.priority_rule_start \u003d 100"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_30979749","line":57,"updated":"2015-08-11 23:59:07.000000000","message":"This test case is duplicating a lot of tests from neutron/tests/unit/agent/l3/test_link_local_allocator. Both of these classes inherit from the same class and don\u0027t change behavior, they only differ via arguments. Please merge these tests and the link local tests in to the ItemAllocator tests. Tests aren\u0027t free, they have a maintenance cost, there\u0027s no need to duplicate them.","commit_id":"7789bdd5b8caf5e186e17f8b92bfa20d06cc52ba"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0841e364f2cb7fce55115660b1d4122fcf6a1531","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                                            self.priority_rule_end)"},{"line_number":68,"context_line":"        self.assertEqual(self.data_store_path, _frpa.state_file)"},{"line_number":69,"context_line":"        self.assertEqual(frpa.FipPriority, _frpa.ItemClass)"},{"line_number":70,"context_line":"        self.assertEqual(self.priority_rule_end - self.priority_rule_start,"},{"line_number":71,"context_line":"                         len(_frpa.pool))"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    def test_allocate(self):"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_f0528fdd","line":70,"updated":"2015-08-11 23:59:07.000000000","message":"This is a case of the test code replicating the logic of the production code in order to test it. Generally speaking a no no but in this case it doesn\u0027t really matter.","commit_id":"7789bdd5b8caf5e186e17f8b92bfa20d06cc52ba"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0841e364f2cb7fce55115660b1d4122fcf6a1531","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        self.assertNotIn(allocated_priority, _frpa.pool)"},{"line_number":82,"context_line":"        self.assertIn(\"101.0.0.1\", _frpa.allocations)"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    def test_allocate_from_file(self):"},{"line_number":85,"context_line":"        expected_priority \u003d frpa.FipPriority(\u0027102\u0027)"},{"line_number":86,"context_line":"        with mock.patch.object(frpa.FipRulePriorityAllocator, \u0027_read\u0027) as read:"},{"line_number":87,"context_line":"            read.return_value \u003d [\"101.0.0.2,102\\n\"]"}],"source_content_type":"text/x-python","patch_set":15,"id":"1a4dcd0f_90b6abf7","line":84,"updated":"2015-08-11 23:59:07.000000000","message":"test_allocate_priority_already_in_file?","commit_id":"7789bdd5b8caf5e186e17f8b92bfa20d06cc52ba"}],"neutron/tests/unit/agent/l3/test_link_local_allocator.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"bc32bb8bd227bfe2bfdafc5ca5ad95f4bba8f991","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        super(TestFipPriority, self).setUp()"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def test__init__(self):"},{"line_number":117,"context_line":"        test_pr \u003d lla.FipPriority(10)"},{"line_number":118,"context_line":"        self.assertEqual(10, test_pr.index)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"    def test__repr__(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a4dcd0f_752cfe98","line":117,"updated":"2015-08-06 20:33:42.000000000","message":"Seeing lla.* here is pretty strange, and leads me to side with Carl on creating the new ItemAllocator class, renaming the existing files and fixing the LinkLocalAddressPair class to work with it, followed by adding the FipPriority class in a separate change. It would be easier to logically follow at least.","commit_id":"b665b7d62bb1a561f554166802b478a8339eba48"}]}
