)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"cef8b02eb67dfacd9df9d386aa9d8d5f530315f9","unresolved":false,"context_lines":[{"line_number":17,"context_line":"- The validator is refactored and moved into validators."},{"line_number":18,"context_line":"- The \u0027id\u0027 EXTRA_DHCP_OPT_KEY_SPECS is removed as its"},{"line_number":19,"context_line":"unused."},{"line_number":20,"context_line":"- The validator in lib is registered as type \u0027type:list_of_extra_dhcp_options\u0027"},{"line_number":21,"context_line":"which is slight different than the original type. This is intentional to"},{"line_number":22,"context_line":"ensure the rehome/consume goes smooth and the same validator"},{"line_number":23,"context_line":"is not registered multiple times (ex [3])."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a1ced50_b67a6d86","line":20,"range":{"start_line":20,"start_character":72,"end_line":20,"end_character":78},"updated":"2017-03-21 23:20:01.000000000","message":"This line can be wrapped at 72 characters, the maximum length for a commit message line","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":17,"context_line":"- The validator is refactored and moved into validators."},{"line_number":18,"context_line":"- The \u0027id\u0027 EXTRA_DHCP_OPT_KEY_SPECS is removed as its"},{"line_number":19,"context_line":"unused."},{"line_number":20,"context_line":"- The validator in lib is registered as type \u0027type:list_of_extra_dhcp_options\u0027"},{"line_number":21,"context_line":"which is slight different than the original type. This is intentional to"},{"line_number":22,"context_line":"ensure the rehome/consume goes smooth and the same validator"},{"line_number":23,"context_line":"is not registered multiple times (ex [3])."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"dfeb2761_751e7071","line":20,"range":{"start_line":20,"start_character":72,"end_line":20,"end_character":78},"in_reply_to":"1a1ced50_b67a6d86","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":18,"context_line":"- The \u0027id\u0027 EXTRA_DHCP_OPT_KEY_SPECS is removed as its"},{"line_number":19,"context_line":"unused."},{"line_number":20,"context_line":"- The validator in lib is registered as type \u0027type:list_of_extra_dhcp_options\u0027"},{"line_number":21,"context_line":"which is slight different than the original type. This is intentional to"},{"line_number":22,"context_line":"ensure the rehome/consume goes smooth and the same validator"},{"line_number":23,"context_line":"is not registered multiple times (ex [3])."},{"line_number":24,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a1ced50_4bd35904","line":21,"range":{"start_line":21,"start_character":9,"end_line":21,"end_character":15},"updated":"2017-03-21 20:03:36.000000000","message":"slightly","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":18,"context_line":"- The \u0027id\u0027 EXTRA_DHCP_OPT_KEY_SPECS is removed as its"},{"line_number":19,"context_line":"unused."},{"line_number":20,"context_line":"- The validator in lib is registered as type \u0027type:list_of_extra_dhcp_options\u0027"},{"line_number":21,"context_line":"which is slight different than the original type. This is intentional to"},{"line_number":22,"context_line":"ensure the rehome/consume goes smooth and the same validator"},{"line_number":23,"context_line":"is not registered multiple times (ex [3])."},{"line_number":24,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"dfeb2761_55136c67","line":21,"range":{"start_line":21,"start_character":9,"end_line":21,"end_character":15},"in_reply_to":"1a1ced50_4bd35904","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"cef8b02eb67dfacd9df9d386aa9d8d5f530315f9","unresolved":false,"context_lines":[{"line_number":19,"context_line":"unused."},{"line_number":20,"context_line":"- The validator in lib is registered as type \u0027type:list_of_extra_dhcp_options\u0027"},{"line_number":21,"context_line":"which is slight different than the original type. This is intentional to"},{"line_number":22,"context_line":"ensure the rehome/consume goes smooth and the same validator"},{"line_number":23,"context_line":"is not registered multiple times (ex [3])."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"UTs + release note also included."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a1ced50_56c21935","line":22,"range":{"start_line":22,"start_character":31,"end_line":22,"end_character":37},"updated":"2017-03-21 23:20:01.000000000","message":"smoothly","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":19,"context_line":"unused."},{"line_number":20,"context_line":"- The validator in lib is registered as type \u0027type:list_of_extra_dhcp_options\u0027"},{"line_number":21,"context_line":"which is slight different than the original type. This is intentional to"},{"line_number":22,"context_line":"ensure the rehome/consume goes smooth and the same validator"},{"line_number":23,"context_line":"is not registered multiple times (ex [3])."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"UTs + release note also included."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"dfeb2761_3518e87f","line":22,"range":{"start_line":22,"start_character":31,"end_line":22,"end_character":37},"in_reply_to":"1a1ced50_56c21935","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":25,"context_line":"UTs + release note also included."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"In addition a bugfix is included that\u0027s required for the validator"},{"line_number":28,"context_line":"herein. The problem is that if data is passed _validate_list_of_items"},{"line_number":29,"context_line":"that is a list of dicts, a TypeError is raised because dicts are"},{"line_number":30,"context_line":"unhashable."},{"line_number":31,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a1ced50_eb0a4589","line":28,"range":{"start_line":28,"start_character":39,"end_line":28,"end_character":46},"updated":"2017-03-21 20:03:36.000000000","message":"passed into","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":25,"context_line":"UTs + release note also included."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"In addition a bugfix is included that\u0027s required for the validator"},{"line_number":28,"context_line":"herein. The problem is that if data is passed _validate_list_of_items"},{"line_number":29,"context_line":"that is a list of dicts, a TypeError is raised because dicts are"},{"line_number":30,"context_line":"unhashable."},{"line_number":31,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"dfeb2761_f5096031","line":28,"range":{"start_line":28,"start_character":39,"end_line":28,"end_character":46},"in_reply_to":"1a1ced50_eb0a4589","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"[1] http://codesearch.openstack.org/?q\u003dExtraDhcpOptNotFound"},{"line_number":37,"context_line":"[2] http://codesearch.openstack.org/?q\u003dExtraDhcpOptBadData"},{"line_number":38,"context_line":"[3] http://logs.openstack.org/87/428387/5/check/gate-tempest-"},{"line_number":39,"context_line":"dsvm-neutron-src-neutron-lib-ubuntu-xenial/c17cf32/logs/"},{"line_number":40,"context_line":"screen-q-svc.txt.gz#_2017-03-16_15_26_43_477"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Change-Id: Ic55b6a1db38634cab7854538f77632115f1b7ec6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1a1ced50_4b4199a8","line":40,"range":{"start_line":38,"start_character":1,"end_line":40,"end_character":44},"updated":"2017-03-21 20:03:36.000000000","message":"that will be irrelevant in a month when logs are scrapped. Prefer to remove.","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"[1] http://codesearch.openstack.org/?q\u003dExtraDhcpOptNotFound"},{"line_number":37,"context_line":"[2] http://codesearch.openstack.org/?q\u003dExtraDhcpOptBadData"},{"line_number":38,"context_line":"[3] http://logs.openstack.org/87/428387/5/check/gate-tempest-"},{"line_number":39,"context_line":"dsvm-neutron-src-neutron-lib-ubuntu-xenial/c17cf32/logs/"},{"line_number":40,"context_line":"screen-q-svc.txt.gz#_2017-03-16_15_26_43_477"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"Change-Id: Ic55b6a1db38634cab7854538f77632115f1b7ec6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"dfeb2761_d5065c21","line":40,"range":{"start_line":38,"start_character":1,"end_line":40,"end_character":44},"in_reply_to":"1a1ced50_4b4199a8","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"}],"neutron_lib/api/definitions/extra_dhcp_opt.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"65742052e305232aad747f57680641998a58bce0","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"# ExtraDHcpOpts Exceptions"},{"line_number":22,"context_line":"class ExtraDhcpOptNotFound(exceptions.NotFound):"},{"line_number":23,"context_line":"    message \u003d _(\"ExtraDhcpOpt %(id)s could not be found\")"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"fa31d9ce_a836bae4","line":22,"updated":"2017-02-13 19:08:05.000000000","message":"This should be rebased on [1] and move the exceptions out of the api-def.\n\n\n[1] https://review.openstack.org/#/c/423289/","commit_id":"701f6a835e2dcf3c5413cc99f20410f276ec00da"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"844e5d94ade518c608362d76eaa0eefb991a4e8f","unresolved":false,"context_lines":[{"line_number":25,"context_line":"DHCP_OPT_VALUE_MAX_LEN \u003d 255"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"EXTRA_DHCP_OPT_KEY_SPECS \u003d {"},{"line_number":28,"context_line":"    \u0027id\u0027: {\u0027type:uuid\u0027: None, \u0027required\u0027: False},"},{"line_number":29,"context_line":"    \u0027opt_name\u0027: {\u0027type:not_empty_string\u0027: DHCP_OPT_NAME_MAX_LEN,"},{"line_number":30,"context_line":"                 \u0027required\u0027: True},"},{"line_number":31,"context_line":"    \u0027opt_value\u0027: {\u0027type:not_empty_string_or_none\u0027: DHCP_OPT_VALUE_MAX_LEN,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba2be162_a223d6bb","line":28,"updated":"2017-03-06 01:53:46.000000000","message":"hmm... \"id\" field is defined in the key spec, but it is never used in extra_dhcp_opt db code, models and object. It actually looks unnecessary.","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"9e69704e700b10a0080a9b4a16d9fcb6b57e6217","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def _validate_extra_dhcp_opt(data, key_specs\u003dNone):"},{"line_number":40,"context_line":"    if data is not None:"},{"line_number":41,"context_line":"        if not isinstance(data, list):"},{"line_number":42,"context_line":"            raise extra_dhcp_opt.ExtraDhcpOptBadData(data\u003ddata)"},{"line_number":43,"context_line":"        for d in data:"},{"line_number":44,"context_line":"            if d[\u0027opt_name\u0027] in VALID_BLANK_EXTRA_DHCP_OPTS:"},{"line_number":45,"context_line":"                msg \u003d validators.validate_string_or_none("}],"source_content_type":"text/x-python","patch_set":3,"id":"3a1ff146_472593a9","line":42,"range":{"start_line":41,"start_character":0,"end_line":42,"end_character":63},"updated":"2017-03-15 04:52:00.000000000","message":"We can keep this check outside of the IF loop(at Line#40), as we always expect data to be a list.\n\nWe can also check of accidentally data is not []","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"844e5d94ade518c608362d76eaa0eefb991a4e8f","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                msg \u003d validators.validate_string_or_none("},{"line_number":46,"context_line":"                    d[\u0027opt_value\u0027], DHCP_OPT_VALUE_MAX_LEN)"},{"line_number":47,"context_line":"            else:"},{"line_number":48,"context_line":"                msg \u003d validators.validate_dict(d, key_specs)"},{"line_number":49,"context_line":"            if msg:"},{"line_number":50,"context_line":"                raise extra_dhcp_opt.ExtraDhcpOptBadData(data\u003dmsg)"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"ba2be162_e5fdd8b1","line":48,"updated":"2017-03-06 01:53:46.000000000","message":"Several comments on the validation logic at L.44-47:\n\n- If \u0027opt_name\u0027 is one of VALID_BLANK_EXTRA_DHCP_OPTS, only opt_value is validated. opt_name and ip_version are not validated.\n- In general, this validation logic looks like \"validate:list_of_dict_or_none\"\n- An exception is that the validation of opt_value depends on the other field (opt_name). To generalize this, do we need to define some new validator which takes values of other depending field(s)?","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"9e69704e700b10a0080a9b4a16d9fcb6b57e6217","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                msg \u003d validators.validate_string_or_none("},{"line_number":46,"context_line":"                    d[\u0027opt_value\u0027], DHCP_OPT_VALUE_MAX_LEN)"},{"line_number":47,"context_line":"            else:"},{"line_number":48,"context_line":"                msg \u003d validators.validate_dict(d, key_specs)"},{"line_number":49,"context_line":"            if msg:"},{"line_number":50,"context_line":"                raise extra_dhcp_opt.ExtraDhcpOptBadData(data\u003dmsg)"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a1ff146_6c2516c1","line":48,"in_reply_to":"ba2be162_e5fdd8b1","updated":"2017-03-15 04:52:00.000000000","message":"Agree with the listof_dict validator.\nI guess IP version is validated in the API Spec and the opt_name is already in the list of valid blank options.","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"93abd2ce83909ddd1f6fca182836445424cc31a2","unresolved":false,"context_lines":[{"line_number":24,"context_line":"DHCP_OPT_NAME_MAX_LEN \u003d 64"},{"line_number":25,"context_line":"DHCP_OPT_VALUE_MAX_LEN \u003d 255"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"EXTRA_DHCP_OPT_KEY_SPECS \u003d {"},{"line_number":28,"context_line":"    \u0027id\u0027: {\u0027type:uuid\u0027: None, \u0027required\u0027: False},"},{"line_number":29,"context_line":"    \u0027opt_name\u0027: {\u0027type:not_empty_string\u0027: DHCP_OPT_NAME_MAX_LEN,"},{"line_number":30,"context_line":"                 \u0027required\u0027: True},"},{"line_number":31,"context_line":"    \u0027opt_value\u0027: {\u0027type:not_empty_string_or_none\u0027: DHCP_OPT_VALUE_MAX_LEN,"},{"line_number":32,"context_line":"                  \u0027required\u0027: True},"},{"line_number":33,"context_line":"    \u0027ip_version\u0027: {\u0027convert_to\u0027: converters.convert_to_int,"},{"line_number":34,"context_line":"                   \u0027type:values\u0027: [4, 6],"},{"line_number":35,"context_line":"                   \u0027required\u0027: False}"},{"line_number":36,"context_line":"}"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def _validate_extra_dhcp_opt(data, key_specs\u003dNone):"},{"line_number":40,"context_line":"    if data is not None:"},{"line_number":41,"context_line":"        if not isinstance(data, list):"},{"line_number":42,"context_line":"            raise extra_dhcp_opt.ExtraDhcpOptBadData(data\u003ddata)"},{"line_number":43,"context_line":"        for d in data:"},{"line_number":44,"context_line":"            if d[\u0027opt_name\u0027] in VALID_BLANK_EXTRA_DHCP_OPTS:"},{"line_number":45,"context_line":"                msg \u003d validators.validate_string_or_none("},{"line_number":46,"context_line":"                    d[\u0027opt_value\u0027], DHCP_OPT_VALUE_MAX_LEN)"},{"line_number":47,"context_line":"            else:"},{"line_number":48,"context_line":"                msg \u003d validators.validate_dict(d, key_specs)"},{"line_number":49,"context_line":"            if msg:"},{"line_number":50,"context_line":"                raise extra_dhcp_opt.ExtraDhcpOptBadData(data\u003dmsg)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"validators.add_validator(\u0027list_of_extra_dhcp_opts\u0027,"},{"line_number":53,"context_line":"                         _validate_extra_dhcp_opt)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"EXTRADHCPOPTS \u003d \u0027extra_dhcp_opts\u0027"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"ba2be162_0cd22c28","line":53,"range":{"start_line":27,"start_character":0,"end_line":53,"end_character":50},"updated":"2017-03-04 01:23:30.000000000","message":"Personally I don\u0027t feel that this belongs here at all. We should try and simplify this definition a bit rather than porting it as-is.","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"c5a4c9468ae03cd9c553e56f94b0f77993e3530b","unresolved":false,"context_lines":[{"line_number":24,"context_line":"DHCP_OPT_NAME_MAX_LEN \u003d 64"},{"line_number":25,"context_line":"DHCP_OPT_VALUE_MAX_LEN \u003d 255"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"EXTRA_DHCP_OPT_KEY_SPECS \u003d {"},{"line_number":28,"context_line":"    \u0027id\u0027: {\u0027type:uuid\u0027: None, \u0027required\u0027: False},"},{"line_number":29,"context_line":"    \u0027opt_name\u0027: {\u0027type:not_empty_string\u0027: DHCP_OPT_NAME_MAX_LEN,"},{"line_number":30,"context_line":"                 \u0027required\u0027: True},"},{"line_number":31,"context_line":"    \u0027opt_value\u0027: {\u0027type:not_empty_string_or_none\u0027: DHCP_OPT_VALUE_MAX_LEN,"},{"line_number":32,"context_line":"                  \u0027required\u0027: True},"},{"line_number":33,"context_line":"    \u0027ip_version\u0027: {\u0027convert_to\u0027: converters.convert_to_int,"},{"line_number":34,"context_line":"                   \u0027type:values\u0027: [4, 6],"},{"line_number":35,"context_line":"                   \u0027required\u0027: False}"},{"line_number":36,"context_line":"}"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def _validate_extra_dhcp_opt(data, key_specs\u003dNone):"},{"line_number":40,"context_line":"    if data is not None:"},{"line_number":41,"context_line":"        if not isinstance(data, list):"},{"line_number":42,"context_line":"            raise extra_dhcp_opt.ExtraDhcpOptBadData(data\u003ddata)"},{"line_number":43,"context_line":"        for d in data:"},{"line_number":44,"context_line":"            if d[\u0027opt_name\u0027] in VALID_BLANK_EXTRA_DHCP_OPTS:"},{"line_number":45,"context_line":"                msg \u003d validators.validate_string_or_none("},{"line_number":46,"context_line":"                    d[\u0027opt_value\u0027], DHCP_OPT_VALUE_MAX_LEN)"},{"line_number":47,"context_line":"            else:"},{"line_number":48,"context_line":"                msg \u003d validators.validate_dict(d, key_specs)"},{"line_number":49,"context_line":"            if msg:"},{"line_number":50,"context_line":"                raise extra_dhcp_opt.ExtraDhcpOptBadData(data\u003dmsg)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"validators.add_validator(\u0027list_of_extra_dhcp_opts\u0027,"},{"line_number":53,"context_line":"                         _validate_extra_dhcp_opt)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"EXTRADHCPOPTS \u003d \u0027extra_dhcp_opts\u0027"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a1ff146_255be855","line":53,"range":{"start_line":27,"start_character":0,"end_line":53,"end_character":50},"in_reply_to":"ba2be162_0cd22c28","updated":"2017-03-16 15:14:56.000000000","message":"Believe it or not I actually did consider this (a little). My hope was that the logic in this validator could be made generic and put into our lib validators, but alas IMHO the logic becomes sufficiently complex due to conditional handling of the \u0027opt_name\u0027. While sure I could write such a generic validator to leverage, I\u0027m not sure that\u0027s the best use of our time right now.\n\n\nIn the next PS I\u0027ve moved this validator right into neutron_lib.api.validators, but it\u0027s still specific to dhcp extra opts.\n\n\nHave a look at the latest PS and let me know what you think.","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":54,"context_line":"IS_STANDARD_ATTR_EXTENSION \u003d False"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# The name of the extension (mandatory)."},{"line_number":57,"context_line":"NAME \u003d \u0027Neutron Extra DHCP opts\u0027"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"# A prefix for API resources. An empty prefix means that the API is going"},{"line_number":60,"context_line":"# to be exposed at the v2/ level as any other core resource (mandatory)."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_6b257507","line":57,"range":{"start_line":57,"start_character":27,"end_line":57,"end_character":31},"updated":"2017-03-21 20:03:36.000000000","message":"options?","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5607aa9620fd17ac94248fe7a2695fffc8f25adc","unresolved":false,"context_lines":[{"line_number":54,"context_line":"IS_STANDARD_ATTR_EXTENSION \u003d False"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# The name of the extension (mandatory)."},{"line_number":57,"context_line":"NAME \u003d \u0027Neutron Extra DHCP opts\u0027"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"# A prefix for API resources. An empty prefix means that the API is going"},{"line_number":60,"context_line":"# to be exposed at the v2/ level as any other core resource (mandatory)."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_a7ea10d9","line":57,"range":{"start_line":57,"start_character":27,"end_line":57,"end_character":31},"in_reply_to":"1a1ced50_561bf972","updated":"2017-03-22 19:07:46.000000000","message":"would be silly to rely on that but yeah, I agree it\u0027s not directly related to the intent of the patch, probably better to split concerns.","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"cef8b02eb67dfacd9df9d386aa9d8d5f530315f9","unresolved":false,"context_lines":[{"line_number":54,"context_line":"IS_STANDARD_ATTR_EXTENSION \u003d False"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# The name of the extension (mandatory)."},{"line_number":57,"context_line":"NAME \u003d \u0027Neutron Extra DHCP opts\u0027"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"# A prefix for API resources. An empty prefix means that the API is going"},{"line_number":60,"context_line":"# to be exposed at the v2/ level as any other core resource (mandatory)."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_561bf972","line":57,"range":{"start_line":57,"start_character":27,"end_line":57,"end_character":31},"in_reply_to":"1a1ced50_6b257507","updated":"2017-03-21 23:20:01.000000000","message":"I think boden was trying to preserve the name as implemented currently in the Neutron side: https://github.com/openstack/neutron/blob/master/neutron/extensions/extra_dhcp_opt.py#L91\n\nIf we change this to \u0027options\u0027, we might affect users / deployers who have workflows that rely on the current name of the extension","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":54,"context_line":"IS_STANDARD_ATTR_EXTENSION \u003d False"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# The name of the extension (mandatory)."},{"line_number":57,"context_line":"NAME \u003d \u0027Neutron Extra DHCP opts\u0027"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"# A prefix for API resources. An empty prefix means that the API is going"},{"line_number":60,"context_line":"# to be exposed at the v2/ level as any other core resource (mandatory)."}],"source_content_type":"text/x-python","patch_set":6,"id":"dfeb2761_e75bf651","line":57,"range":{"start_line":57,"start_character":27,"end_line":57,"end_character":31},"in_reply_to":"1a1ced50_a7ea10d9","updated":"2017-03-30 19:22:19.000000000","message":"I changed it to options. If people are relying on the name rather than alias that sounds like a bad practice, so IMHO it\u0027s fair game to \"improve\".\n\nFeel free to disagree.","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":63,"context_line":"# The description of the extension (mandatory)."},{"line_number":64,"context_line":"DESCRIPTION \u003d (\"Extra options configuration for DHCP. \""},{"line_number":65,"context_line":"               \"For example PXE boot options to DHCP clients can \""},{"line_number":66,"context_line":"               \"be specified (e.g. tftp-server, server-ip-address, \""},{"line_number":67,"context_line":"               \"bootfile-name)\")"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"# A timestamp of when the extension was introduced (mandatory)."},{"line_number":70,"context_line":"UPDATED_TIMESTAMP \u003d \"2013-03-17T12:00:00-00:00\""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_4b56f95c","line":67,"range":{"start_line":66,"start_character":29,"end_line":67,"end_character":30},"updated":"2017-03-21 20:03:36.000000000","message":"(No action required) that\u0027s actually an interesting question where those names are defined. I suspect it\u0027s dnsmasq specific which sucks.","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"88e47ab27b097494f8737f73ffe5eba58144c179","unresolved":false,"context_lines":[{"line_number":23,"context_line":"EXTRA_DHCP_OPT_KEY_SPECS \u003d {"},{"line_number":24,"context_line":"    \u0027opt_name\u0027: {\u0027type:not_empty_string\u0027: DHCP_OPT_NAME_MAX_LEN,"},{"line_number":25,"context_line":"                 \u0027required\u0027: True},"},{"line_number":26,"context_line":"    \u0027opt_value\u0027: {\u0027type:not_empty_string_or_none\u0027:"},{"line_number":27,"context_line":"                  validators._DHCP_OPT_VALUE_MAX_LEN,"},{"line_number":28,"context_line":"                  \u0027required\u0027: True},"},{"line_number":29,"context_line":"    \u0027ip_version\u0027: {\u0027convert_to\u0027: converters.convert_to_int,"}],"source_content_type":"text/x-python","patch_set":12,"id":"bff0334d_2304347b","line":26,"updated":"2017-04-05 13:26:27.000000000","message":"I\u0027m a little confused by this type. It seems to imply that we can\u0027t have empty opts, yet _VALID_BLANK_EXTRA_DHCP_OPTS exists and after some tracing it appears the branch on L448 of the validator ends up skipping these type definitions in that case.\n\nWhether or not my interpretation is correct, I would prefer a quick inline comment here explaining that opts may have empty values if they are in the blessed constant in the other module.","commit_id":"a553b615efd17dc44cfba15126cc6e441f6db696"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"ccdc18f25a64e056059a83d99b42f19446a071a1","unresolved":false,"context_lines":[{"line_number":23,"context_line":"EXTRA_DHCP_OPT_KEY_SPECS \u003d {"},{"line_number":24,"context_line":"    \u0027opt_name\u0027: {\u0027type:not_empty_string\u0027: DHCP_OPT_NAME_MAX_LEN,"},{"line_number":25,"context_line":"                 \u0027required\u0027: True},"},{"line_number":26,"context_line":"    \u0027opt_value\u0027: {\u0027type:not_empty_string_or_none\u0027:"},{"line_number":27,"context_line":"                  validators._DHCP_OPT_VALUE_MAX_LEN,"},{"line_number":28,"context_line":"                  \u0027required\u0027: True},"},{"line_number":29,"context_line":"    \u0027ip_version\u0027: {\u0027convert_to\u0027: converters.convert_to_int,"}],"source_content_type":"text/x-python","patch_set":12,"id":"bff0334d_4f21999f","line":26,"in_reply_to":"bff0334d_2304347b","updated":"2017-04-05 14:34:11.000000000","message":"Will address along with your other comment.","commit_id":"a553b615efd17dc44cfba15126cc6e441f6db696"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"c35be668176c7d37727105359016c838000d17a7","unresolved":false,"context_lines":[{"line_number":43,"context_line":"]"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"EXTRADHCPOPTS \u003d \u0027extra_dhcp_opts\u0027"},{"line_number":46,"context_line":"CLIENT_ID \u003d \"client-id\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# The alias of the extension."}],"source_content_type":"text/x-python","patch_set":14,"id":"7ffa3b31_f5f693f9","line":46,"updated":"2017-04-19 02:13:36.000000000","message":"We reference it in neutron/agent/linux/dhcp.py","commit_id":"9496e8057c23daeff47d579fb8a63073b1f0ca9f"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"477faec59f97be624b85ab36cfa23003438f586a","unresolved":false,"context_lines":[{"line_number":43,"context_line":"]"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"EXTRADHCPOPTS \u003d \u0027extra_dhcp_opts\u0027"},{"line_number":46,"context_line":"CLIENT_ID \u003d \"client-id\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# The alias of the extension."}],"source_content_type":"text/x-python","patch_set":14,"id":"7ffa3b31_1a8499d3","line":46,"range":{"start_line":46,"start_character":0,"end_line":46,"end_character":10},"updated":"2017-04-18 16:45:38.000000000","message":"What does CLIENT_ID mean? Is it needed?\n\nI grep-ed CLIENT_ID against the code base, but nothing was found. Am I missing something?","commit_id":"9496e8057c23daeff47d579fb8a63073b1f0ca9f"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"975ca2806ff92a1573109ceedb354e22c46e3097","unresolved":false,"context_lines":[{"line_number":43,"context_line":"]"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"EXTRADHCPOPTS \u003d \u0027extra_dhcp_opts\u0027"},{"line_number":46,"context_line":"CLIENT_ID \u003d \"client-id\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# The alias of the extension."}],"source_content_type":"text/x-python","patch_set":14,"id":"5ff73747_dec75c12","line":46,"in_reply_to":"7ffa3b31_90c63d48","updated":"2017-04-25 14:42:13.000000000","message":"Done","commit_id":"9496e8057c23daeff47d579fb8a63073b1f0ca9f"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"15e60d5f7a98d215d5c4f6f49aeff316d1bfa512","unresolved":false,"context_lines":[{"line_number":43,"context_line":"]"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"EXTRADHCPOPTS \u003d \u0027extra_dhcp_opts\u0027"},{"line_number":46,"context_line":"CLIENT_ID \u003d \"client-id\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# The alias of the extension."}],"source_content_type":"text/x-python","patch_set":14,"id":"7ffa3b31_ab79ca2f","line":46,"in_reply_to":"7ffa3b31_90c63d48","updated":"2017-04-19 04:31:58.000000000","message":"I agree","commit_id":"9496e8057c23daeff47d579fb8a63073b1f0ca9f"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f52e55ac864e92120062428567a4c68cab49dadb","unresolved":false,"context_lines":[{"line_number":43,"context_line":"]"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"EXTRADHCPOPTS \u003d \u0027extra_dhcp_opts\u0027"},{"line_number":46,"context_line":"CLIENT_ID \u003d \"client-id\""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"# The alias of the extension."}],"source_content_type":"text/x-python","patch_set":14,"id":"7ffa3b31_90c63d48","line":46,"in_reply_to":"7ffa3b31_f5f693f9","updated":"2017-04-19 03:41:23.000000000","message":"Thanks for clarification. IMHO it is better to use a name which indicates it is a dhcp option name like \"DHCP_OPT_CLIENT_ID\". Thought?","commit_id":"9496e8057c23daeff47d579fb8a63073b1f0ca9f"}],"neutron_lib/api/validators.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"5687aad1e7d72d26dc4be60daa80d705f613dbec","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"3a1ff146_37e4fb39","updated":"2017-03-16 15:19:51.000000000","message":"NOTE: I can split this into a separate patch if reviewers prefer.","commit_id":"4b3816265f7d298cb33e0b6394efb59995e81e50"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"cef8b02eb67dfacd9df9d386aa9d8d5f530315f9","unresolved":false,"context_lines":[{"line_number":36,"context_line":"MAC_PATTERN \u003d \"^%s[aceACE02468](:%s{2}){5}$\" % (constants.HEX_ELEM,"},{"line_number":37,"context_line":"                                                constants.HEX_ELEM)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"_VALID_BLANK_EXTRA_DHCP_OPTS \u003d (\u0027router\u0027, \u0027classless-static-route\u0027)"},{"line_number":40,"context_line":"_DHCP_OPT_VALUE_MAX_LEN \u003d 255"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def _verify_dict_keys(expected_keys, target_dict, strict\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_f66f85f9","line":40,"range":{"start_line":39,"start_character":0,"end_line":40,"end_character":29},"updated":"2017-03-21 23:20:01.000000000","message":"I find it curious that you define these constants here, rather than here: https://review.openstack.org/#/c/428387/6/neutron_lib/api/definitions/extra_dhcp_opt.py@20. Don\u0027t we want to import extension definitions into this validator module? Down the road we will have to import _VALID_BLANK_EXTRA_DHCP_OPTS here: https://github.com/openstack/neutron/blob/master/neutron/db/extradhcpopt_db.py#L30. It looks odd to me","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":36,"context_line":"MAC_PATTERN \u003d \"^%s[aceACE02468](:%s{2}){5}$\" % (constants.HEX_ELEM,"},{"line_number":37,"context_line":"                                                constants.HEX_ELEM)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"_VALID_BLANK_EXTRA_DHCP_OPTS \u003d (\u0027router\u0027, \u0027classless-static-route\u0027)"},{"line_number":40,"context_line":"_DHCP_OPT_VALUE_MAX_LEN \u003d 255"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def _verify_dict_keys(expected_keys, target_dict, strict\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":6,"id":"dfeb2761_2a2643b9","line":40,"range":{"start_line":39,"start_character":0,"end_line":40,"end_character":29},"in_reply_to":"1a1ced50_f66f85f9","updated":"2017-03-30 19:22:19.000000000","message":"Unfortunately that introduces a cyclic dependency for api-defs that import converters: apidef -\u003e converters -\u003e validators -\u003e apidef\n\n\n\nMaybe we can revisit this issue later? These are private vars.","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":88,"context_line":"        return msg"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    # NOTE(boden): only check if data doesn\u0027t contain dicts (not hashable)"},{"line_number":91,"context_line":"    if (not [d for d in data if isinstance(d, dict)] and"},{"line_number":92,"context_line":"            len(set(data)) !\u003d len(data)):"},{"line_number":93,"context_line":"        msg \u003d _(\"Duplicate items in the list: \u0027%s\u0027\") % \u0027, \u0027.join(data)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_8bfab141","line":90,"range":{"start_line":90,"start_character":4,"end_line":90,"end_character":74},"updated":"2017-03-21 20:03:36.000000000","message":"if hashability is the only issue, should we just compare them as O(n^2) one by one?","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":88,"context_line":"        return msg"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    # NOTE(boden): only check if data doesn\u0027t contain dicts (not hashable)"},{"line_number":91,"context_line":"    if (not [d for d in data if isinstance(d, dict)] and"},{"line_number":92,"context_line":"            len(set(data)) !\u003d len(data)):"},{"line_number":93,"context_line":"        msg \u003d _(\"Duplicate items in the list: \u0027%s\u0027\") % \u0027, \u0027.join(data)"}],"source_content_type":"text/x-python","patch_set":6,"id":"dfeb2761_7588b070","line":90,"range":{"start_line":90,"start_character":4,"end_line":90,"end_character":74},"in_reply_to":"1a1ced50_8bfab141","updated":"2017-03-30 19:22:19.000000000","message":"I\u0027ll try itertools.","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":405,"context_line":""},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"def validate_extra_dhcp_opts_or_none(data, key_specs\u003dNone):"},{"line_number":408,"context_line":"    \"\"\"Validate a list of DHCP extra opt dicts with (optional) key specs."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"    The following validations are performed on data:"},{"line_number":411,"context_line":"    - The data is ensured to be a list of dicts that each contain the"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_2ba29d4b","line":408,"range":{"start_line":408,"start_character":37,"end_line":408,"end_character":41},"updated":"2017-03-21 20:03:36.000000000","message":"option","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":405,"context_line":""},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"def validate_extra_dhcp_opts_or_none(data, key_specs\u003dNone):"},{"line_number":408,"context_line":"    \"\"\"Validate a list of DHCP extra opt dicts with (optional) key specs."},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"    The following validations are performed on data:"},{"line_number":411,"context_line":"    - The data is ensured to be a list of dicts that each contain the"}],"source_content_type":"text/x-python","patch_set":6,"id":"dfeb2761_55cb6ca4","line":408,"range":{"start_line":408,"start_character":37,"end_line":408,"end_character":41},"in_reply_to":"1a1ced50_2ba29d4b","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":411,"context_line":"    - The data is ensured to be a list of dicts that each contain the"},{"line_number":412,"context_line":"    \u0027opt_name\u0027 and \u0027opt_value\u0027 key/value pairs."},{"line_number":413,"context_line":"    - For each opt dict, ensure the value is a string if the opt_name"},{"line_number":414,"context_line":"    is a valid blank DHCP opt, otherwise ensure opt dict conforms to"},{"line_number":415,"context_line":"    the passed key_specs."},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"    :param data: The list of dicts to validate."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_cb9669ef","line":414,"range":{"start_line":414,"start_character":26,"end_line":414,"end_character":29},"updated":"2017-03-21 20:03:36.000000000","message":"option","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":411,"context_line":"    - The data is ensured to be a list of dicts that each contain the"},{"line_number":412,"context_line":"    \u0027opt_name\u0027 and \u0027opt_value\u0027 key/value pairs."},{"line_number":413,"context_line":"    - For each opt dict, ensure the value is a string if the opt_name"},{"line_number":414,"context_line":"    is a valid blank DHCP opt, otherwise ensure opt dict conforms to"},{"line_number":415,"context_line":"    the passed key_specs."},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"    :param data: The list of dicts to validate."}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_ebc245e8","line":414,"range":{"start_line":414,"start_character":48,"end_line":414,"end_character":51},"updated":"2017-03-21 20:03:36.000000000","message":"option","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":411,"context_line":"    - The data is ensured to be a list of dicts that each contain the"},{"line_number":412,"context_line":"    \u0027opt_name\u0027 and \u0027opt_value\u0027 key/value pairs."},{"line_number":413,"context_line":"    - For each opt dict, ensure the value is a string if the opt_name"},{"line_number":414,"context_line":"    is a valid blank DHCP opt, otherwise ensure opt dict conforms to"},{"line_number":415,"context_line":"    the passed key_specs."},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"    :param data: The list of dicts to validate."}],"source_content_type":"text/x-python","patch_set":6,"id":"dfeb2761_f5d84080","line":414,"range":{"start_line":414,"start_character":26,"end_line":414,"end_character":29},"in_reply_to":"1a1ced50_cb9669ef","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":411,"context_line":"    - The data is ensured to be a list of dicts that each contain the"},{"line_number":412,"context_line":"    \u0027opt_name\u0027 and \u0027opt_value\u0027 key/value pairs."},{"line_number":413,"context_line":"    - For each opt dict, ensure the value is a string if the opt_name"},{"line_number":414,"context_line":"    is a valid blank DHCP opt, otherwise ensure opt dict conforms to"},{"line_number":415,"context_line":"    the passed key_specs."},{"line_number":416,"context_line":""},{"line_number":417,"context_line":"    :param data: The list of dicts to validate."}],"source_content_type":"text/x-python","patch_set":6,"id":"dfeb2761_95d1f45a","line":414,"range":{"start_line":414,"start_character":48,"end_line":414,"end_character":51},"in_reply_to":"1a1ced50_ebc245e8","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        msg \u003d _verify_dict_keys([\u0027opt_name\u0027, \u0027opt_value\u0027], opt_dict)"},{"line_number":428,"context_line":"        if msg:"},{"line_number":429,"context_line":"            return msg"},{"line_number":430,"context_line":"        if opt_dict[\u0027opt_name\u0027] in _VALID_BLANK_EXTRA_DHCP_OPTS:"},{"line_number":431,"context_line":"            return validate_string_or_none(opt_dict[\u0027opt_value\u0027],"},{"line_number":432,"context_line":"                                           _DHCP_OPT_VALUE_MAX_LEN)"},{"line_number":433,"context_line":"        return validate_dict(opt_dict, key_specs)"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a1ced50_4615103e","line":430,"updated":"2017-03-21 20:03:36.000000000","message":"and shouldn\u0027t we check those that don\u0027t allow blank values that they actually have one?","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        msg \u003d _verify_dict_keys([\u0027opt_name\u0027, \u0027opt_value\u0027], opt_dict)"},{"line_number":428,"context_line":"        if msg:"},{"line_number":429,"context_line":"            return msg"},{"line_number":430,"context_line":"        if opt_dict[\u0027opt_name\u0027] in _VALID_BLANK_EXTRA_DHCP_OPTS:"},{"line_number":431,"context_line":"            return validate_string_or_none(opt_dict[\u0027opt_value\u0027],"},{"line_number":432,"context_line":"                                           _DHCP_OPT_VALUE_MAX_LEN)"},{"line_number":433,"context_line":"        return validate_dict(opt_dict, key_specs)"}],"source_content_type":"text/x-python","patch_set":6,"id":"dfeb2761_f5cba06f","line":430,"in_reply_to":"1a1ced50_4615103e","updated":"2017-03-30 19:22:19.000000000","message":"Isn\u0027t that why the key specs are passed in [1] and then verified in the validate_dict() call that runs if this else does not?\n\n\n\n[1] https://review.openstack.org/#/c/428387/6/neutron_lib/api/definitions/extra_dhcp_opt.py@97","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f8ed17dd5f52b45fbae4777e797baf3a5e11aa76","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        msg \u003d _(\"\u0027%s\u0027 is not a list\") % data"},{"line_number":88,"context_line":"        return msg"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"    data.sort()"},{"line_number":91,"context_line":"    if [i for i, _j in itertools.groupby(data)] !\u003d data:"},{"line_number":92,"context_line":"        msg \u003d _(\"Duplicate items in the list: \u0027%s\u0027\") % \u0027, \u0027.join("},{"line_number":93,"context_line":"            [str(d) for d in data])"}],"source_content_type":"text/x-python","patch_set":9,"id":"dfeb2761_d1453019","line":90,"range":{"start_line":90,"start_character":4,"end_line":90,"end_character":15},"updated":"2017-03-31 14:26:13.000000000","message":"you modify the passed argument in place, which is not too nice becasue the caller will get a side effect. Prefer to copy and then sort: data \u003d sorted(data).\n\nAlso, why do we sort? Is it to get consistent message in line 92 to then match in unit test? I think that\u0027s not a good reason to do additional computation here, and we should instead have the test more forgiving.","commit_id":"0a30e9f12eabbb6af00db58922b50e743b016600"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"667ca46545835c0383c68121b2364164057adca8","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    \"\"\""},{"line_number":81,"context_line":"    seen \u003d []"},{"line_number":82,"context_line":"    dups \u003d set()"},{"line_number":83,"context_line":"    for dataum in data_list:"},{"line_number":84,"context_line":"        if dataum in seen:"},{"line_number":85,"context_line":"            dups.add(dataum)"},{"line_number":86,"context_line":"            continue"}],"source_content_type":"text/x-python","patch_set":12,"id":"dfeb2761_1076e9a5","line":83,"range":{"start_line":83,"start_character":8,"end_line":83,"end_character":14},"updated":"2017-03-31 19:18:23.000000000","message":"datum it is :)","commit_id":"a553b615efd17dc44cfba15126cc6e441f6db696"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"88e47ab27b097494f8737f73ffe5eba58144c179","unresolved":false,"context_lines":[{"line_number":445,"context_line":"        msg \u003d _verify_dict_keys([\u0027opt_name\u0027, \u0027opt_value\u0027], opt_dict)"},{"line_number":446,"context_line":"        if msg:"},{"line_number":447,"context_line":"            return msg"},{"line_number":448,"context_line":"        if opt_dict[\u0027opt_name\u0027] in _VALID_BLANK_EXTRA_DHCP_OPTS:"},{"line_number":449,"context_line":"            return validate_string_or_none("},{"line_number":450,"context_line":"                opt_dict[\u0027opt_value\u0027],"},{"line_number":451,"context_line":"                _DHCP_OPT_VALUE_MAX_LEN)"}],"source_content_type":"text/x-python","patch_set":12,"id":"bff0334d_43ff3867","line":448,"updated":"2017-04-05 13:26:27.000000000","message":"if we\u0027re ignoring key_specs in this case, does that mean someone could sneak in an invalid ip_version value when the opt_name is \u0027router\u0027?","commit_id":"a553b615efd17dc44cfba15126cc6e441f6db696"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"ccdc18f25a64e056059a83d99b42f19446a071a1","unresolved":false,"context_lines":[{"line_number":445,"context_line":"        msg \u003d _verify_dict_keys([\u0027opt_name\u0027, \u0027opt_value\u0027], opt_dict)"},{"line_number":446,"context_line":"        if msg:"},{"line_number":447,"context_line":"            return msg"},{"line_number":448,"context_line":"        if opt_dict[\u0027opt_name\u0027] in _VALID_BLANK_EXTRA_DHCP_OPTS:"},{"line_number":449,"context_line":"            return validate_string_or_none("},{"line_number":450,"context_line":"                opt_dict[\u0027opt_value\u0027],"},{"line_number":451,"context_line":"                _DHCP_OPT_VALUE_MAX_LEN)"}],"source_content_type":"text/x-python","patch_set":12,"id":"bff0334d_0f127159","line":448,"in_reply_to":"bff0334d_43ff3867","updated":"2017-04-05 14:34:11.000000000","message":"Good eye. Appears I did a fine job of rehoming an existing bug in neutron into lib. I\u0027ll fix this.","commit_id":"a553b615efd17dc44cfba15126cc6e441f6db696"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"477faec59f97be624b85ab36cfa23003438f586a","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    \"\"\""},{"line_number":79,"context_line":"    seen \u003d []"},{"line_number":80,"context_line":"    dups \u003d set()"},{"line_number":81,"context_line":"    for dataum in data_list:"},{"line_number":82,"context_line":"        if dataum in seen:"},{"line_number":83,"context_line":"            dups.add(dataum)"},{"line_number":84,"context_line":"            continue"}],"source_content_type":"text/x-python","patch_set":14,"id":"7ffa3b31_3a8e352e","line":81,"range":{"start_line":81,"start_character":8,"end_line":81,"end_character":14},"updated":"2017-04-18 16:45:38.000000000","message":"nit: Isn\u0027t a singular form of \u0027data\u0027 \u0027datum\u0027? I am not sure what is correct, but I usually see more \u0027datum\u0027 rather than \u0027dataum\u0027.","commit_id":"9496e8057c23daeff47d579fb8a63073b1f0ca9f"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"975ca2806ff92a1573109ceedb354e22c46e3097","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    \"\"\""},{"line_number":79,"context_line":"    seen \u003d []"},{"line_number":80,"context_line":"    dups \u003d set()"},{"line_number":81,"context_line":"    for dataum in data_list:"},{"line_number":82,"context_line":"        if dataum in seen:"},{"line_number":83,"context_line":"            dups.add(dataum)"},{"line_number":84,"context_line":"            continue"}],"source_content_type":"text/x-python","patch_set":14,"id":"5ff73747_5e046c4a","line":81,"range":{"start_line":81,"start_character":8,"end_line":81,"end_character":14},"in_reply_to":"7ffa3b31_3a8e352e","updated":"2017-04-25 14:42:13.000000000","message":"Done","commit_id":"9496e8057c23daeff47d579fb8a63073b1f0ca9f"}],"neutron_lib/exceptions/extra_dhcp_opt.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"c5a4c9468ae03cd9c553e56f94b0f77993e3530b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"3a1ff146_652c00ac","updated":"2017-03-16 15:14:56.000000000","message":"Thanks for keeping me sane!\nPlease see latest PS.","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"93abd2ce83909ddd1f6fca182836445424cc31a2","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from neutron_lib import exceptions"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class ExtraDhcpOptNotFound(exceptions.NotFound):"},{"line_number":20,"context_line":"    message \u003d _(\"ExtraDhcpOpt %(id)s could not be found\")"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"ba2be162_6cc3a857","line":19,"updated":"2017-03-04 01:23:30.000000000","message":"this exception is not used *anywhere*\n\nhttp://codesearch.openstack.org/?q\u003dExtraDhcpOptNotFound\u0026i\u003dnope\u0026files\u003d\u0026repos\u003d","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"9e69704e700b10a0080a9b4a16d9fcb6b57e6217","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from neutron_lib import exceptions"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class ExtraDhcpOptNotFound(exceptions.NotFound):"},{"line_number":20,"context_line":"    message \u003d _(\"ExtraDhcpOpt %(id)s could not be found\")"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a1ff146_0779db93","line":19,"in_reply_to":"ba2be162_6cc3a857","updated":"2017-03-15 04:52:00.000000000","message":"But can it be used in the foreseeable future?","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"844e5d94ade518c608362d76eaa0eefb991a4e8f","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"class ExtraDhcpOptBadData(exceptions.InvalidInput):"},{"line_number":24,"context_line":"    message \u003d _(\"Invalid data format for extra-dhcp-opt: %(data)s\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba2be162_e2a78ea4","line":24,"range":{"start_line":24,"start_character":41,"end_line":24,"end_character":55},"updated":"2017-03-06 01:53:46.000000000","message":"The field name is extra_dhcp_opt. I think it is better to match the field name.","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"},{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"9e69704e700b10a0080a9b4a16d9fcb6b57e6217","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"class ExtraDhcpOptBadData(exceptions.InvalidInput):"},{"line_number":24,"context_line":"    message \u003d _(\"Invalid data format for extra-dhcp-opt: %(data)s\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a1ff146_6741af39","line":24,"range":{"start_line":24,"start_character":41,"end_line":24,"end_character":55},"in_reply_to":"ba2be162_e2a78ea4","updated":"2017-03-15 04:52:00.000000000","message":"+1","commit_id":"8ad04fa0eb6dd89ac48ae05b0610d7deaf86ad0e"}],"releasenotes/notes/rehome-dhcpopts-apidef-389ab9d8935e5e0d.yaml":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"12abc3cd740edf9b4614d0c8bedeaff08f7daa3f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - The ``extra_dhcp_opt`` API extension defintion from ``neutron.extensions``"},{"line_number":4,"context_line":"    has been rehomed to ``netron_lib.api.definitions`` with the same name."},{"line_number":5,"context_line":"  - A new validator ``validate_extra_dhcp_opts_or_none`` has been added for"},{"line_number":6,"context_line":"    the corresponding validation type ``type:list_of_extra_dhcp_opts``."}],"source_content_type":"text/x-yaml","patch_set":6,"id":"1a1ced50_463c30c8","line":3,"range":{"start_line":3,"start_character":41,"end_line":3,"end_character":50},"updated":"2017-03-21 20:03:36.000000000","message":"definition","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6125e357fbd5d0c21c8360e3e1d9e59d0f94723a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - The ``extra_dhcp_opt`` API extension defintion from ``neutron.extensions``"},{"line_number":4,"context_line":"    has been rehomed to ``netron_lib.api.definitions`` with the same name."},{"line_number":5,"context_line":"  - A new validator ``validate_extra_dhcp_opts_or_none`` has been added for"},{"line_number":6,"context_line":"    the corresponding validation type ``type:list_of_extra_dhcp_opts``."}],"source_content_type":"text/x-yaml","patch_set":6,"id":"dfeb2761_1594c443","line":3,"range":{"start_line":3,"start_character":41,"end_line":3,"end_character":50},"in_reply_to":"1a1ced50_463c30c8","updated":"2017-03-30 19:22:19.000000000","message":"Done","commit_id":"2304e1245c0610d84ebca56689e27e9721e6b0c6"}]}
