)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"776820098545f4f91fd969eca5ac3e1e97419f11","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Tunnel ID range validation for VXLAN/GRE networks"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Currently,there is no check which validates the values of"},{"line_number":10,"context_line":"tunnel ID range for VXLAN/GRE networks.It should be between"},{"line_number":11,"context_line":"1 to 16777215."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Closes-Bug: #1342143"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1abeadc6_a4309957","line":10,"updated":"2014-08-18 13:12:22.000000000","message":"nit: add space after period.","commit_id":"82fe8e32e1b4b20359d2f92cbb776171d11068d8"}],"neutron/plugins/ml2/drivers/type_gre.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"776820098545f4f91fd969eca5ac3e1e97419f11","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        except Exception:"},{"line_number":80,"context_line":"            LOG.exception(_(\"Failed to parse tunnel_id_ranges. \""},{"line_number":81,"context_line":"                            \"Service terminated!\"))"},{"line_number":82,"context_line":"            sys.exit(1)"},{"line_number":83,"context_line":"        self._sync_gre_allocations()"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    def reserve_provider_segment(self, session, segment):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_e45ff170","line":82,"updated":"2014-08-18 13:12:22.000000000","message":"use SystemExit()","commit_id":"82fe8e32e1b4b20359d2f92cbb776171d11068d8"}],"neutron/plugins/ml2/drivers/type_tunnel.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c7b86e49eaf9f11d1b9221174e732be8f4f65a2a","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                LOG.error(_(\"Invalid tunnel ID range: \u0027%(range)s\u0027 - %(e)s. \""},{"line_number":66,"context_line":"                            \"Service terminated!\"),"},{"line_number":67,"context_line":"                          {\u0027range\u0027: tunnel_ranges, \u0027e\u0027: ex})"},{"line_number":68,"context_line":"                sys.exit(1)"},{"line_number":69,"context_line":"        LOG.info(_(\"%(type)s ID ranges: %(range)s\"),"},{"line_number":70,"context_line":"                 {\u0027type\u0027: tunnel_type, \u0027range\u0027: current_range})"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_c7dd5372","line":68,"updated":"2014-08-15 18:54:28.000000000","message":"i think inner method should not exit, especially if exception is handled in caller method.\nIt\u0027s also not good for UTs where ut process may be termintated without giving much info about the failure","commit_id":"f76131ff0158aa55e30882c05c6ff05f3454106a"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"0b2c76c83297846cb3a69b3efd9103435b28d34b","unresolved":false,"context_lines":[{"line_number":65,"context_line":"                LOG.error(_(\"Invalid tunnel ID range: \u0027%(range)s\u0027 - %(e)s. \""},{"line_number":66,"context_line":"                            \"Service terminated!\"),"},{"line_number":67,"context_line":"                          {\u0027range\u0027: tunnel_ranges, \u0027e\u0027: ex})"},{"line_number":68,"context_line":"                sys.exit(1)"},{"line_number":69,"context_line":"        LOG.info(_(\"%(type)s ID ranges: %(range)s\"),"},{"line_number":70,"context_line":"                 {\u0027type\u0027: tunnel_type, \u0027range\u0027: current_range})"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7ac7a964_a25677d0","line":68,"in_reply_to":"7ac7a964_c7dd5372","updated":"2014-08-16 09:59:54.000000000","message":"Done","commit_id":"f76131ff0158aa55e30882c05c6ff05f3454106a"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"776820098545f4f91fd969eca5ac3e1e97419f11","unresolved":false,"context_lines":[{"line_number":59,"context_line":"                tun_max \u003d tun_max.strip()"},{"line_number":60,"context_line":"                tunnel_range \u003d (int(tun_min), int(tun_max))"},{"line_number":61,"context_line":"            except ValueError as ex:"},{"line_number":62,"context_line":"                raise exc.NetworkTunnelRangeError(tunnel_range\u003dentry, error\u003dex)"},{"line_number":63,"context_line":"            plugin_utils.verify_tunnel_range(tunnel_range)"},{"line_number":64,"context_line":"            current_range.append(tunnel_range)"},{"line_number":65,"context_line":"        LOG.info(_(\"%(type)s ID ranges: %(range)s\"),"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_02b05d8a","line":62,"updated":"2014-08-18 13:12:22.000000000","message":"Although the exception handler is not doing anything that could cause a change context (e.g. logging), it may be good defensive programming to use save_and_reraise_exception (with reraise false)","commit_id":"82fe8e32e1b4b20359d2f92cbb776171d11068d8"}],"neutron/plugins/ml2/drivers/type_vxlan.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"776820098545f4f91fd969eca5ac3e1e97419f11","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        except Exception:"},{"line_number":88,"context_line":"            LOG.exception(_(\"Failed to parse vxlan_vni_ranges. \""},{"line_number":89,"context_line":"                            \"Service terminated!\"))"},{"line_number":90,"context_line":"            sys.exit(1)"},{"line_number":91,"context_line":"        self._sync_vxlan_allocations()"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def reserve_provider_segment(self, session, segment):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_84c71d12","line":90,"updated":"2014-08-18 13:12:22.000000000","message":"use SystemExit","commit_id":"82fe8e32e1b4b20359d2f92cbb776171d11068d8"}],"neutron/tests/unit/test_common_utils.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"776820098545f4f91fd969eca5ac3e1e97419f11","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"class UtilTestParseTunnelRanges(base.BaseTestCase):"},{"line_number":68,"context_line":"    _err_prefix \u003d \"Invalid network Tunnel range: \u0027\""},{"line_number":69,"context_line":"    _err_bad_tunnel \u003d \"\u0027 - \u0027%s is not a valid tunnel id\u0027\""},{"line_number":70,"context_line":"    _err_range \u003d \"\u0027 - \u0027End of tunnel range is less than start of tunnel range\u0027\""},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_e240c158","line":68,"updated":"2014-08-18 13:12:22.000000000","message":"Comments from another code review with the same changes...\n\nCould include tunnel range with _err_prefix, like:\n    _err_prefix \u003d \"Invalid network tunnel range: \u0027%d:%d\u0027 - \"\n\nThen, the other two strings can remove duplicate code.","commit_id":"82fe8e32e1b4b20359d2f92cbb776171d11068d8"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"776820098545f4f91fd969eca5ac3e1e97419f11","unresolved":false,"context_lines":[{"line_number":66,"context_line":""},{"line_number":67,"context_line":"class UtilTestParseTunnelRanges(base.BaseTestCase):"},{"line_number":68,"context_line":"    _err_prefix \u003d \"Invalid network Tunnel range: \u0027\""},{"line_number":69,"context_line":"    _err_bad_tunnel \u003d \"\u0027 - \u0027%s is not a valid tunnel id\u0027\""},{"line_number":70,"context_line":"    _err_range \u003d \"\u0027 - \u0027End of tunnel range is less than start of tunnel range\u0027\""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def _trange_invalid_tunnel(self, t_range_tuple, n):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_422fb5a1","line":69,"updated":"2014-08-18 13:12:22.000000000","message":"Don\u0027t need quotes around %s...id?","commit_id":"82fe8e32e1b4b20359d2f92cbb776171d11068d8"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"776820098545f4f91fd969eca5ac3e1e97419f11","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        self.check_one_tunnel_id_invalid((0, 1000), 1)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def test_range_first_tunnel_id_invalid_limit_plus_one(self):"},{"line_number":103,"context_line":"        self.check_one_tunnel_id_invalid((16777216, 1000), 1)"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    def test_range_first_tunnel_id_invalid_too_big(self):"},{"line_number":106,"context_line":"        self.check_one_tunnel_id_invalid((17777216, 1000), 1)"}],"source_content_type":"text/x-python","patch_set":2,"id":"1abeadc6_7dfff001","line":103,"updated":"2014-08-18 13:12:22.000000000","message":"Really only need to test inside limits and outside limits (there are some unneeded tests here). Should use the constants defined, rather than magic numbers on these tests, for VLAN limits.","commit_id":"82fe8e32e1b4b20359d2f92cbb776171d11068d8"}]}
