)]}'
{"neutron_lib/api/definitions/multiprovidernet.py":[{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"01559c7b6611f7944fff2cfe647a06f4f8447981","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron_lib.exceptions import multiprovidernet as mp_exc"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"def check_duplicate_segments(segments, is_partial_func\u003dNone):"},{"line_number":25,"context_line":"    \"\"\"Helper function checking duplicate segments."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    If is_partial_funcs is specified and not None, then"},{"line_number":28,"context_line":"    SegmentsContainDuplicateEntry is raised if two segments are identical and"},{"line_number":29,"context_line":"    non partially defined (is_partial_func(segment) \u003d\u003d False)."},{"line_number":30,"context_line":"    Otherwise SegmentsContainDuplicateEntry is raised if two segment are"},{"line_number":31,"context_line":"    identical."},{"line_number":32,"context_line":"    \"\"\""},{"line_number":33,"context_line":"    if is_partial_func is not None:"},{"line_number":34,"context_line":"        segments \u003d [s for s in segments if not is_partial_func(s)]"},{"line_number":35,"context_line":"    fully_specifieds \u003d [tuple(sorted(s.items())) for s in segments]"},{"line_number":36,"context_line":"    if len(set(fully_specifieds)) !\u003d len(fully_specifieds):"},{"line_number":37,"context_line":"        raise mp_exc.SegmentsContainDuplicateEntry()"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"validators.add_validator("}],"source_content_type":"text/x-python","patch_set":2,"id":"7f287b81_d1595f35","line":37,"range":{"start_line":24,"start_character":0,"end_line":37,"end_character":52},"updated":"2017-09-05 23:54:59.000000000","message":"It\u0027s not check of API layer so I guess that it\u0027s not suit api definition. There are some options.\n\n 1. It\u0027s kept in neutron/extentions/multiprovidernet.\n 2. We create new directory where we put such function.\n 3. It looks like utils so we put it in neutron-lib/utils.\n 4. It\u0027s stayed here(not good for me)\n\nI guess that (1) or (3) is better. What do you think?","commit_id":"32d804c615be5813dcaeabea5f63d29ae5783e2f"}],"neutron_lib/api/validators/multiprovidernet.py":[{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"72dc8ed2c5c976b23e3c6a1cca06fb3d6dcd1ff9","unresolved":false,"context_lines":[{"line_number":32,"context_line":"                segmentation_id)"},{"line_number":33,"context_line":"        else:"},{"line_number":34,"context_line":"            segment[pnet.SEGMENTATION_ID] \u003d constants.ATTR_NOT_SPECIFIED"},{"line_number":35,"context_line":"        if len(segment.keys()) !\u003d 3:"},{"line_number":36,"context_line":"            msg \u003d (_(\"Unrecognized attribute(s) \u0027%s\u0027\") %"},{"line_number":37,"context_line":"                   \u0027, \u0027.join(set(segment.keys()) -"},{"line_number":38,"context_line":"                             set([pnet.NETWORK_TYPE, pnet.PHYSICAL_NETWORK,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_b01fa659","line":35,"range":{"start_line":35,"start_character":11,"end_line":35,"end_character":30},"updated":"2017-08-29 05:37:39.000000000","message":"nit: we can save waste here.\n\n len(segment.keys()) -\u003e len(segment)","commit_id":"f1906d017b2f05dff7fd258f1d3c060b28dbd0dd"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6f48c87d213976f3b934cb283991215b0f96005e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"                segmentation_id)"},{"line_number":33,"context_line":"        else:"},{"line_number":34,"context_line":"            segment[pnet.SEGMENTATION_ID] \u003d constants.ATTR_NOT_SPECIFIED"},{"line_number":35,"context_line":"        if len(segment.keys()) !\u003d 3:"},{"line_number":36,"context_line":"            msg \u003d (_(\"Unrecognized attribute(s) \u0027%s\u0027\") %"},{"line_number":37,"context_line":"                   \u0027, \u0027.join(set(segment.keys()) -"},{"line_number":38,"context_line":"                             set([pnet.NETWORK_TYPE, pnet.PHYSICAL_NETWORK,"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_464c3d41","line":35,"range":{"start_line":35,"start_character":11,"end_line":35,"end_character":30},"in_reply_to":"7f287b81_b01fa659","updated":"2017-08-29 14:42:53.000000000","message":"Done","commit_id":"f1906d017b2f05dff7fd258f1d3c060b28dbd0dd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"72dc8ed2c5c976b23e3c6a1cca06fb3d6dcd1ff9","unresolved":false,"context_lines":[{"line_number":40,"context_line":"            raise exc.HTTPBadRequest(msg)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def check_duplicate_segments(segments, is_partial_func\u003dNone):"},{"line_number":44,"context_line":"    \"\"\"Helper function checking duplicate segments."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    If is_partial_funcs is specified and not None, then"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_90a70a0c","line":43,"range":{"start_line":43,"start_character":0,"end_line":43,"end_character":61},"updated":"2017-08-29 05:37:39.000000000","message":"This isn\u0027t api validator so I don\u0027t think that it suits here.","commit_id":"f1906d017b2f05dff7fd258f1d3c060b28dbd0dd"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"6f48c87d213976f3b934cb283991215b0f96005e","unresolved":false,"context_lines":[{"line_number":40,"context_line":"            raise exc.HTTPBadRequest(msg)"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"def check_duplicate_segments(segments, is_partial_func\u003dNone):"},{"line_number":44,"context_line":"    \"\"\"Helper function checking duplicate segments."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    If is_partial_funcs is specified and not None, then"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_06c3d539","line":43,"range":{"start_line":43,"start_character":0,"end_line":43,"end_character":61},"in_reply_to":"7f287b81_90a70a0c","updated":"2017-08-29 14:42:53.000000000","message":"Yeah it was questionable.\nI moved it to the api-def in the next patch.\nLet me know what you think of that location upon your next review.","commit_id":"f1906d017b2f05dff7fd258f1d3c060b28dbd0dd"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0f9ac84723e2a0d89ddb8f0974244846a29cdf1a","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron_lib import constants"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"def _convert_and_validate_segments(segments, valid_values\u003dNone):"},{"line_number":25,"context_line":"    for segment in segments:"},{"line_number":26,"context_line":"        segment.setdefault(pnet.NETWORK_TYPE, constants.ATTR_NOT_SPECIFIED)"},{"line_number":27,"context_line":"        segment.setdefault(pnet.PHYSICAL_NETWORK, constants.ATTR_NOT_SPECIFIED)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_1f16c6f2","line":24,"updated":"2017-11-01 21:38:19.000000000","message":"any real reason to have it named with _? isn\u0027t it public? (and if not, then why is the module named without underscore even though it doesn\u0027t contain a single public function?)","commit_id":"b729d3021442ddf3f81138e3ee591e8a7055d995"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"e3adb4f09067b87d96cc1e40f01a821aea63424b","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron_lib import constants"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"def _convert_and_validate_segments(segments, valid_values\u003dNone):"},{"line_number":25,"context_line":"    for segment in segments:"},{"line_number":26,"context_line":"        segment.setdefault(pnet.NETWORK_TYPE, constants.ATTR_NOT_SPECIFIED)"},{"line_number":27,"context_line":"        segment.setdefault(pnet.PHYSICAL_NETWORK, constants.ATTR_NOT_SPECIFIED)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f4b6375_b504584b","line":24,"in_reply_to":"3f4b6375_1f16c6f2","updated":"2017-11-02 16:27:22.000000000","message":"There was a discussion about how consumers should use validators awhile back. IIUC we shouldn\u0027t allow consumers to use validator functions directly, or at least that\u0027s what was suggested. Consumers have access to this validator in their APIs by using the \u0027type:network_segments\u0027 as setup in the API definition of this patch.\n\n\nI\u0027m fine with it being public to match the others we already have. If we move to private validators I suppose we can address all of them at once.","commit_id":"b729d3021442ddf3f81138e3ee591e8a7055d995"}],"releasenotes/notes/rehome-multiprovidernet-apidef-367e57772e931758.yaml":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0f9ac84723e2a0d89ddb8f0974244846a29cdf1a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - The ``provider`` extension\u0027s API definition is available in"},{"line_number":4,"context_line":"    ``neutron_lib.api.defintions.provider_net``."},{"line_number":5,"context_line":"  - Exceptions for the ``provider`` extension can be found in"},{"line_number":6,"context_line":"    ``neutron_lib.exceptions.provider_net``."}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f4b6375_3fc98277","line":3,"updated":"2017-11-01 21:38:19.000000000","message":"I suspect the release note came from another patch that added provider extension, and you forgot to update it for multi-provider.","commit_id":"b729d3021442ddf3f81138e3ee591e8a7055d995"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"e3adb4f09067b87d96cc1e40f01a821aea63424b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - The ``provider`` extension\u0027s API definition is available in"},{"line_number":4,"context_line":"    ``neutron_lib.api.defintions.provider_net``."},{"line_number":5,"context_line":"  - Exceptions for the ``provider`` extension can be found in"},{"line_number":6,"context_line":"    ``neutron_lib.exceptions.provider_net``."}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f4b6375_d5a0f444","line":3,"in_reply_to":"3f4b6375_3fc98277","updated":"2017-11-02 16:27:22.000000000","message":"Seems that way doesn\u0027t it","commit_id":"b729d3021442ddf3f81138e3ee591e8a7055d995"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0f9ac84723e2a0d89ddb8f0974244846a29cdf1a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - The ``provider`` extension\u0027s API definition is available in"},{"line_number":4,"context_line":"    ``neutron_lib.api.defintions.provider_net``."},{"line_number":5,"context_line":"  - Exceptions for the ``provider`` extension can be found in"},{"line_number":6,"context_line":"    ``neutron_lib.exceptions.provider_net``."},{"line_number":7,"context_line":"  - The validation type ``type:network_segments`` is now available for"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f4b6375_1feb66dc","line":4,"updated":"2017-11-01 21:38:19.000000000","message":"definitions","commit_id":"b729d3021442ddf3f81138e3ee591e8a7055d995"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0f9ac84723e2a0d89ddb8f0974244846a29cdf1a","unresolved":false,"context_lines":[{"line_number":7,"context_line":"  - The validation type ``type:network_segments`` is now available for"},{"line_number":8,"context_line":"    API attribute validation."},{"line_number":9,"context_line":"  - The utility function ``check_duplicate_segments`` can now be found in"},{"line_number":10,"context_line":"    ``neutron_lib.api.defintions.provider_net``."}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f4b6375_3ff062c9","line":10,"updated":"2017-11-01 21:38:19.000000000","message":"definitions","commit_id":"b729d3021442ddf3f81138e3ee591e8a7055d995"}]}
