)]}'
{"neutron_tempest_plugin/api/base.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"a0191623c492b86f7754df6b19945738695ecaba","unresolved":false,"context_lines":[{"line_number":298,"context_line":"        It can be a str or a netaddr.IPAddress"},{"line_number":299,"context_line":"        If gateway is not given, then it will use default address for"},{"line_number":300,"context_line":"        given subnet CIDR, like \"192.168.0.1\" for \"192.168.0.0/24\" CIDR"},{"line_number":301,"context_line":"        if gateway is given as constants.NO_GATEWAY"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        :param cidr: CIDR of the subnet to create"},{"line_number":304,"context_line":"        It can be either None, a str or a netaddr.IPNetwork instance"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_a4da75e6","line":301,"updated":"2018-05-07 15:02:28.000000000","message":"... then no gateway will be assigned\n\nI don\u0027t love using a constant, but I guess there isn\u0027t any other way without breaking the API of this method.","commit_id":"8a48b838543f081ba53244e645f12242d6838a5a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"9921174349b9776dba7a93ba083d76f0212a5b72","unresolved":false,"context_lines":[{"line_number":298,"context_line":"        It can be a str or a netaddr.IPAddress"},{"line_number":299,"context_line":"        If gateway is not given, then it will use default address for"},{"line_number":300,"context_line":"        given subnet CIDR, like \"192.168.0.1\" for \"192.168.0.0/24\" CIDR"},{"line_number":301,"context_line":"        if gateway is given as constants.NO_GATEWAY"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        :param cidr: CIDR of the subnet to create"},{"line_number":304,"context_line":"        It can be either None, a str or a netaddr.IPNetwork instance"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_c61770a3","line":301,"in_reply_to":"5f7c97a3_a4da75e6","updated":"2018-05-07 20:31:24.000000000","message":"done","commit_id":"8a48b838543f081ba53244e645f12242d6838a5a"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"a0191623c492b86f7754df6b19945738695ecaba","unresolved":false,"context_lines":[{"line_number":336,"context_line":"                        \"Gateway IP version doesn\u0027t match IP version\")"},{"line_number":337,"context_line":"            else:"},{"line_number":338,"context_line":"                ip_version \u003d gateway_ip.version"},{"line_number":339,"context_line":"        elif gateway \u003d\u003d constants.NO_GATEWAY:"},{"line_number":340,"context_line":"            ip_version \u003d ip_version or cls._ip_version"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"        for subnet_cidr in cls.get_subnet_cidrs("}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_44304157","line":339,"updated":"2018-05-07 15:02:28.000000000","message":"Can\u0027t this just be else: and the extra check on L331 goes away?  i.e. does it matter if it is always set?","commit_id":"8a48b838543f081ba53244e645f12242d6838a5a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"9921174349b9776dba7a93ba083d76f0212a5b72","unresolved":false,"context_lines":[{"line_number":336,"context_line":"                        \"Gateway IP version doesn\u0027t match IP version\")"},{"line_number":337,"context_line":"            else:"},{"line_number":338,"context_line":"                ip_version \u003d gateway_ip.version"},{"line_number":339,"context_line":"        elif gateway \u003d\u003d constants.NO_GATEWAY:"},{"line_number":340,"context_line":"            ip_version \u003d ip_version or cls._ip_version"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"        for subnet_cidr in cls.get_subnet_cidrs("}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_263f4426","line":339,"in_reply_to":"5f7c97a3_44304157","updated":"2018-05-07 20:31:24.000000000","message":"I think it can be just \"else\" here but extra check \"gateway !\u003d NO_GATEWAY\" can\u0027t go away otherwise in case if gateway would be set to this \"NO_ GATEWAY\" value then it would enter there and raise exception in L332","commit_id":"8a48b838543f081ba53244e645f12242d6838a5a"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"faf0104c96d1bb863a82366062e05fb3a056b50e","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        return network"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"    @classmethod"},{"line_number":287,"context_line":"    def create_subnet(cls, network, gateway\u003dNone, cidr\u003dNone, mask_bits\u003dNone,"},{"line_number":288,"context_line":"                      ip_version\u003dNone, client\u003dNone, **kwargs):"},{"line_number":289,"context_line":"        \"\"\"Wrapper utility that returns a test subnet."},{"line_number":290,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_d59fea00","line":287,"range":{"start_line":287,"start_character":36,"end_line":287,"end_character":48},"updated":"2018-05-09 16:18:37.000000000","message":"See Federico\u0027s comment in the bug, but he changed this from gateway\u003d\u0027\u0027 and recommended changing that back.  That might be a better approach than adding a constant.","commit_id":"09432572b20a2b5421e6c00cd1b9bff54022d22e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"faf0104c96d1bb863a82366062e05fb3a056b50e","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        if not client:"},{"line_number":330,"context_line":"            client \u003d cls.client"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        if gateway and gateway !\u003d constants.NO_GATEWAY:"},{"line_number":333,"context_line":"            gateway_ip \u003d netaddr.IPAddress(gateway)"},{"line_number":334,"context_line":"            if ip_version:"},{"line_number":335,"context_line":"                if ip_version !\u003d gateway_ip.version:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_758e16d1","line":332,"updated":"2018-05-09 16:18:37.000000000","message":"Would then just need to change this to \u0027if gateway is not None:\u0027","commit_id":"09432572b20a2b5421e6c00cd1b9bff54022d22e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"456f549cf25ed74fcca6d66312c6e7307926a04a","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        if not client:"},{"line_number":330,"context_line":"            client \u003d cls.client"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        if gateway and gateway !\u003d constants.NO_GATEWAY:"},{"line_number":333,"context_line":"            gateway_ip \u003d netaddr.IPAddress(gateway)"},{"line_number":334,"context_line":"            if ip_version:"},{"line_number":335,"context_line":"                if ip_version !\u003d gateway_ip.version:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_8925d7c4","line":332,"in_reply_to":"5f7c97a3_435a404f","updated":"2018-05-09 19:17:49.000000000","message":"Yes, that will work. I just thought that using some constant value will be more \"verbose\" and clear than using None and \"\" and treat them differently. But if You think it\u0027s better than it\u0027s fine for me also :)","commit_id":"09432572b20a2b5421e6c00cd1b9bff54022d22e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"f74b96f509feeadae17697768076dded44be2fc9","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        if not client:"},{"line_number":330,"context_line":"            client \u003d cls.client"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        if gateway and gateway !\u003d constants.NO_GATEWAY:"},{"line_number":333,"context_line":"            gateway_ip \u003d netaddr.IPAddress(gateway)"},{"line_number":334,"context_line":"            if ip_version:"},{"line_number":335,"context_line":"                if ip_version !\u003d gateway_ip.version:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_435a404f","line":332,"in_reply_to":"5f7c97a3_5881cf8e","updated":"2018-05-09 17:39:27.000000000","message":"So this would stay just \u0027if gateway\u0027, but the below would change to check against None - that seems to get us the same behavior.  I guess I\u0027d prefer it since restoring the gateway argument back to \u0027\u0027 is backwards-compatible with the way it worked before this change.","commit_id":"09432572b20a2b5421e6c00cd1b9bff54022d22e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"905133cf49d291100a1f483496906cb5608697ee","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        if not client:"},{"line_number":330,"context_line":"            client \u003d cls.client"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        if gateway and gateway !\u003d constants.NO_GATEWAY:"},{"line_number":333,"context_line":"            gateway_ip \u003d netaddr.IPAddress(gateway)"},{"line_number":334,"context_line":"            if ip_version:"},{"line_number":335,"context_line":"                if ip_version !\u003d gateway_ip.version:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_5881cf8e","line":332,"in_reply_to":"5f7c97a3_58db0f1a","updated":"2018-05-09 16:49:16.000000000","message":"I think it would, right?\n\ngateway\u003d\u0027\u0027 - automatic\ngateway\u003dNone - no gateway\ngateway\u003d1.2.3.4 - gateway 1.2.3.4","commit_id":"09432572b20a2b5421e6c00cd1b9bff54022d22e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"a99530801b9941d43b946d8dbb6d58f49b9eb333","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        if not client:"},{"line_number":330,"context_line":"            client \u003d cls.client"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"        if gateway and gateway !\u003d constants.NO_GATEWAY:"},{"line_number":333,"context_line":"            gateway_ip \u003d netaddr.IPAddress(gateway)"},{"line_number":334,"context_line":"            if ip_version:"},{"line_number":335,"context_line":"                if ip_version !\u003d gateway_ip.version:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_58db0f1a","line":332,"in_reply_to":"5f7c97a3_758e16d1","updated":"2018-05-09 16:37:47.000000000","message":"No, you need to differentiate between \"automatic gateway\", \"no gateway\" and \"custom gateway\". If we compare to None only, we wouldn\u0027t know if it should be allocated automatically or passed value should be gateway.","commit_id":"09432572b20a2b5421e6c00cd1b9bff54022d22e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"faf0104c96d1bb863a82366062e05fb3a056b50e","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        for subnet_cidr in cls.get_subnet_cidrs("},{"line_number":344,"context_line":"                ip_version\u003dip_version, cidr\u003dcidr, mask_bits\u003dmask_bits):"},{"line_number":345,"context_line":"            if cls.try_reserve_subnet_cidr(subnet_cidr):"},{"line_number":346,"context_line":"                if gateway \u003d\u003d constants.NO_GATEWAY:"},{"line_number":347,"context_line":"                    gateway_ip \u003d None"},{"line_number":348,"context_line":"                else:"},{"line_number":349,"context_line":"                    gateway_ip \u003d str(gateway or (subnet_cidr.ip + 1))"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_35c2deea","line":346,"updated":"2018-05-09 16:18:37.000000000","message":"And a similar change here.","commit_id":"09432572b20a2b5421e6c00cd1b9bff54022d22e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"289fc15c98e24bd398191f7236d4176eb0545d68","unresolved":false,"context_lines":[{"line_number":343,"context_line":"                ip_version\u003dip_version, cidr\u003dcidr, mask_bits\u003dmask_bits):"},{"line_number":344,"context_line":"            if cls.try_reserve_subnet_cidr(subnet_cidr):"},{"line_number":345,"context_line":"                if gateway is not None:"},{"line_number":346,"context_line":"                    kwargs[\u0027gateway_ip\u0027] \u003d str(gateway or (subnet_cidr.ip + 1))"},{"line_number":347,"context_line":"                try:"},{"line_number":348,"context_line":"                    body \u003d client.create_subnet("},{"line_number":349,"context_line":"                        network_id\u003dnetwork[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_b959f735","line":346,"range":{"start_line":346,"start_character":28,"end_line":346,"end_character":38},"updated":"2018-05-10 08:23:32.000000000","message":"The difference now is that if somebody passed both \"gateway\" and \"gateway_ip\" parameters, we got an error, but now we overwrite the gateway_ip.","commit_id":"d98e27d58147ece009591a2a1a718f6948c38f6e"}],"neutron_tempest_plugin/scenario/test_trunk.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"faf0104c96d1bb863a82366062e05fb3a056b50e","unresolved":false,"context_lines":[{"line_number":231,"context_line":"        vlan_tag \u003d 10"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        vlan_network \u003d self.create_network()"},{"line_number":234,"context_line":"        self.create_subnet(vlan_network, gateway\u003dcommon_constants.NO_GATEWAY)"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"        servers \u003d ["},{"line_number":237,"context_line":"            self._create_server_with_port_and_subport(vlan_network, vlan_tag)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_15648221","line":234,"updated":"2018-05-09 16:18:37.000000000","message":"And this would go back to gateway\u003dNone","commit_id":"09432572b20a2b5421e6c00cd1b9bff54022d22e"}]}
