)]}'
{"neutron_lib/api/definitions/dhcpagentscheduler.py":[{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"dd0bd24b33bd5dca2181c178fbc5ebf205bb7355","unresolved":false,"context_lines":[{"line_number":32,"context_line":"DESCRIPTION \u003d \u0027Schedule networks among dhcp agents\u0027"},{"line_number":33,"context_line":"UPDATED_TIMESTAMP \u003d \u00272013-02-07T10:00:00-00:00\u0027"},{"line_number":34,"context_line":"RESOURCE_ATTRIBUTE_MAP \u003d {}"},{"line_number":35,"context_line":"SUB_RESOURCE_ATTRIBUTE_MAP \u003d {"},{"line_number":36,"context_line":"    DHCP_NETS: {"},{"line_number":37,"context_line":"        \u0027parent\u0027: {"},{"line_number":38,"context_line":"            \u0027collection_name\u0027: agent_apidef.COLLECTION_NAME,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f485f77_150d3c8f","line":35,"updated":"2017-11-17 13:29:37.000000000","message":"Reviewers: Please take note that the dhcpagentscheduler extension doesn\u0027t use traditional resource maps; but rather a controller. Moreoever, the controllers don\u0027t implement all the expected operations (methods). Therefore what\u0027s in this map is extracted from the logic of the controller, and doesn\u0027t full represent the reference impl (see NOTE in code below).","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d424cc37970a669ba9087719e404ae4e73e30010","unresolved":false,"context_lines":[{"line_number":32,"context_line":"DESCRIPTION \u003d \u0027Schedule networks among dhcp agents\u0027"},{"line_number":33,"context_line":"UPDATED_TIMESTAMP \u003d \u00272013-02-07T10:00:00-00:00\u0027"},{"line_number":34,"context_line":"RESOURCE_ATTRIBUTE_MAP \u003d {}"},{"line_number":35,"context_line":"SUB_RESOURCE_ATTRIBUTE_MAP \u003d {"},{"line_number":36,"context_line":"    DHCP_NETS: {"},{"line_number":37,"context_line":"        \u0027parent\u0027: {"},{"line_number":38,"context_line":"            \u0027collection_name\u0027: agent_apidef.COLLECTION_NAME,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_81ff3b66","line":35,"in_reply_to":"1f485f77_150d3c8f","updated":"2017-11-21 02:10:44.000000000","message":"Actually dhcpagentscheduler extension doesn\u0027t extend existing resource. Even if there are some neutron plugins which want to extend the resource with this attribute map, that\u0027s different from existing dhcpagentscheduler extension. Therefore, I think we don\u0027t need to define SUB_RESOURCE_ATTRIBUTE_MAP here.","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9eaebfe0f77dc54f67102b0fb80535ddbe2484bb","unresolved":false,"context_lines":[{"line_number":32,"context_line":"DESCRIPTION \u003d \u0027Schedule networks among dhcp agents\u0027"},{"line_number":33,"context_line":"UPDATED_TIMESTAMP \u003d \u00272013-02-07T10:00:00-00:00\u0027"},{"line_number":34,"context_line":"RESOURCE_ATTRIBUTE_MAP \u003d {}"},{"line_number":35,"context_line":"SUB_RESOURCE_ATTRIBUTE_MAP \u003d {"},{"line_number":36,"context_line":"    DHCP_NETS: {"},{"line_number":37,"context_line":"        \u0027parent\u0027: {"},{"line_number":38,"context_line":"            \u0027collection_name\u0027: agent_apidef.COLLECTION_NAME,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_b8ae142c","line":35,"in_reply_to":"ff82abbf_21ef3685","updated":"2017-11-22 02:01:19.000000000","message":"Ah, I see. My point of view is just extending resource but we use to create an URI of API as well. I missed it because I have seen get_extended_resources() of dhcpagentscheduler extension returns {} and neutron side patch doesn\u0027t use SUB_RESOURCE_ATTRIBUTE_MAP[1]. Do you have a plan which uses this SUB_RESOURCE_ATTRIBUTE_MAP in neutron side?\n\n[1]: https://review.openstack.org/#/c/520752/1/neutron/extensions/dhcpagentscheduler.py","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"cddb90ecf40f69f328a15abdd0d75a3fa7f0df80","unresolved":false,"context_lines":[{"line_number":32,"context_line":"DESCRIPTION \u003d \u0027Schedule networks among dhcp agents\u0027"},{"line_number":33,"context_line":"UPDATED_TIMESTAMP \u003d \u00272013-02-07T10:00:00-00:00\u0027"},{"line_number":34,"context_line":"RESOURCE_ATTRIBUTE_MAP \u003d {}"},{"line_number":35,"context_line":"SUB_RESOURCE_ATTRIBUTE_MAP \u003d {"},{"line_number":36,"context_line":"    DHCP_NETS: {"},{"line_number":37,"context_line":"        \u0027parent\u0027: {"},{"line_number":38,"context_line":"            \u0027collection_name\u0027: agent_apidef.COLLECTION_NAME,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_21ef3685","line":35,"in_reply_to":"ff82abbf_81ff3b66","updated":"2017-11-21 19:17:49.000000000","message":"Admittedly I\u0027m not fully understanding why it\u0027s not a sub-resource extension here.\n- The DHCP_NETS and DHCP_AGENTS resources are added to their respective parent resources via extensions.ResourceExtension(...) in the extension [1][2]. This is how I\u0027ve seen the sub resources done in other extensions.\n- Based on the URI used in the client [3], it again appears to be a sub-resource.\n\n\nGiven the above, I\u0027d like to better understand why these aren\u0027t subresource extensions, and if they\u0027re not; what are they and how do we \"define\" them properly in neutron-lib?\n\n\n[1] https://github.com/openstack/neutron/blob/master/neutron/extensions/dhcpagentscheduler.py#L106\n[2] https://github.com/openstack/neutron/blob/master/neutron/extensions/dhcpagentscheduler.py#L113\n[3] https://github.com/openstack/python-neutronclient/blob/master/neutronclient/v2_0/client.py#L1480","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"41718b10119a74bf2cb1cbfaf4e13e79187d8930","unresolved":false,"context_lines":[{"line_number":32,"context_line":"DESCRIPTION \u003d \u0027Schedule networks among dhcp agents\u0027"},{"line_number":33,"context_line":"UPDATED_TIMESTAMP \u003d \u00272013-02-07T10:00:00-00:00\u0027"},{"line_number":34,"context_line":"RESOURCE_ATTRIBUTE_MAP \u003d {}"},{"line_number":35,"context_line":"SUB_RESOURCE_ATTRIBUTE_MAP \u003d {"},{"line_number":36,"context_line":"    DHCP_NETS: {"},{"line_number":37,"context_line":"        \u0027parent\u0027: {"},{"line_number":38,"context_line":"            \u0027collection_name\u0027: agent_apidef.COLLECTION_NAME,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_2e6dc903","line":35,"in_reply_to":"ff82abbf_b8ae142c","updated":"2017-11-22 14:41:29.000000000","message":"You\u0027re right. The sample consumption patch in neutron should not define the get_extended_resources() method. Instead it should just use the parent classes (APIExtensionDescriptor) which should return the SUB_RESOURCE_ATTRIBUTE_MAP automatically. I\u0027m retesting with this change.","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"9eaebfe0f77dc54f67102b0fb80535ddbe2484bb","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        },"},{"line_number":41,"context_line":"        \u0027parameters\u0027: {"},{"line_number":42,"context_line":"            \u0027network_id\u0027: {"},{"line_number":43,"context_line":"                \u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":44,"context_line":"                \u0027default\u0027: constants.ATTR_NOT_SPECIFIED,"},{"line_number":45,"context_line":"                \u0027enforce_policy\u0027: True,"},{"line_number":46,"context_line":"                \u0027is_visible\u0027: True,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_38368405","line":43,"range":{"start_line":43,"start_character":30,"end_line":43,"end_character":35},"updated":"2017-11-22 02:01:19.000000000","message":"This is True?","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"41718b10119a74bf2cb1cbfaf4e13e79187d8930","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        },"},{"line_number":41,"context_line":"        \u0027parameters\u0027: {"},{"line_number":42,"context_line":"            \u0027network_id\u0027: {"},{"line_number":43,"context_line":"                \u0027allow_post\u0027: False, \u0027allow_put\u0027: False,"},{"line_number":44,"context_line":"                \u0027default\u0027: constants.ATTR_NOT_SPECIFIED,"},{"line_number":45,"context_line":"                \u0027enforce_policy\u0027: True,"},{"line_number":46,"context_line":"                \u0027is_visible\u0027: True,"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_ce7bfdbb","line":43,"range":{"start_line":43,"start_character":30,"end_line":43,"end_character":35},"in_reply_to":"ff82abbf_38368405","updated":"2017-11-22 14:41:29.000000000","message":"Yes I think you\u0027re right. I\u0027m retesting with this change.","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"},{"author":{"_account_id":5367,"name":"boden","email":"bodenvmw@gmail.com","username":"boden"},"change_message_id":"5fb7a54eda73614c3ba91d0e3d73fe8aed85fbbe","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    }"},{"line_number":61,"context_line":"}"},{"line_number":62,"context_line":"ACTION_MAP \u003d {}"},{"line_number":63,"context_line":"REQUIRED_EXTENSIONS \u003d [agent_apidef.ALIAS]"},{"line_number":64,"context_line":"OPTIONAL_EXTENSIONS \u003d []"},{"line_number":65,"context_line":"ACTION_STATUS \u003d {}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f485f77_0e59a633","line":63,"updated":"2017-11-17 18:29:49.000000000","message":"Also note this required ext is new; it\u0027s not defined in the extension, but is needed for the DHCP_NETS subresource ext.","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"d424cc37970a669ba9087719e404ae4e73e30010","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    }"},{"line_number":61,"context_line":"}"},{"line_number":62,"context_line":"ACTION_MAP \u003d {}"},{"line_number":63,"context_line":"REQUIRED_EXTENSIONS \u003d [agent_apidef.ALIAS]"},{"line_number":64,"context_line":"OPTIONAL_EXTENSIONS \u003d []"},{"line_number":65,"context_line":"ACTION_STATUS \u003d {}"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff82abbf_e12f27f4","line":63,"in_reply_to":"1f485f77_0e59a633","updated":"2017-11-21 02:10:44.000000000","message":"I think that this requrement is necessary even if DHCP_NETS subresource ext isn\u0027t defined.","commit_id":"1aa8c34e940372a250ca4c3a7e693b7dd1753a0b"}],"neutron_lib/exceptions/dhcpagentscheduler.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"34743f5390b33a7eeec38d2961af936628dda5ba","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"class NetworkHostedByDHCPAgent(exceptions.Conflict):"},{"line_number":26,"context_line":"    message \u003d _(\"The network %(network_id)s has been already hosted\""},{"line_number":27,"context_line":"                \" by the DHCP Agent %(agent_id)s.\")"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"class NetworkNotHostedByDhcpAgent(exceptions.Conflict):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3fa0c359_f9c14c4f","line":27,"range":{"start_line":27,"start_character":17,"end_line":27,"end_character":18},"updated":"2018-02-26 08:21:00.000000000","message":"nitty nit: It would be better to move this space to line above :)","commit_id":"23f6f8c50f6236b3eb787c6c4527d87e55b365c1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"34743f5390b33a7eeec38d2961af936628dda5ba","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"class NetworkNotHostedByDhcpAgent(exceptions.Conflict):"},{"line_number":31,"context_line":"    message \u003d _(\"The network %(network_id)s is not hosted\""},{"line_number":32,"context_line":"                \" by the DHCP Agent %(agent_id)s.\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"3fa0c359_d9c6d068","line":32,"range":{"start_line":32,"start_character":17,"end_line":32,"end_character":18},"updated":"2018-02-26 08:21:00.000000000","message":"nitty nit: It would be better to move this space to line above :)","commit_id":"23f6f8c50f6236b3eb787c6c4527d87e55b365c1"}]}
