)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c698d178afdb37eb3ffc4338a1aa51d687cf5de","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-08-14 03:04:21 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix support of external gw-ip outside subnet"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Before fix when l3-agent was trying to create a route with the"},{"line_number":10,"context_line":"gateway IP which is outside the external network subnet, the"},{"line_number":11,"context_line":"command was failing since the router namespace does not know anything"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7ac7a964_4ebe0201","line":8,"updated":"2014-08-14 10:44:32.000000000","message":"What about supporting a tenant network with a gw out of subnet? (IE: fixing the DHCP agent). This should be fixed in a separate patch, but until that fix lands you couldn\u0027t really close the bug.","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"}],"neutron/agent/l3_agent.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c698d178afdb37eb3ffc4338a1aa51d687cf5de","unresolved":false,"context_lines":[{"line_number":1145,"context_line":"                             bridge\u003dself.conf.external_network_bridge,"},{"line_number":1146,"context_line":"                             namespace\u003dns_name,"},{"line_number":1147,"context_line":"                             prefix\u003dEXTERNAL_DEV_PREFIX)"},{"line_number":1148,"context_line":""},{"line_number":1149,"context_line":"        self._static_route_external_gw_added(ex_gw_port, interface_name,"},{"line_number":1150,"context_line":"                                             ns_name)"},{"line_number":1151,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_6eee5eee","line":1148,"updated":"2014-08-14 10:44:32.000000000","message":"You should only call this method in case the gw is out of the subnet. All of the information is in ex_gw_port. You can use something like:\n\ngateway_ip \u003d netaddr.IPAddress(ex_gw_port[\u0027subnet\u0027][\u0027gateway_ip\u0027])\n\nif  gateway_ip.version \u003d\u003d 4 and gateway_ip not in netaddr.IPNetwork(ex_gw_port[\u0027subnet\u0027][\u0027ip_cidr\u0027]):\n\n...","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c698d178afdb37eb3ffc4338a1aa51d687cf5de","unresolved":false,"context_lines":[{"line_number":1187,"context_line":"        cmd \u003d [\u0027sysctl\u0027, \u0027-w\u0027, \u0027net.ipv4.conf.%s.proxy_arp\u003d1\u0027 % interface_name]"},{"line_number":1188,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.root_helper, namespace\u003dns_name)"},{"line_number":1189,"context_line":"        ip_wrapper.netns.execute(cmd, check_exit_code\u003dFalse)"},{"line_number":1190,"context_line":""},{"line_number":1191,"context_line":"    def _static_route_external_gw_added(self, ex_gw_port,"},{"line_number":1192,"context_line":"                                        interface_name, ns_name):"},{"line_number":1193,"context_line":"        \"\"\"Static route to support external gw out of subnet\"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_ceb4d2f4","line":1190,"updated":"2014-08-14 10:44:32.000000000","message":"How about:\n\nadd_route_to_ip\n\n?","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"131837c4c39d15b2888ed7a99f85376bf766c00e","unresolved":false,"context_lines":[{"line_number":1189,"context_line":"        ip_wrapper.netns.execute(cmd, check_exit_code\u003dFalse)"},{"line_number":1190,"context_line":""},{"line_number":1191,"context_line":"    def _static_route_external_gw_added(self, ex_gw_port,"},{"line_number":1192,"context_line":"                                        interface_name, ns_name):"},{"line_number":1193,"context_line":"        \"\"\"Static route to support external gw out of subnet\"\"\""},{"line_number":1194,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027route\u0027, \u0027replace\u0027, \u0027to\u0027,"},{"line_number":1195,"context_line":"               ex_gw_port[\u0027subnet\u0027].get(\u0027gateway_ip\u0027), \u0027dev\u0027, interface_name]"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_86e46b3c","line":1192,"updated":"2014-08-14 19:05:37.000000000","message":"This method should really live over in ip_lib.py in the IpRouteCommand() class, right below add_route()\n\nThen you can call it like done in floating_ip_added_dist() below in this file:\n\n    device \u003d ip_lib.IPDevice(interface_name, self.root_helper,\n                                 namespace\u003dns_name)\n    device.route.add_route_to_ip(gw_ip)","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"}],"neutron/tests/unit/test_l3_agent.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"7089dc5ab6232df25ee9c44032195d40a591c680","unresolved":false,"context_lines":[{"line_number":366,"context_line":""},{"line_number":367,"context_line":"    def test_agent_remove_internal_network(self):"},{"line_number":368,"context_line":"        self._test_internal_network_action(\u0027remove\u0027)"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def _test_external_gateway_action(self, action, ex_gw_port):"},{"line_number":371,"context_line":"        router \u003d prepare_router_data(num_internal_ports\u003d2)"},{"line_number":372,"context_line":"        ri \u003d l3_agent.RouterInfo(router[\u0027id\u0027], self.conf.root_helper,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_84d39937","line":369,"updated":"2014-08-14 11:22:43.000000000","message":"I *highly* recommend rebasing this patch on top of:\nhttps://review.openstack.org/#/c/109860/\n\nAnd changing the ex_gw_ip to be outside of the subnet in the functional test (No need to have it as a separate test). This way if there\u0027s an exception / error the test will fail and we\u0027ll know about it. With these unit tests, we won\u0027t.","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c698d178afdb37eb3ffc4338a1aa51d687cf5de","unresolved":false,"context_lines":[{"line_number":366,"context_line":""},{"line_number":367,"context_line":"    def test_agent_remove_internal_network(self):"},{"line_number":368,"context_line":"        self._test_internal_network_action(\u0027remove\u0027)"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def _test_external_gateway_action(self, action, ex_gw_port):"},{"line_number":371,"context_line":"        router \u003d prepare_router_data(num_internal_ports\u003d2)"},{"line_number":372,"context_line":"        ri \u003d l3_agent.RouterInfo(router[\u0027id\u0027], self.conf.root_helper,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_2e79c62f","line":369,"updated":"2014-08-14 10:44:32.000000000","message":"You should add a unit test for the new function.","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c698d178afdb37eb3ffc4338a1aa51d687cf5de","unresolved":false,"context_lines":[{"line_number":436,"context_line":"                                                    [\u002720.0.0.30/24\u0027],"},{"line_number":437,"context_line":"                                                    **kwargs)"},{"line_number":438,"context_line":""},{"line_number":439,"context_line":"    def test_agent_add_external_gateway(self):"},{"line_number":440,"context_line":"        ex_gw_port \u003d {\u0027fixed_ips\u0027: [{\u0027ip_address\u0027: \u002720.0.0.30\u0027,"},{"line_number":441,"context_line":"                                     \u0027subnet_id\u0027: _uuid()}],"},{"line_number":442,"context_line":"                      \u0027subnet\u0027: {\u0027gateway_ip\u0027: \u002720.0.0.1\u0027},"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_aea6b6bf","line":439,"updated":"2014-08-14 10:44:32.000000000","message":"There\u0027s a lot of duplication here (The ex_gw_port dict).","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c698d178afdb37eb3ffc4338a1aa51d687cf5de","unresolved":false,"context_lines":[{"line_number":455,"context_line":"                      \u0027id\u0027: _uuid(),"},{"line_number":456,"context_line":"                      \u0027network_id\u0027: _uuid(),"},{"line_number":457,"context_line":"                      \u0027mac_address\u0027: \u0027ca:fe:de:ad:be:ef\u0027,"},{"line_number":458,"context_line":"                      \u0027ip_cidr\u0027: \u002720.0.0.30/24\u0027}"},{"line_number":459,"context_line":"        self._test_external_gateway_action(\u0027add\u0027, ex_gw_port)"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_0ed16afb","line":458,"updated":"2014-08-14 10:44:32.000000000","message":"What is this actually testing? You\u0027re not asserting anything differently in this case inside _test_external_gateway_action.","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"5c698d178afdb37eb3ffc4338a1aa51d687cf5de","unresolved":false,"context_lines":[{"line_number":484,"context_line":"    def test_arping_no_namespace(self):"},{"line_number":485,"context_line":"        self._test_arping(namespace\u003dFalse)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":"    def test_agent_remove_external_gateway(self):"},{"line_number":488,"context_line":"        ex_gw_port \u003d {\u0027fixed_ips\u0027: [{\u0027ip_address\u0027: \u002720.0.0.30\u0027,"},{"line_number":489,"context_line":"                                     \u0027subnet_id\u0027: _uuid()}],"},{"line_number":490,"context_line":"                      \u0027subnet\u0027: {\u0027gateway_ip\u0027: \u002720.0.0.1\u0027},"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_ce35b247","line":487,"updated":"2014-08-14 10:44:32.000000000","message":"Ditto regarding code duplication. You could add a function with the needed parameters that returns this dict, and use it in all 3 places.","commit_id":"f70e4a2c768efd565a1b6b79f5c097f975982257"}]}
