)]}'
{"devstack/README.rst":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":216,"context_line":"      [service_providers]"},{"line_number":217,"context_line":"      service_provider \u003d L3_ROUTER_NAT:ODL:networking_odl.l3.l3_flavor.ODLL3ServiceProvider:default"},{"line_number":218,"context_line":""},{"line_number":219,"context_line":"    Note: Service Plugin \u0027router\u0027 should be used in neutron.conf"},{"line_number":220,"context_line":"    for enabling L3 flavors completely"}],"source_content_type":"text/x-rst","patch_set":24,"id":"5f7c97a3_6d1b5dc9","line":220,"range":{"start_line":219,"start_character":4,"end_line":220,"end_character":38},"updated":"2018-05-30 12:30:57.000000000","message":"Care to give a concrete example?\n\nAlso doesn\u0027t some of the previous mentions of L3 stuff in this readme conflict with this one?\nTo make it clear I\u0027t list exactly what needs to be defined under this one, and state what not to define (i.e. the OLD L3 plugin).","commit_id":"f72bc7370a0eeabe8b9b0d4b092e31092ff58800"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":211,"context_line":"      [[local|localrc]]"},{"line_number":212,"context_line":"      ODL_INSTALL\u003dFalse"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"20. To Enable L3 Flavors with ODL, service providers should be added"},{"line_number":215,"context_line":"    to neutron.conf::"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"      [service_providers]"}],"source_content_type":"text/x-rst","patch_set":36,"id":"5f7c97a3_1f72e27c","line":214,"range":{"start_line":214,"start_character":0,"end_line":214,"end_character":2},"updated":"2018-07-12 10:58:08.000000000","message":"This section should be next to step 4 IMHO, as there it\u0027s talking about L3.\n\nPerhaps even divide the README into sections so all related to each part (e.g. ML2 / L3 / etc) is in it\u0027s own titled section.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":211,"context_line":"      [[local|localrc]]"},{"line_number":212,"context_line":"      ODL_INSTALL\u003dFalse"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"20. To Enable L3 Flavors with ODL, service providers should be added"},{"line_number":215,"context_line":"    to neutron.conf::"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"      [service_providers]"}],"source_content_type":"text/x-rst","patch_set":36,"id":"5f7c97a3_e4994d1e","line":214,"range":{"start_line":214,"start_character":0,"end_line":214,"end_character":2},"in_reply_to":"5f7c97a3_1f72e27c","updated":"2018-07-12 22:07:19.000000000","message":"from history of this documents looks like, the new items are always appended, even though it gonna get awful, I\u0027m gonna stick with it, this can be addressed separately though, having a patch that reformat and sorts all the info in doc.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"42ac1d4aac33bb6834031c1be2ff2ce9f5c03ea1","unresolved":false,"context_lines":[{"line_number":211,"context_line":"      [[local|localrc]]"},{"line_number":212,"context_line":"      ODL_INSTALL\u003dFalse"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"20. To Enable L3 Flavors with ODL, service providers should be added"},{"line_number":215,"context_line":"    to neutron.conf::"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"      [service_providers]"}],"source_content_type":"text/x-rst","patch_set":36,"id":"5f7c97a3_24b5e0ed","line":214,"range":{"start_line":214,"start_character":0,"end_line":214,"end_character":2},"in_reply_to":"5f7c97a3_e4994d1e","updated":"2018-07-15 10:34:44.000000000","message":"Could you do it?","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":211,"context_line":"      [[local|localrc]]"},{"line_number":212,"context_line":"      ODL_INSTALL\u003dFalse"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"20. To Enable L3 Flavors with ODL, service providers should be added"},{"line_number":215,"context_line":"    to neutron.conf::"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"      [service_providers]"},{"line_number":218,"context_line":"      service_provider \u003d L3_ROUTER_NAT:ODL:networking_odl.l3.l3_flavor.ODLL3ServiceProvider:default"}],"source_content_type":"text/x-rst","patch_set":36,"id":"5f7c97a3_3f91de9a","line":215,"range":{"start_line":214,"start_character":4,"end_line":215,"end_character":19},"updated":"2018-07-12 10:58:08.000000000","message":"don\u0027t we need us to enable it also for devstack then?","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":211,"context_line":"      [[local|localrc]]"},{"line_number":212,"context_line":"      ODL_INSTALL\u003dFalse"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"20. To Enable L3 Flavors with ODL, service providers should be added"},{"line_number":215,"context_line":"    to neutron.conf::"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"      [service_providers]"},{"line_number":218,"context_line":"      service_provider \u003d L3_ROUTER_NAT:ODL:networking_odl.l3.l3_flavor.ODLL3ServiceProvider:default"}],"source_content_type":"text/x-rst","patch_set":36,"id":"5f7c97a3_84dc19e2","line":215,"range":{"start_line":214,"start_character":4,"end_line":215,"end_character":19},"in_reply_to":"5f7c97a3_3f91de9a","updated":"2018-07-12 22:07:19.000000000","message":"yes, but thats not scope of this patch","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"42ac1d4aac33bb6834031c1be2ff2ce9f5c03ea1","unresolved":false,"context_lines":[{"line_number":211,"context_line":"      [[local|localrc]]"},{"line_number":212,"context_line":"      ODL_INSTALL\u003dFalse"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"20. To Enable L3 Flavors with ODL, service providers should be added"},{"line_number":215,"context_line":"    to neutron.conf::"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"      [service_providers]"},{"line_number":218,"context_line":"      service_provider \u003d L3_ROUTER_NAT:ODL:networking_odl.l3.l3_flavor.ODLL3ServiceProvider:default"}],"source_content_type":"text/x-rst","patch_set":36,"id":"5f7c97a3_04b22407","line":215,"range":{"start_line":214,"start_character":4,"end_line":215,"end_character":19},"in_reply_to":"5f7c97a3_84dc19e2","updated":"2018-07-15 10:34:44.000000000","message":"can you address it in a subsequent patch please? So we won\u0027t forget it","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"}],"doc/source/install/l3_flavors.rst":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"4ff236d6e90c70ab8c0a2409bddf6ed83fd7bf98","unresolved":false,"context_lines":[{"line_number":1,"context_line":".. _l3_flavors:"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"L3 Flavors"},{"line_number":4,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":5,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"bf659307_f867e6e9","line":2,"updated":"2018-04-04 23:08:31.000000000","message":"Please update also doc on devstack.\ndevstack/{README.rst, settings}","commit_id":"f662f97cabb5be88cd58a20fbb03c681ae7ac68a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"c938429163bde2e75ff38bd821482fb07348d08a","unresolved":false,"context_lines":[{"line_number":1,"context_line":".. _l3_flavors:"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"L3 Flavors"},{"line_number":4,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":5,"context_line":""}],"source_content_type":"text/x-rst","patch_set":15,"id":"bf659307_aa49068c","line":2,"in_reply_to":"bf659307_f867e6e9","updated":"2018-04-05 16:27:47.000000000","message":"Done","commit_id":"f662f97cabb5be88cd58a20fbb03c681ae7ac68a"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":4,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"The OpenStack neutron have L3 flavors implemented as a service plugin,"},{"line_number":7,"context_line":"which allows to associate providers with L3 resources like router etc."},{"line_number":8,"context_line":"Multiple L3 backends can be used in the same cloud with this feature,"},{"line_number":9,"context_line":"each flavor driver needs to configured in the neutron.conf"},{"line_number":10,"context_line":""}],"source_content_type":"text/x-rst","patch_set":16,"id":"9f6a8fd7_693e038c","line":7,"range":{"start_line":7,"start_character":54,"end_line":7,"end_character":69},"updated":"2018-07-12 10:58:08.000000000","message":"(e.g. router, etc.)","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":6,"context_line":"The OpenStack neutron have L3 flavors implemented as a service plugin,"},{"line_number":7,"context_line":"which allows to associate providers with L3 resources like router etc."},{"line_number":8,"context_line":"Multiple L3 backends can be used in the same cloud with this feature,"},{"line_number":9,"context_line":"each flavor driver needs to configured in the neutron.conf"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"L3 Flavors Configuration"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9f6a8fd7_094f4734","line":9,"range":{"start_line":9,"start_character":42,"end_line":9,"end_character":45},"updated":"2018-07-12 10:58:08.000000000","message":"-the","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":12,"context_line":"L3 Flavors Configuration"},{"line_number":13,"context_line":"------------------------"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"All related neutron services need to be restarted after configuration change."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"#. Configure Openstack neutron server. The neutron server implements L3 Flavors"},{"line_number":18,"context_line":"   as a service plugin. Edit the ``/etc/neutron/neutron.conf`` file:"}],"source_content_type":"text/x-rst","patch_set":16,"id":"9f6a8fd7_49721f7d","line":15,"range":{"start_line":15,"start_character":55,"end_line":15,"end_character":56},"updated":"2018-07-12 10:58:08.000000000","message":"+a","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"All related neutron services need to be restarted after configuration change."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"#. Configure Openstack neutron server. The neutron server implements L3 Flavors"},{"line_number":18,"context_line":"   as a service plugin. Edit the ``/etc/neutron/neutron.conf`` file:"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"   * Enable the service plugin."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"     .. code-block:: ini"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        [DEFAULT]"},{"line_number":25,"context_line":"        ..."},{"line_number":26,"context_line":"        service_plugins \u003d .....,router,...."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"   * (Optional) Enable ODL L3 router, if QoS feature is desired,"},{"line_number":29,"context_line":"     then qos should be appended to service_plugins"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"     .. code-block:: ini"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        [DEFAULT]"},{"line_number":34,"context_line":"        ..."},{"line_number":35,"context_line":"        [service_providers]"},{"line_number":36,"context_line":"        service_provider \u003d L3_ROUTER_NAT:ODL:networking_odl.l3.l3_flavor.ODLL3ServiceProvider:default"}],"source_content_type":"text/x-rst","patch_set":29,"id":"5f7c97a3_308ffe2a","line":36,"range":{"start_line":17,"start_character":0,"end_line":36,"end_character":101},"updated":"2018-07-12 10:58:08.000000000","message":"This difers from the README.rst","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":9,"context_line":"each flavor driver needs to configured in the neutron.conf"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"L3 Flavors Configuration"},{"line_number":13,"context_line":"------------------------"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"All related neutron services need to be restarted after configuration change."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"#. Configure Openstack neutron server. The neutron server implements L3 Flavors"},{"line_number":18,"context_line":"   as a service plugin. Edit the ``/etc/neutron/neutron.conf`` file:"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"   * Enable the service plugin."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"     .. code-block:: ini"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        [DEFAULT]"},{"line_number":25,"context_line":"        ..."},{"line_number":26,"context_line":"        service_plugins \u003d .....,router,...."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"   * (Optional) Enable ODL L3 router, if QoS feature is desired,"},{"line_number":29,"context_line":"     then qos should be appended to service_plugins"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"     .. code-block:: ini"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        [DEFAULT]"},{"line_number":34,"context_line":"        ..."},{"line_number":35,"context_line":"        [service_providers]"},{"line_number":36,"context_line":"        service_provider \u003d L3_ROUTER_NAT:ODL:networking_odl.l3.l3_flavor.ODLL3ServiceProvider:default"}],"source_content_type":"text/x-rst","patch_set":36,"id":"5f7c97a3_bf2f2e3c","line":36,"range":{"start_line":12,"start_character":0,"end_line":36,"end_character":101},"updated":"2018-07-12 10:58:08.000000000","message":"these instructions are repeated twice. I think it makes more sense to have them only in one place and be included or linked in the other file. That way maintaining this is easier.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":9,"context_line":"each flavor driver needs to configured in the neutron.conf"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"L3 Flavors Configuration"},{"line_number":13,"context_line":"------------------------"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"All related neutron services need to be restarted after configuration change."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"#. Configure Openstack neutron server. The neutron server implements L3 Flavors"},{"line_number":18,"context_line":"   as a service plugin. Edit the ``/etc/neutron/neutron.conf`` file:"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"   * Enable the service plugin."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"     .. code-block:: ini"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"        [DEFAULT]"},{"line_number":25,"context_line":"        ..."},{"line_number":26,"context_line":"        service_plugins \u003d .....,router,...."},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"   * (Optional) Enable ODL L3 router, if QoS feature is desired,"},{"line_number":29,"context_line":"     then qos should be appended to service_plugins"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"     .. code-block:: ini"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        [DEFAULT]"},{"line_number":34,"context_line":"        ..."},{"line_number":35,"context_line":"        [service_providers]"},{"line_number":36,"context_line":"        service_provider \u003d L3_ROUTER_NAT:ODL:networking_odl.l3.l3_flavor.ODLL3ServiceProvider:default"}],"source_content_type":"text/x-rst","patch_set":36,"id":"5f7c97a3_8640a1a4","line":36,"range":{"start_line":12,"start_character":0,"end_line":36,"end_character":101},"in_reply_to":"5f7c97a3_bf2f2e3c","updated":"2018-07-12 22:07:19.000000000","message":"i\u0027ll remove it","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"}],"networking_odl/l3/l3_flavor.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"1d2c3993fd1889453b82341936f3e007a255ac8b","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":99,"context_line":"    @log_helpers.log_method_call"},{"line_number":100,"context_line":"    @_return_if_not_owner"},{"line_number":101,"context_line":"    def _floaringip_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":102,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":103,"context_line":"        fip_dict \u003d kwargs[\u0027floating_ip\u0027]"},{"line_number":104,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f515b1d_9fd0cbf9","line":101,"range":{"start_line":101,"start_character":8,"end_line":101,"end_character":36},"updated":"2017-11-16 22:35:49.000000000","message":"floating","commit_id":"963350fdd72850d9de28b494c08f03dced1b60e9"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"d46f71b46293297ee44ed31594e058be6f9ed685","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":75,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    @registry.receives(resources.ROUTER, [n_events.PRECOMMIT_CREATE])"},{"line_number":78,"context_line":"    @log_helpers.log_method_call"},{"line_number":79,"context_line":"    @_return_if_not_owner"},{"line_number":80,"context_line":"    def _router_create_precommit(self, resource, event, trigger, **kwargs):"}],"source_content_type":"text/x-python","patch_set":7,"id":"9f91af0f_73462d24","line":77,"range":{"start_line":77,"start_character":41,"end_line":77,"end_character":69},"updated":"2018-01-06 01:10:43.000000000","message":"need to update events once changes in neutron gets merged","commit_id":"f2d1a332b9265a37e819fadf6fe0df513dfca182"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"7ee1304040de6e3027fb9a74756493b23e20d2e1","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":138,"context_line":"    @log_helpers.log_method_call"},{"line_number":139,"context_line":"    def _floatingip_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":140,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":141,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":142,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"}],"source_content_type":"text/x-python","patch_set":9,"id":"7f96bb07_3c467123","line":139,"range":{"start_line":139,"start_character":0,"end_line":139,"end_character":79},"updated":"2018-01-12 15:57:38.000000000","message":"we need to check associated l3 flavor and ignore if it\u0027s not odl.","commit_id":"abefc39fb0d3b93c51e3b6ba64212e5d528ca89a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"80e1ec774d867a9aff52e153b7b8521974e05e6a","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":138,"context_line":"    @log_helpers.log_method_call"},{"line_number":139,"context_line":"    def _floatingip_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":140,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":141,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":142,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"}],"source_content_type":"text/x-python","patch_set":9,"id":"7f96bb07_0aa7a351","line":139,"range":{"start_line":139,"start_character":0,"end_line":139,"end_character":79},"in_reply_to":"7f96bb07_3c467123","updated":"2018-01-12 17:39:16.000000000","message":"logically a fip can be created independent of a router, we can get flavor from router id, that\u0027s one way but won\u0027t work if router_id is None, I think it should have way to figured out flavor in both cases ?","commit_id":"abefc39fb0d3b93c51e3b6ba64212e5d528ca89a"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"7ee1304040de6e3027fb9a74756493b23e20d2e1","unresolved":false,"context_lines":[{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_UPDATE])"},{"line_number":151,"context_line":"    @log_helpers.log_method_call"},{"line_number":152,"context_line":"    def _floatingip_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":153,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":154,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":155,"context_line":"        if fip_dict is None:"}],"source_content_type":"text/x-python","patch_set":9,"id":"7f96bb07_dc542dcd","line":152,"range":{"start_line":152,"start_character":0,"end_line":152,"end_character":79},"updated":"2018-01-12 15:57:38.000000000","message":"ditto.","commit_id":"abefc39fb0d3b93c51e3b6ba64212e5d528ca89a"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"7ee1304040de6e3027fb9a74756493b23e20d2e1","unresolved":false,"context_lines":[{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_DELETE])"},{"line_number":171,"context_line":"    @log_helpers.log_method_call"},{"line_number":172,"context_line":"    def _floatingip_delete_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":173,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":174,"context_line":"        fip_data \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":175,"context_line":"        dependency_list \u003d [fip_data[\u0027router_id\u0027]]"}],"source_content_type":"text/x-python","patch_set":9,"id":"7f96bb07_fc4fa931","line":172,"range":{"start_line":172,"start_character":0,"end_line":172,"end_character":79},"updated":"2018-01-12 15:57:38.000000000","message":"ditto.","commit_id":"abefc39fb0d3b93c51e3b6ba64212e5d528ca89a"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"7b3b0c5478caa6fedb4646f57032f299a8828bca","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data[\u0027id\u0027],"},{"line_number":178,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    @_return_if_not_owner"},{"line_number":181,"context_line":"    @journal.call_thread_on_end"},{"line_number":182,"context_line":"    def _after_operation(self, resource, event, trigger, **kwargs):"},{"line_number":183,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":9,"id":"7f96bb07_1c229553","line":183,"range":{"start_line":180,"start_character":0,"end_line":183,"end_character":12},"updated":"2018-01-12 15:59:59.000000000","message":"Is this used?","commit_id":"abefc39fb0d3b93c51e3b6ba64212e5d528ca89a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"a5f930a9382f96803625d468d1624b1608411def","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data[\u0027id\u0027],"},{"line_number":178,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    @_return_if_not_owner"},{"line_number":181,"context_line":"    @journal.call_thread_on_end"},{"line_number":182,"context_line":"    def _after_operation(self, resource, event, trigger, **kwargs):"},{"line_number":183,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":9,"id":"7f96bb07_a0ea4ba9","line":183,"range":{"start_line":180,"start_character":0,"end_line":183,"end_character":12},"in_reply_to":"7f96bb07_1c229553","updated":"2018-01-14 04:20:29.000000000","message":"Done","commit_id":"abefc39fb0d3b93c51e3b6ba64212e5d528ca89a"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"3addc2884f5bf099c7e53f490235ed744c788199","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":138,"context_line":"    @log_helpers.log_method_call"},{"line_number":139,"context_line":"    def _floatingip_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":140,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":141,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":142,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":143,"context_line":"        if fip_dict[\u0027port_id\u0027] is None:"},{"line_number":144,"context_line":"            fip_dict[\u0027status\u0027] \u003d \u0027down\u0027"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f96bb07_bbaf6328","line":141,"range":{"start_line":140,"start_character":35,"end_line":141,"end_character":39},"updated":"2018-01-17 19:52:27.000000000","message":"fip_dict has router_id. so we can deduce associated l3 flavor.\nIf it\u0027s not ODL, it needs to be ignored.","commit_id":"35313e8820a88b0616f14a55af957b140ea3f3d0"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"a24ec489ac941d222ebdd431ca6ceda2df2b5302","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":138,"context_line":"    @log_helpers.log_method_call"},{"line_number":139,"context_line":"    def _floatingip_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":140,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":141,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":142,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":143,"context_line":"        if fip_dict[\u0027port_id\u0027] is None:"},{"line_number":144,"context_line":"            fip_dict[\u0027status\u0027] \u003d \u0027down\u0027"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f96bb07_904281aa","line":141,"range":{"start_line":140,"start_character":35,"end_line":141,"end_character":39},"in_reply_to":"7f96bb07_bbaf6328","updated":"2018-01-17 20:42:07.000000000","message":"http://paste.openstack.org/show/646543/ this payload for fip create how is it supposed to router_id when the operation is independent ?\n\ncase 1: the public subnet interface is added to router then I guess it should have router_id in all fips, in this case it could be bug neutron not sending the router_id for fip operation.\n\ncase 2. when fip is created on public network whose interface is not yet added to router then ?","commit_id":"35313e8820a88b0616f14a55af957b140ea3f3d0"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"3addc2884f5bf099c7e53f490235ed744c788199","unresolved":false,"context_lines":[{"line_number":159,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":160,"context_line":"        if fip_dict is None:"},{"line_number":161,"context_line":"            return"},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"        fip_id \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":164,"context_line":"        # REVISIT(yamahata):"},{"line_number":165,"context_line":"        # Update status based on association"},{"line_number":166,"context_line":"        # if fip_dict.get(\u0027port_id\u0027) is None:"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f96bb07_fb472b76","line":163,"range":{"start_line":162,"start_character":0,"end_line":163,"end_character":1},"updated":"2018-01-17 19:52:27.000000000","message":"mostly same to _floatingip_create_precommit.\ncheck router_id is odl or not.\nrouter_id can be changed.","commit_id":"35313e8820a88b0616f14a55af957b140ea3f3d0"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"3addc2884f5bf099c7e53f490235ed744c788199","unresolved":false,"context_lines":[{"line_number":175,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_DELETE])"},{"line_number":176,"context_line":"    @log_helpers.log_method_call"},{"line_number":177,"context_line":"    def _floatingip_delete_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":178,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":179,"context_line":"        fip_data \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":180,"context_line":"        dependency_list \u003d [fip_data[\u0027router_id\u0027]]"},{"line_number":181,"context_line":"        dependency_list.append(fip_data[\u0027floating_network_id\u0027])"},{"line_number":182,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data[\u0027id\u0027],"},{"line_number":183,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7f96bb07_bb5d2348","line":180,"range":{"start_line":178,"start_character":0,"end_line":180,"end_character":1},"updated":"2018-01-17 19:52:27.000000000","message":"ditto.","commit_id":"35313e8820a88b0616f14a55af957b140ea3f3d0"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"f2b07f232cfc7d3e05f6da42067507accc4877ec","unresolved":false,"context_lines":[{"line_number":109,"context_line":"            # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    @registry.receives(ROUTER_CONTROLLER,"},{"line_number":112,"context_line":"                       [events.PRECOMMIT_UPDATE])"},{"line_number":113,"context_line":"    @log_helpers.log_method_call"},{"line_number":114,"context_line":"    def _router_del_association(self, resource, event, trigger, **kwargs):"},{"line_number":115,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":116,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":117,"context_line":"        if old_drv !\u003d self or old_drv \u003d\u003d new_drv:"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_7c92c0f8","line":114,"range":{"start_line":112,"start_character":24,"end_line":114,"end_character":31},"updated":"2018-02-06 20:01:28.000000000","message":"Is this method for precommit_delete_associations or precommit_update?","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"f2b07f232cfc7d3e05f6da42067507accc4877ec","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                       [events.PRECOMMIT_UPDATE])"},{"line_number":113,"context_line":"    @log_helpers.log_method_call"},{"line_number":114,"context_line":"    def _router_del_association(self, resource, event, trigger, **kwargs):"},{"line_number":115,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":116,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":117,"context_line":"        if old_drv !\u003d self or old_drv \u003d\u003d new_drv:"},{"line_number":118,"context_line":"            return"},{"line_number":119,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":120,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":121,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":122,"context_line":"        dependency_list \u003d [kwargs[\u0027router_db\u0027].gw_port_id]"},{"line_number":123,"context_line":"        journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":124,"context_line":"                       router_id, odl_const.ODL_DELETE, dependency_list)"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_DELETE])"},{"line_number":127,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_7caba01c","line":124,"range":{"start_line":115,"start_character":0,"end_line":124,"end_character":72},"updated":"2018-02-06 20:01:28.000000000","message":"This logic seems for precomit_delete_associations.\nthe logic for precommit_update to change configuration of l3 router is also needed.","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"e475fa594ff95817c376fd2e6d300aa234313f41","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                       [events.PRECOMMIT_UPDATE])"},{"line_number":113,"context_line":"    @log_helpers.log_method_call"},{"line_number":114,"context_line":"    def _router_del_association(self, resource, event, trigger, **kwargs):"},{"line_number":115,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":116,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":117,"context_line":"        if old_drv !\u003d self or old_drv \u003d\u003d new_drv:"},{"line_number":118,"context_line":"            return"},{"line_number":119,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":120,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":121,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":122,"context_line":"        dependency_list \u003d [kwargs[\u0027router_db\u0027].gw_port_id]"},{"line_number":123,"context_line":"        journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":124,"context_line":"                       router_id, odl_const.ODL_DELETE, dependency_list)"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_DELETE])"},{"line_number":127,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_23515763","line":124,"range":{"start_line":115,"start_character":0,"end_line":124,"end_character":72},"in_reply_to":"3fa0c359_7caba01c","updated":"2018-02-07 18:32:25.000000000","message":"yes, and L91 should be ADD_ASSOCIATION not UPDATE event. will be taken care of in next PS","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"f2b07f232cfc7d3e05f6da42067507accc4877ec","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":144,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":145,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":146,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d L3_PROVIDER"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":149,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_2f84fc5d","line":146,"range":{"start_line":146,"start_character":15,"end_line":146,"end_character":18},"updated":"2018-02-06 20:01:28.000000000","message":"aren\u0027t the value string? they come from configuration.","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"95bb81759e6966a6979cf9310cb0f1278c72abe0","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":144,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":145,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":146,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d L3_PROVIDER"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":149,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_8f5190db","line":146,"range":{"start_line":146,"start_character":15,"end_line":146,"end_character":18},"in_reply_to":"3fa0c359_2f84fc5d","updated":"2018-02-06 20:08:42.000000000","message":"its unicode","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"f2b07f232cfc7d3e05f6da42067507accc4877ec","unresolved":false,"context_lines":[{"line_number":152,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":153,"context_line":"        if not self._validate_floatingip_operation(context, router_id):"},{"line_number":154,"context_line":"            return"},{"line_number":155,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":156,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":157,"context_line":"        if fip_dict[\u0027port_id\u0027] is None:"},{"line_number":158,"context_line":"            fip_dict[\u0027status\u0027] \u003d \u0027down\u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_7c80808c","line":155,"range":{"start_line":155,"start_character":19,"end_line":155,"end_character":39},"updated":"2018-02-06 20:01:28.000000000","message":".copy() to not modify the passed argument.","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"95bb81759e6966a6979cf9310cb0f1278c72abe0","unresolved":false,"context_lines":[{"line_number":152,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":153,"context_line":"        if not self._validate_floatingip_operation(context, router_id):"},{"line_number":154,"context_line":"            return"},{"line_number":155,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":156,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":157,"context_line":"        if fip_dict[\u0027port_id\u0027] is None:"},{"line_number":158,"context_line":"            fip_dict[\u0027status\u0027] \u003d \u0027down\u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_6f6d2497","line":155,"range":{"start_line":155,"start_character":19,"end_line":155,"end_character":39},"in_reply_to":"3fa0c359_7c80808c","updated":"2018-02-06 20:08:42.000000000","message":"Done","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"f2b07f232cfc7d3e05f6da42067507accc4877ec","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":175,"context_line":"        if fip_dict is None:"},{"line_number":176,"context_line":"            return"},{"line_number":177,"context_line":"        if not self._validate_floatingip_operation(context, router_id):"},{"line_number":178,"context_line":"            return"},{"line_number":179,"context_line":"        fip_id \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":180,"context_line":"        # REVISIT(yamahata):"},{"line_number":181,"context_line":"        # Update status based on association"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_3c1af87c","line":178,"range":{"start_line":177,"start_character":0,"end_line":178,"end_character":18},"updated":"2018-02-06 20:01:28.000000000","message":"disassociation case needs to be handled.\nfip is associated odl l3 router, and then disassociated.","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"e475fa594ff95817c376fd2e6d300aa234313f41","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":175,"context_line":"        if fip_dict is None:"},{"line_number":176,"context_line":"            return"},{"line_number":177,"context_line":"        if not self._validate_floatingip_operation(context, router_id):"},{"line_number":178,"context_line":"            return"},{"line_number":179,"context_line":"        fip_id \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":180,"context_line":"        # REVISIT(yamahata):"},{"line_number":181,"context_line":"        # Update status based on association"}],"source_content_type":"text/x-python","patch_set":12,"id":"3fa0c359_63a2ff4d","line":178,"range":{"start_line":177,"start_character":0,"end_line":178,"end_character":18},"in_reply_to":"3fa0c359_3c1af87c","updated":"2018-02-07 18:32:25.000000000","message":"how can be it different from handling a case where operator just want to dissociate a fixed l2 port from fip ? so it will check for fip\u0027s router_id and if it belongs odl then dissociate port ? Its convoluted, fip has no association to router, its just if fip is from a ip from network whose subnet is interfaced to router ?","commit_id":"4ef72315fcbada0498f482dff00f8546526ed326"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"262538242ef3c3575f7d32cfbcf5cd870b2a1913","unresolved":false,"context_lines":[{"line_number":48,"context_line":"}"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"def _return_if_not_owner(meth):"},{"line_number":52,"context_line":"    @six.wraps(meth)"},{"line_number":53,"context_line":"    def _wrapper(self, resource, event, trigger, **kwargs):"},{"line_number":54,"context_line":"        drv \u003d kwargs.get(\u0027driver\u0027)"},{"line_number":55,"context_line":"        if drv is not None:"},{"line_number":56,"context_line":"            if drv \u003d\u003d self:"},{"line_number":57,"context_line":"                return meth(self, resource, event, trigger, **kwargs)"},{"line_number":58,"context_line":"            return None"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":61,"context_line":"        # \u0027router_id\u0027 for floatingip case"},{"line_number":62,"context_line":"        router_id \u003d kwargs.get(\u0027router_id\u0027) or kwargs.get(\u0027id\u0027)"},{"line_number":63,"context_line":"        if not self.owns_router(context, router_id):"},{"line_number":64,"context_line":"            return None"},{"line_number":65,"context_line":"        return meth(self, resource, event, trigger, **kwargs)"},{"line_number":66,"context_line":"    return _wrapper"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_f317a450","line":66,"range":{"start_line":51,"start_character":0,"end_line":66,"end_character":19},"updated":"2018-02-08 13:49:33.000000000","message":"Why not same as _validate_floatingip_operation?\n\nI think a decorator is a bit overkill here..","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"345ad8e467b4ed5d791f1ff3c0cdb5726cae340a","unresolved":false,"context_lines":[{"line_number":48,"context_line":"}"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"def _return_if_not_owner(meth):"},{"line_number":52,"context_line":"    @six.wraps(meth)"},{"line_number":53,"context_line":"    def _wrapper(self, resource, event, trigger, **kwargs):"},{"line_number":54,"context_line":"        drv \u003d kwargs.get(\u0027driver\u0027)"},{"line_number":55,"context_line":"        if drv is not None:"},{"line_number":56,"context_line":"            if drv \u003d\u003d self:"},{"line_number":57,"context_line":"                return meth(self, resource, event, trigger, **kwargs)"},{"line_number":58,"context_line":"            return None"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":61,"context_line":"        # \u0027router_id\u0027 for floatingip case"},{"line_number":62,"context_line":"        router_id \u003d kwargs.get(\u0027router_id\u0027) or kwargs.get(\u0027id\u0027)"},{"line_number":63,"context_line":"        if not self.owns_router(context, router_id):"},{"line_number":64,"context_line":"            return None"},{"line_number":65,"context_line":"        return meth(self, resource, event, trigger, **kwargs)"},{"line_number":66,"context_line":"    return _wrapper"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"@registry.has_registry_receivers"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_855b6f52","line":66,"range":{"start_line":51,"start_character":0,"end_line":66,"end_character":19},"in_reply_to":"3fa0c359_f317a450","updated":"2018-02-08 18:24:17.000000000","message":"I don\u0027t have strong preference, it can be done both ways, but I guess for code simplicity the it can be implemented as a static method as well.","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"262538242ef3c3575f7d32cfbcf5cd870b2a1913","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        # other router with other service provider should be filtered."},{"line_number":78,"context_line":"        full_sync.register(plugin_constants.L3, L3_RESOURCES)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":81,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_CREATE])"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_53dbf819","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":34},"updated":"2018-02-08 13:49:33.000000000","message":"Should be outside the class or a static method.\n\nAlso the name doesn\u0027t fit, should be something like \"_get_context_and_router\" or similar.","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"345ad8e467b4ed5d791f1ff3c0cdb5726cae340a","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        # other router with other service provider should be filtered."},{"line_number":78,"context_line":"        full_sync.register(plugin_constants.L3, L3_RESOURCES)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":81,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_CREATE])"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_652503c2","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":34},"in_reply_to":"3fa0c359_53dbf819","updated":"2018-02-08 18:24:17.000000000","message":"definitely name needs justice","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        # other router with other service provider should be filtered."},{"line_number":78,"context_line":"        full_sync.register(plugin_constants.L3, L3_RESOURCES)"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":81,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_CREATE])"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_4d7541f9","line":80,"range":{"start_line":80,"start_character":4,"end_line":80,"end_character":34},"in_reply_to":"3fa0c359_652503c2","updated":"2018-05-30 12:30:57.000000000","message":"Did you mean to change this or not? I\u0027m not sure..","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"262538242ef3c3575f7d32cfbcf5cd870b2a1913","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    @log_helpers.log_method_call"},{"line_number":114,"context_line":"    @_return_if_not_owner"},{"line_number":115,"context_line":"    def _router_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":116,"context_line":"        pass"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    @registry.receives(ROUTER_CONTROLLER,"},{"line_number":119,"context_line":"                       [events.PRECOMMIT_DELETE_ASSOCIATIONS])"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_53ac5833","line":116,"range":{"start_line":116,"start_character":8,"end_line":116,"end_character":12},"updated":"2018-02-08 13:49:33.000000000","message":"Why define if you do nothing?","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"345ad8e467b4ed5d791f1ff3c0cdb5726cae340a","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    @log_helpers.log_method_call"},{"line_number":114,"context_line":"    @_return_if_not_owner"},{"line_number":115,"context_line":"    def _router_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":116,"context_line":"        pass"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    @registry.receives(ROUTER_CONTROLLER,"},{"line_number":119,"context_line":"                       [events.PRECOMMIT_DELETE_ASSOCIATIONS])"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_405f950d","line":116,"range":{"start_line":116,"start_character":8,"end_line":116,"end_character":12},"in_reply_to":"3fa0c359_53ac5833","updated":"2018-02-08 18:24:17.000000000","message":"under construction, added it to save the changes I had locally and also posted a comment.","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"262538242ef3c3575f7d32cfbcf5cd870b2a1913","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        if old_drv !\u003d self or old_drv \u003d\u003d new_drv:"},{"line_number":125,"context_line":"            return"},{"line_number":126,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":127,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":128,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":129,"context_line":"        dependency_list \u003d [kwargs[\u0027router_db\u0027].gw_port_id]"},{"line_number":130,"context_line":"        journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":131,"context_line":"                       router_id, odl_const.ODL_DELETE, dependency_list)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_DELETE])"},{"line_number":134,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_737cf4b4","line":131,"range":{"start_line":127,"start_character":8,"end_line":131,"end_character":72},"updated":"2018-02-08 13:49:33.000000000","message":"You can simply call self._router_delete_precommit","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"345ad8e467b4ed5d791f1ff3c0cdb5726cae340a","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        if old_drv !\u003d self or old_drv \u003d\u003d new_drv:"},{"line_number":125,"context_line":"            return"},{"line_number":126,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":127,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":128,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":129,"context_line":"        dependency_list \u003d [kwargs[\u0027router_db\u0027].gw_port_id]"},{"line_number":130,"context_line":"        journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":131,"context_line":"                       router_id, odl_const.ODL_DELETE, dependency_list)"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_DELETE])"},{"line_number":134,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_e02ee141","line":131,"range":{"start_line":127,"start_character":8,"end_line":131,"end_character":72},"in_reply_to":"3fa0c359_737cf4b4","updated":"2018-02-08 18:24:17.000000000","message":"I think the reason of having it different is payload, which is different in both callbacks, but It can still be handled in common method.","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"262538242ef3c3575f7d32cfbcf5cd870b2a1913","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        journal.record(context, odl_const.ODL_ROUTER, router_id,"},{"line_number":143,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"    def _validate_floatingip_operation(self, context, router_id):"},{"line_number":146,"context_line":"        if router_id is None:"},{"line_number":147,"context_line":"            return False"},{"line_number":148,"context_line":"        router \u003d l3_obj.Router.get_object(context, id\u003drouter_id)"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_b35b5c52","line":145,"range":{"start_line":145,"start_character":0,"end_line":145,"end_character":65},"updated":"2018-02-08 13:49:33.000000000","message":"Can be outside the class, or a static method","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"262538242ef3c3575f7d32cfbcf5cd870b2a1913","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            fip_dict[\u0027status\u0027] \u003d \u0027up\u0027"},{"line_number":168,"context_line":"        # floating ip dict doesn\u0027t have floating ip so"},{"line_number":169,"context_line":"        # fetching it from floatingip_db object."},{"line_number":170,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":171,"context_line":"            fip_dict[\u0027floating_ip_addqress\u0027] \u003d \\"},{"line_number":172,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"},{"line_number":173,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_be2243a3","line":170,"range":{"start_line":170,"start_character":0,"end_line":170,"end_character":51},"updated":"2018-02-08 13:49:33.000000000","message":"From the comment this doesn\u0027t seem to be something conditional.. Either he comment is poorly worded, or this always happens","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            fip_dict[\u0027status\u0027] \u003d \u0027up\u0027"},{"line_number":168,"context_line":"        # floating ip dict doesn\u0027t have floating ip so"},{"line_number":169,"context_line":"        # fetching it from floatingip_db object."},{"line_number":170,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":171,"context_line":"            fip_dict[\u0027floating_ip_addqress\u0027] \u003d \\"},{"line_number":172,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"},{"line_number":173,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_d0124a62","line":170,"range":{"start_line":170,"start_character":0,"end_line":170,"end_character":51},"in_reply_to":"3fa0c359_a500eb68","updated":"2018-05-30 12:30:57.000000000","message":"Can you update the comment please?","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"345ad8e467b4ed5d791f1ff3c0cdb5726cae340a","unresolved":false,"context_lines":[{"line_number":167,"context_line":"            fip_dict[\u0027status\u0027] \u003d \u0027up\u0027"},{"line_number":168,"context_line":"        # floating ip dict doesn\u0027t have floating ip so"},{"line_number":169,"context_line":"        # fetching it from floatingip_db object."},{"line_number":170,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":171,"context_line":"            fip_dict[\u0027floating_ip_addqress\u0027] \u003d \\"},{"line_number":172,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"},{"line_number":173,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"3fa0c359_a500eb68","line":170,"range":{"start_line":170,"start_character":0,"end_line":170,"end_character":51},"in_reply_to":"3fa0c359_be2243a3","updated":"2018-02-08 18:24:17.000000000","message":"comment need an update","commit_id":"c63f830e297300f6b2747000a2770416f50f0eb9"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9174c980814c2040ef07995720dc9e591018a627","unresolved":false,"context_lines":[{"line_number":80,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":81,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_CREATE])"},{"line_number":84,"context_line":"    @log_helpers.log_method_call"},{"line_number":85,"context_line":"    @_return_if_not_owner"},{"line_number":86,"context_line":"    def _router_create_precommit(self, resource, event, trigger, **kwargs):"}],"source_content_type":"text/x-python","patch_set":14,"id":"df7087c5_c37bccbb","line":83,"range":{"start_line":83,"start_character":67,"end_line":83,"end_character":68},"updated":"2018-03-10 07:18:36.000000000","message":"priority is necessary.\nsame to all callbacks.","commit_id":"0492e2b108c3ab8a0658d12b721bd6f038c3955f"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"4ff236d6e90c70ab8c0a2409bddf6ed83fd7bf98","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":82,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_CREATE],"},{"line_number":85,"context_line":"                       priority_group.PRIORITY_ROUTER_CONTROLLER)"},{"line_number":86,"context_line":"    @log_helpers.log_method_call"},{"line_number":87,"context_line":"    @_return_if_not_owner"}],"source_content_type":"text/x-python","patch_set":15,"id":"bf659307_18d89a7d","line":84,"range":{"start_line":84,"start_character":23,"end_line":84,"end_character":40},"updated":"2018-04-04 23:08:31.000000000","message":"ROUTER\nalso revise all the callbacks to reflect neutron-lib change.","commit_id":"f662f97cabb5be88cd58a20fbb03c681ae7ac68a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"c938429163bde2e75ff38bd821482fb07348d08a","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":82,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_CREATE],"},{"line_number":85,"context_line":"                       priority_group.PRIORITY_ROUTER_CONTROLLER)"},{"line_number":86,"context_line":"    @log_helpers.log_method_call"},{"line_number":87,"context_line":"    @_return_if_not_owner"}],"source_content_type":"text/x-python","patch_set":15,"id":"bf659307_2a7c16b4","line":84,"range":{"start_line":84,"start_character":23,"end_line":84,"end_character":40},"in_reply_to":"bf659307_18d89a7d","updated":"2018-04-05 16:27:47.000000000","message":"Done","commit_id":"f662f97cabb5be88cd58a20fbb03c681ae7ac68a"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"4ff236d6e90c70ab8c0a2409bddf6ed83fd7bf98","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_CREATE],"},{"line_number":85,"context_line":"                       priority_group.PRIORITY_ROUTER_CONTROLLER)"},{"line_number":86,"context_line":"    @log_helpers.log_method_call"},{"line_number":87,"context_line":"    @_return_if_not_owner"},{"line_number":88,"context_line":"    def _router_create_precommit(self, resource, event, trigger, **kwargs):"}],"source_content_type":"text/x-python","patch_set":15,"id":"bf659307_f8acc6ef","line":85,"range":{"start_line":85,"start_character":47,"end_line":85,"end_character":65},"updated":"2018-04-04 23:08:31.000000000","message":"ROUTER_DRIVER.\nsame to the all the callbacks.","commit_id":"f662f97cabb5be88cd58a20fbb03c681ae7ac68a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"c938429163bde2e75ff38bd821482fb07348d08a","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    @registry.receives(ROUTER_CONTROLLER, [events.PRECOMMIT_CREATE],"},{"line_number":85,"context_line":"                       priority_group.PRIORITY_ROUTER_CONTROLLER)"},{"line_number":86,"context_line":"    @log_helpers.log_method_call"},{"line_number":87,"context_line":"    @_return_if_not_owner"},{"line_number":88,"context_line":"    def _router_create_precommit(self, resource, event, trigger, **kwargs):"}],"source_content_type":"text/x-python","patch_set":15,"id":"bf659307_ca4a3a82","line":85,"range":{"start_line":85,"start_character":47,"end_line":85,"end_character":65},"in_reply_to":"bf659307_f8acc6ef","updated":"2018-04-05 16:27:47.000000000","message":"Done","commit_id":"f662f97cabb5be88cd58a20fbb03c681ae7ac68a"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"4ff236d6e90c70ab8c0a2409bddf6ed83fd7bf98","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    @registry.receives(ROUTER_CONTROLLER,"},{"line_number":95,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION],"},{"line_number":96,"context_line":"                       priority_group.PRIORITY_ROUTER_CONTROLLER)"},{"line_number":97,"context_line":"    @log_helpers.log_method_call"},{"line_number":98,"context_line":"    @_return_if_not_owner"},{"line_number":99,"context_line":"    def _router_add_association(self, resource, event, trigger, **kwargs):"}],"source_content_type":"text/x-python","patch_set":15,"id":"bf659307_f895a689","line":96,"range":{"start_line":96,"start_character":23,"end_line":96,"end_character":64},"updated":"2018-04-04 23:08:31.000000000","message":"This isn\u0027t needed because we have priority PRIORITY_ROUTER.","commit_id":"f662f97cabb5be88cd58a20fbb03c681ae7ac68a"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"c938429163bde2e75ff38bd821482fb07348d08a","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    @registry.receives(ROUTER_CONTROLLER,"},{"line_number":95,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION],"},{"line_number":96,"context_line":"                       priority_group.PRIORITY_ROUTER_CONTROLLER)"},{"line_number":97,"context_line":"    @log_helpers.log_method_call"},{"line_number":98,"context_line":"    @_return_if_not_owner"},{"line_number":99,"context_line":"    def _router_add_association(self, resource, event, trigger, **kwargs):"}],"source_content_type":"text/x-python","patch_set":15,"id":"bf659307_ea4ffe8f","line":96,"range":{"start_line":96,"start_character":23,"end_line":96,"end_character":64},"in_reply_to":"bf659307_f895a689","updated":"2018-04-05 16:27:47.000000000","message":"Done","commit_id":"f662f97cabb5be88cd58a20fbb03c681ae7ac68a"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import copy"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"import six"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from neutron_lib.callbacks import events"},{"line_number":23,"context_line":"from neutron_lib.callbacks import priority_group"},{"line_number":24,"context_line":"from neutron_lib.callbacks import registry"},{"line_number":25,"context_line":"from neutron_lib.callbacks import resources"},{"line_number":26,"context_line":"from neutron_lib.plugins import constants as plugin_constants"},{"line_number":27,"context_line":"from neutron_lib.plugins import directory"},{"line_number":28,"context_line":"from oslo_log import helpers as log_helpers"},{"line_number":29,"context_line":"from oslo_log import log as logging"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"from neutron.objects import router as l3_obj"},{"line_number":32,"context_line":"from neutron.services.l3_router.service_providers import base"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"from networking_odl.common import constants as odl_const"},{"line_number":35,"context_line":"from networking_odl.journal import full_sync"}],"source_content_type":"text/x-python","patch_set":16,"id":"9f6a8fd7_6925a35b","line":32,"range":{"start_line":20,"start_character":0,"end_line":32,"end_character":61},"updated":"2018-07-12 10:58:08.000000000","message":"all these imports belong to the same block of code","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"2cfaa55fa33cec285dc24714eda9ea35852753cf","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    @registry.receives(ROUTER_CONTROLLER,"},{"line_number":121,"context_line":"                       [events.PRECOMMIT_DELETE_ASSOCIATIONS])"},{"line_number":122,"context_line":"    @log_helpers.log_method_call"},{"line_number":123,"context_line":"    def _router_del_association(self, resource, event, trigger, **kwargs):"},{"line_number":124,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":125,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":126,"context_line":"        if old_drv !\u003d self:"}],"source_content_type":"text/x-python","patch_set":16,"id":"bf659307_7e688220","line":123,"range":{"start_line":123,"start_character":20,"end_line":123,"end_character":32},"updated":"2018-04-06 07:59:22.000000000","message":"associations (trailing \"s\") for consistency.","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"65b06b563feecddecaef2f43ec61d52174c22f58","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    @registry.receives(ROUTER_CONTROLLER,"},{"line_number":121,"context_line":"                       [events.PRECOMMIT_DELETE_ASSOCIATIONS])"},{"line_number":122,"context_line":"    @log_helpers.log_method_call"},{"line_number":123,"context_line":"    def _router_del_association(self, resource, event, trigger, **kwargs):"},{"line_number":124,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":125,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":126,"context_line":"        if old_drv !\u003d self:"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_4c1e510d","line":123,"range":{"start_line":123,"start_character":20,"end_line":123,"end_character":32},"in_reply_to":"bf659307_7e688220","updated":"2018-05-03 18:44:23.000000000","message":"i\u0027d stick with since its singular, request being handled for just one router association to one flavor here","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"f86c2e31fb2c8ed7368fcd6b8a2106416d9fe5c0","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            if new_drv is not None and new_drv !\u003d self:"},{"line_number":125,"context_line":"                return"},{"line_number":126,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":127,"context_line":"        self._router_delete_precommit(resource, event, trigger, **kwargs)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_DELETE],"},{"line_number":130,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5f7c97a3_8df8d5c4","line":127,"range":{"start_line":127,"start_character":8,"end_line":127,"end_character":73},"updated":"2018-05-04 17:07:22.000000000","message":"This doesn\u0027t work because the argument of this callback differs from the one for precommit_delete.","commit_id":"e86c9090a2c1f4b7ccf190ea2aa103306be5c248"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"9051d10e4f0708b3a02b90f4d036987b796bd013","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            if new_drv is not None and new_drv !\u003d self:"},{"line_number":125,"context_line":"                return"},{"line_number":126,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":127,"context_line":"        self._router_delete_precommit(resource, event, trigger, **kwargs)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_DELETE],"},{"line_number":130,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5f7c97a3_cd27ad64","line":127,"range":{"start_line":127,"start_character":8,"end_line":127,"end_character":73},"in_reply_to":"5f7c97a3_8df8d5c4","updated":"2018-05-04 17:08:09.000000000","message":"https://review.openstack.org/#/c/523257/54/neutron/services/l3_router/service_providers/driver_controller.py","commit_id":"e86c9090a2c1f4b7ccf190ea2aa103306be5c248"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"f0f98261ffb057fa946ef60c135847e5f7651e01","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            if new_drv is not None and new_drv !\u003d self:"},{"line_number":125,"context_line":"                return"},{"line_number":126,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":127,"context_line":"        self._router_delete_precommit(resource, event, trigger, **kwargs)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_DELETE],"},{"line_number":130,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"}],"source_content_type":"text/x-python","patch_set":20,"id":"5f7c97a3_c23f77d4","line":127,"range":{"start_line":127,"start_character":8,"end_line":127,"end_character":73},"in_reply_to":"5f7c97a3_8df8d5c4","updated":"2018-05-04 23:05:05.000000000","message":"kwargs processing in precommit_router_delete takes cares of it, it will have context and router_db always. \n\nlook at payload to _router_delete_precommit.\n\nhttp://paste.openstack.org/show/720411/","commit_id":"e86c9090a2c1f4b7ccf190ea2aa103306be5c248"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"c50f3eef6257b593c3ae601268211bd846ddfff7","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"},{"line_number":84,"context_line":"                           odl_const.ODL_CREATE, router_dict)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_CREATE],"},{"line_number":87,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":88,"context_line":"    @log_helpers.log_method_call"},{"line_number":89,"context_line":"    def _router_create_postcommit(self, resource, event, trigger, **kwargs):"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_4c964c97","line":86,"range":{"start_line":86,"start_character":41,"end_line":86,"end_character":62},"updated":"2018-05-17 16:58:44.000000000","message":"multiple events can be listed.\nSo you don\u0027t have to define many same methods.","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"4e4ac2c6a96a8ea6ad81d960f4276580f1956d5b","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"},{"line_number":84,"context_line":"                           odl_const.ODL_CREATE, router_dict)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_CREATE],"},{"line_number":87,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":88,"context_line":"    @log_helpers.log_method_call"},{"line_number":89,"context_line":"    def _router_create_postcommit(self, resource, event, trigger, **kwargs):"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_4c93ac5d","line":86,"range":{"start_line":86,"start_character":41,"end_line":86,"end_character":62},"in_reply_to":"5f7c97a3_4c964c97","updated":"2018-05-17 17:12:55.000000000","message":"gotcha","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"c50f3eef6257b593c3ae601268211bd846ddfff7","unresolved":false,"context_lines":[{"line_number":133,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":134,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_UPDATE],"},{"line_number":137,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":138,"context_line":"    @log_helpers.log_method_call"},{"line_number":139,"context_line":"    def _router_update_postcommit(self, resource, event, trigger, **kwargs):"},{"line_number":140,"context_line":"        self.journal.set_sync_event()"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":143,"context_line":"                       [events.PRECOMMIT_DELETE_ASSOCIATIONS])"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_6c9308a5","line":140,"range":{"start_line":136,"start_character":0,"end_line":140,"end_character":37},"updated":"2018-05-17 16:58:44.000000000","message":"consolidate this method into single callback.","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"4e4ac2c6a96a8ea6ad81d960f4276580f1956d5b","unresolved":false,"context_lines":[{"line_number":133,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":134,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_UPDATE],"},{"line_number":137,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":138,"context_line":"    @log_helpers.log_method_call"},{"line_number":139,"context_line":"    def _router_update_postcommit(self, resource, event, trigger, **kwargs):"},{"line_number":140,"context_line":"        self.journal.set_sync_event()"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":143,"context_line":"                       [events.PRECOMMIT_DELETE_ASSOCIATIONS])"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_4ca16c95","line":140,"range":{"start_line":136,"start_character":0,"end_line":140,"end_character":37},"in_reply_to":"5f7c97a3_6c9308a5","updated":"2018-05-17 17:12:55.000000000","message":"Done","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"c50f3eef6257b593c3ae601268211bd846ddfff7","unresolved":false,"context_lines":[{"line_number":142,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":143,"context_line":"                       [events.PRECOMMIT_DELETE_ASSOCIATIONS])"},{"line_number":144,"context_line":"    @log_helpers.log_method_call"},{"line_number":145,"context_line":"    def _router_del_association(self, resource, event, trigger, **kwargs):"},{"line_number":146,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":147,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":148,"context_line":"        if old_drv !\u003d self:"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_6c6548e1","line":145,"range":{"start_line":145,"start_character":20,"end_line":145,"end_character":31},"updated":"2018-05-17 16:58:44.000000000","message":"Again, associations for consistency.","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"4e4ac2c6a96a8ea6ad81d960f4276580f1956d5b","unresolved":false,"context_lines":[{"line_number":142,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":143,"context_line":"                       [events.PRECOMMIT_DELETE_ASSOCIATIONS])"},{"line_number":144,"context_line":"    @log_helpers.log_method_call"},{"line_number":145,"context_line":"    def _router_del_association(self, resource, event, trigger, **kwargs):"},{"line_number":146,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":147,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":148,"context_line":"        if old_drv !\u003d self:"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_6c79c82d","line":145,"range":{"start_line":145,"start_character":20,"end_line":145,"end_character":31},"in_reply_to":"5f7c97a3_6c6548e1","updated":"2018-05-17 17:12:55.000000000","message":"Done","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"c50f3eef6257b593c3ae601268211bd846ddfff7","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        if old_drv !\u003d self:"},{"line_number":149,"context_line":"            if new_drv is not None and new_drv !\u003d self:"},{"line_number":150,"context_line":"                return"},{"line_number":151,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":152,"context_line":"        self._router_delete_precommit(resource, event, trigger, **kwargs)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_DELETE],"},{"line_number":155,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_ac7360b1","line":152,"range":{"start_line":151,"start_character":0,"end_line":152,"end_character":73},"updated":"2018-05-17 16:58:44.000000000","message":"Again, this needs to be fixed.","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"4e4ac2c6a96a8ea6ad81d960f4276580f1956d5b","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        if old_drv !\u003d self:"},{"line_number":149,"context_line":"            if new_drv is not None and new_drv !\u003d self:"},{"line_number":150,"context_line":"                return"},{"line_number":151,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":152,"context_line":"        self._router_delete_precommit(resource, event, trigger, **kwargs)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_DELETE],"},{"line_number":155,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_6c230807","line":152,"range":{"start_line":151,"start_character":0,"end_line":152,"end_character":73},"in_reply_to":"5f7c97a3_ac7360b1","updated":"2018-05-17 17:12:55.000000000","message":"onto it, will be addressed in 2nd revision after PS 27","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"c50f3eef6257b593c3ae601268211bd846ddfff7","unresolved":false,"context_lines":[{"line_number":162,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_id,"},{"line_number":163,"context_line":"                           odl_const.ODL_DELETE, dependency_list)"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_DELETE],"},{"line_number":166,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":167,"context_line":"    @log_helpers.log_method_call"},{"line_number":168,"context_line":"    def _router_delete_postcommit(self, resource, event, trigger, **kwargs):"},{"line_number":169,"context_line":"        self.journal.set_sync_event()"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":172,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_2c8d107b","line":169,"range":{"start_line":165,"start_character":0,"end_line":169,"end_character":37},"updated":"2018-05-17 16:58:44.000000000","message":"ditto.","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"4e4ac2c6a96a8ea6ad81d960f4276580f1956d5b","unresolved":false,"context_lines":[{"line_number":162,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_id,"},{"line_number":163,"context_line":"                           odl_const.ODL_DELETE, dependency_list)"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_DELETE],"},{"line_number":166,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":167,"context_line":"    @log_helpers.log_method_call"},{"line_number":168,"context_line":"    def _router_delete_postcommit(self, resource, event, trigger, **kwargs):"},{"line_number":169,"context_line":"        self.journal.set_sync_event()"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":172,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_8c822400","line":169,"range":{"start_line":165,"start_character":0,"end_line":169,"end_character":37},"in_reply_to":"5f7c97a3_2c8d107b","updated":"2018-05-17 17:12:55.000000000","message":"Done","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"c50f3eef6257b593c3ae601268211bd846ddfff7","unresolved":false,"context_lines":[{"line_number":224,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":225,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.AFTER_CREATE])"},{"line_number":228,"context_line":"    @log_helpers.log_method_call"},{"line_number":229,"context_line":"    def _floatingip_create_postcommit(self, resource, event,"},{"line_number":230,"context_line":"                                      trigger, **kwargs):"},{"line_number":231,"context_line":"        self.journal.set_sync_event()"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.AFTER_UPDATE])"},{"line_number":234,"context_line":"    @log_helpers.log_method_call"},{"line_number":235,"context_line":"    def _floatingip_update_postcommit(self, resource, event,"},{"line_number":236,"context_line":"                                      trigger, **kwargs):"},{"line_number":237,"context_line":"        self.journal.set_sync_event()"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.AFTER_DELETE])"},{"line_number":240,"context_line":"    @log_helpers.log_method_call"},{"line_number":241,"context_line":"    def _floatingip_delete_postcommit(self, resource, event,"},{"line_number":242,"context_line":"                                      trigger, **kwargs):"},{"line_number":243,"context_line":"        self.journal.set_sync_event()"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_6cd8e87e","line":243,"range":{"start_line":227,"start_character":0,"end_line":243,"end_character":37},"updated":"2018-05-17 16:58:44.000000000","message":"consolidate those methods into single callback.","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"4e4ac2c6a96a8ea6ad81d960f4276580f1956d5b","unresolved":false,"context_lines":[{"line_number":224,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":225,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.AFTER_CREATE])"},{"line_number":228,"context_line":"    @log_helpers.log_method_call"},{"line_number":229,"context_line":"    def _floatingip_create_postcommit(self, resource, event,"},{"line_number":230,"context_line":"                                      trigger, **kwargs):"},{"line_number":231,"context_line":"        self.journal.set_sync_event()"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.AFTER_UPDATE])"},{"line_number":234,"context_line":"    @log_helpers.log_method_call"},{"line_number":235,"context_line":"    def _floatingip_update_postcommit(self, resource, event,"},{"line_number":236,"context_line":"                                      trigger, **kwargs):"},{"line_number":237,"context_line":"        self.journal.set_sync_event()"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.AFTER_DELETE])"},{"line_number":240,"context_line":"    @log_helpers.log_method_call"},{"line_number":241,"context_line":"    def _floatingip_delete_postcommit(self, resource, event,"},{"line_number":242,"context_line":"                                      trigger, **kwargs):"},{"line_number":243,"context_line":"        self.journal.set_sync_event()"}],"source_content_type":"text/x-python","patch_set":26,"id":"5f7c97a3_ecbb98c1","line":243,"range":{"start_line":227,"start_character":0,"end_line":243,"end_character":37},"in_reply_to":"5f7c97a3_6cd8e87e","updated":"2018-05-17 17:12:55.000000000","message":"Done","commit_id":"cb2b7ed4187107023e9ffe0e6076f2f5e8c631dc"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from oslo_log import helpers as log_helpers"},{"line_number":28,"context_line":"from oslo_log import log as logging"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from neutron.objects import router as l3_obj"},{"line_number":31,"context_line":"from neutron.services.l3_router.service_providers import base"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"from networking_odl.common import constants as odl_const"},{"line_number":34,"context_line":"from networking_odl.journal import full_sync"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_907ff213","line":31,"range":{"start_line":30,"start_character":0,"end_line":31,"end_character":61},"updated":"2018-07-12 10:58:08.000000000","message":"this belongs to the import block above","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        l3_obj.FloatingIP.update_object(context, {\u0027status\u0027: status},"},{"line_number":74,"context_line":"                                        id\u003dfip_id)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_CREATE],"},{"line_number":77,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":78,"context_line":"    @log_helpers.log_method_call"},{"line_number":79,"context_line":"    def _router_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":80,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":81,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":82,"context_line":"        if self._validate_l3_flavor(context, router_dict[\u0027id\u0027]):"},{"line_number":83,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"},{"line_number":84,"context_line":"                           odl_const.ODL_CREATE, router_dict)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":87,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_146d1b31","line":84,"range":{"start_line":76,"start_character":4,"end_line":84,"end_character":61},"updated":"2018-05-30 12:30:57.000000000","message":"Is this even necessary? Don\u0027t you intend in [1] to intercept this and send a PRECOMMIT_ADD_ASSOCIATION notification, which would also register this in the journal?\n\n[1] https://review.openstack.org/#/c/523257/56/neutron/services/l3_router/service_providers/driver_controller.py","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        l3_obj.FloatingIP.update_object(context, {\u0027status\u0027: status},"},{"line_number":74,"context_line":"                                        id\u003dfip_id)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_CREATE],"},{"line_number":77,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":78,"context_line":"    @log_helpers.log_method_call"},{"line_number":79,"context_line":"    def _router_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":80,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":81,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":82,"context_line":"        if self._validate_l3_flavor(context, router_dict[\u0027id\u0027]):"},{"line_number":83,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"},{"line_number":84,"context_line":"                           odl_const.ODL_CREATE, router_dict)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":87,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_aee1399d","line":84,"range":{"start_line":76,"start_character":4,"end_line":84,"end_character":61},"in_reply_to":"5f7c97a3_146d1b31","updated":"2018-06-01 21:10:58.000000000","message":"I think its not !","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @log_helpers.log_method_call"},{"line_number":89,"context_line":"    @journal.call_thread_on_end"},{"line_number":90,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":91,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":92,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":93,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":94,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_54fcf370","line":91,"range":{"start_line":91,"start_character":8,"end_line":91,"end_character":38},"updated":"2018-05-30 12:30:57.000000000","message":"Add !\u003d Update?\n\nWhy would there be an \"old driver\"?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"c04ef7f108e07dd43e6e3f7c3ba87a364b8a85aa","unresolved":false,"context_lines":[{"line_number":88,"context_line":"    @log_helpers.log_method_call"},{"line_number":89,"context_line":"    @journal.call_thread_on_end"},{"line_number":90,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":91,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":92,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":93,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":94,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_61227854","line":91,"range":{"start_line":91,"start_character":8,"end_line":91,"end_character":38},"in_reply_to":"5f7c97a3_54fcf370","updated":"2018-06-13 01:49:31.000000000","message":"make sense we should just use validate operation !","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":95,"context_line":"        if old_drv \u003d\u003d new_drv:"},{"line_number":96,"context_line":"            router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":97,"context_line":"            journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":98,"context_line":"                           router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":99,"context_line":"        else:"},{"line_number":100,"context_line":"            # TODO(yamahata): revise this."},{"line_number":101,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_4f29d534","line":98,"range":{"start_line":97,"start_character":12,"end_line":98,"end_character":72},"updated":"2018-05-30 12:30:57.000000000","message":"Why would you want to update the router if the flavor didn\u0027t change?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"c04ef7f108e07dd43e6e3f7c3ba87a364b8a85aa","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":95,"context_line":"        if old_drv \u003d\u003d new_drv:"},{"line_number":96,"context_line":"            router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":97,"context_line":"            journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":98,"context_line":"                           router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":99,"context_line":"        else:"},{"line_number":100,"context_line":"            # TODO(yamahata): revise this."},{"line_number":101,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_21d7a0f0","line":98,"range":{"start_line":97,"start_character":12,"end_line":98,"end_character":72},"in_reply_to":"5f7c97a3_4f29d534","updated":"2018-06-13 01:49:31.000000000","message":"actually update is not needed here, as it will always handled by PRECOMMIT_UPDATE event, I tested it in devstack environment it works","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":95,"context_line":"        if old_drv \u003d\u003d new_drv:"},{"line_number":96,"context_line":"            router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":97,"context_line":"            journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":98,"context_line":"                           router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":99,"context_line":"        else:"},{"line_number":100,"context_line":"            # TODO(yamahata): revise this."},{"line_number":101,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_0e85cdac","line":98,"range":{"start_line":97,"start_character":12,"end_line":98,"end_character":72},"in_reply_to":"5f7c97a3_4f29d534","updated":"2018-06-01 21:10:58.000000000","message":"there\u0027s some weird logic in neutron, if old and new_drv are equal that means router already exists, afaik, if old is none and only new_drv exists then its not created yet.","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":98,"context_line":"                           router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":99,"context_line":"        else:"},{"line_number":100,"context_line":"            # TODO(yamahata): revise this."},{"line_number":101,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"},{"line_number":102,"context_line":"                           odl_const.ODL_CREATE, router_dict)"},{"line_number":103,"context_line":"            # TODO(yamahata): process floating ip etc. or just raise error?"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_0f1f5d08","line":100,"range":{"start_line":100,"start_character":0,"end_line":100,"end_character":42},"updated":"2018-05-30 12:30:57.000000000","message":"Huh?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":97,"context_line":"            journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":98,"context_line":"                           router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":99,"context_line":"        else:"},{"line_number":100,"context_line":"            # TODO(yamahata): revise this."},{"line_number":101,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"},{"line_number":102,"context_line":"                           odl_const.ODL_CREATE, router_dict)"},{"line_number":103,"context_line":"            # TODO(yamahata): process floating ip etc. or just raise error?"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_8ec23de8","line":100,"range":{"start_line":100,"start_character":0,"end_line":100,"end_character":42},"in_reply_to":"5f7c97a3_0f1f5d08","updated":"2018-06-01 21:10:58.000000000","message":"will be removed, i don\u0027t think fip processing here is needed.","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":98,"context_line":"                           router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":99,"context_line":"        else:"},{"line_number":100,"context_line":"            # TODO(yamahata): revise this."},{"line_number":101,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_dict[\u0027id\u0027],"},{"line_number":102,"context_line":"                           odl_const.ODL_CREATE, router_dict)"},{"line_number":103,"context_line":"            # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_UPDATE],"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_af1749ee","line":102,"range":{"start_line":101,"start_character":12,"end_line":102,"end_character":61},"updated":"2018-05-30 12:30:57.000000000","message":"Don\u0027t you check if the router is associated with our flavor in this case?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":123,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":124,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":125,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":126,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":127,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":128,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_CREATE,"},{"line_number":131,"context_line":"                                          events.AFTER_UPDATE,"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_cffba5bb","line":128,"range":{"start_line":126,"start_character":7,"end_line":128,"end_character":76},"updated":"2018-05-30 12:30:57.000000000","message":"This seems to repeat itself with router operations, care to extract this to a method record_router or something like that?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"77d5c09f90602796308cfb60b9082a7b880e10c6","unresolved":false,"context_lines":[{"line_number":123,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":124,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":125,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":126,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":127,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":128,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_CREATE,"},{"line_number":131,"context_line":"                                          events.AFTER_UPDATE,"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_0e9a28c3","line":128,"range":{"start_line":126,"start_character":7,"end_line":128,"end_character":76},"in_reply_to":"5f7c97a3_9ec4aa61","updated":"2018-07-16 18:00:03.000000000","message":"actually dropped the idea, forgot to update it, since it it eah operation has different arguments, having 2 lines won\u0027t be bad, I thought it doesn\u0027t sound very pressing to have a helper for 2 lines, we can refactor it later if it grows.","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":123,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":124,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":125,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":126,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":127,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":128,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_CREATE,"},{"line_number":131,"context_line":"                                          events.AFTER_UPDATE,"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_eeb2d193","line":128,"range":{"start_line":126,"start_character":7,"end_line":128,"end_character":76},"in_reply_to":"5f7c97a3_cffba5bb","updated":"2018-06-01 21:10:58.000000000","message":"done !","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"45059b27f0bb7f9dfe762e8bdde051e629555805","unresolved":false,"context_lines":[{"line_number":123,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":124,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":125,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":126,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":127,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":128,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    @registry.receives(resources.ROUTER, [events.AFTER_CREATE,"},{"line_number":131,"context_line":"                                          events.AFTER_UPDATE,"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_9ec4aa61","line":128,"range":{"start_line":126,"start_character":7,"end_line":128,"end_character":76},"in_reply_to":"5f7c97a3_eeb2d193","updated":"2018-07-09 10:49:13.000000000","message":"I don\u0027t see it in PS#35, did you miss to submit it maybe?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":143,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":144,"context_line":"        if old_drv !\u003d self:"},{"line_number":145,"context_line":"            if new_drv is not None and new_drv !\u003d self:"},{"line_number":146,"context_line":"                return"},{"line_number":147,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":148,"context_line":"        context \u003d kwargs[\u0027context\u0027]"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_34ce175a","line":145,"range":{"start_line":145,"start_character":12,"end_line":145,"end_character":55},"updated":"2018-05-30 12:30:57.000000000","message":"Why would there be new driver on a delete notification?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"c04ef7f108e07dd43e6e3f7c3ba87a364b8a85aa","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        old_drv \u003d kwargs[\u0027old_driver\u0027]"},{"line_number":143,"context_line":"        new_drv \u003d kwargs[\u0027new_driver\u0027]"},{"line_number":144,"context_line":"        if old_drv !\u003d self:"},{"line_number":145,"context_line":"            if new_drv is not None and new_drv !\u003d self:"},{"line_number":146,"context_line":"                return"},{"line_number":147,"context_line":"        # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":148,"context_line":"        context \u003d kwargs[\u0027context\u0027]"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_a131705b","line":145,"range":{"start_line":145,"start_character":12,"end_line":145,"end_character":55},"in_reply_to":"5f7c97a3_34ce175a","updated":"2018-06-13 01:49:31.000000000","message":"can be made simple, as _validate_l3_flavor queries neutron db, which is updated if that returns true it means router belongs to this driver should be handled otherwise ignored.","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":152,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_id,"},{"line_number":153,"context_line":"                           odl_const.ODL_DELETE, dependency_list)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    @registry.receives(resources.ROUTER, [events.PRECOMMIT_DELETE],"},{"line_number":156,"context_line":"                       priority_group.PRIORITY_ROUTER_DRIVER)"},{"line_number":157,"context_line":"    @log_helpers.log_method_call"},{"line_number":158,"context_line":"    def _router_delete_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":159,"context_line":"        # NOTE(manjeets) This callback may not be needed until flavor"},{"line_number":160,"context_line":"        # dissociation is implemented completely in neutron when router"},{"line_number":161,"context_line":"        # flavors will be allowed to fallback to dvr, ha. Deletion"},{"line_number":162,"context_line":"        # router is taken care of by router_del_association for now."},{"line_number":163,"context_line":"        pass"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":166,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_f4ec1fbc","line":163,"range":{"start_line":155,"start_character":4,"end_line":163,"end_character":12},"updated":"2018-05-30 12:30:57.000000000","message":"If this method isn\u0027t needed, why implement it at all?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        # floating ip dict doesn\u0027t have floating ip so"},{"line_number":181,"context_line":"        # fetching it from floatingip_db object."},{"line_number":182,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":183,"context_line":"            fip_dict[\u0027floating_ip_addqress\u0027] \u003d \\"},{"line_number":184,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"},{"line_number":185,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"},{"line_number":186,"context_line":"                       odl_const.ODL_CREATE, fip_dict)"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_74d24fd3","line":183,"range":{"start_line":183,"start_character":37,"end_line":183,"end_character":38},"updated":"2018-05-30 12:30:57.000000000","message":"Typo here","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        # floating ip dict doesn\u0027t have floating ip so"},{"line_number":181,"context_line":"        # fetching it from floatingip_db object."},{"line_number":182,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":183,"context_line":"            fip_dict[\u0027floating_ip_addqress\u0027] \u003d \\"},{"line_number":184,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"},{"line_number":185,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"},{"line_number":186,"context_line":"                       odl_const.ODL_CREATE, fip_dict)"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_aea8591f","line":183,"range":{"start_line":183,"start_character":37,"end_line":183,"end_character":38},"in_reply_to":"5f7c97a3_74d24fd3","updated":"2018-06-01 21:10:58.000000000","message":"Done","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":198,"context_line":"            return"},{"line_number":199,"context_line":"        port_id \u003d fip_dict.get(\u0027port_id\u0027, None)"},{"line_number":200,"context_line":"        fip_dict[\u0027port_id\u0027] \u003d port_id"},{"line_number":201,"context_line":"        fip_dict[\u0027status\u0027] \u003d q_const.ACTIVE if port_id else q_const.DOWN"},{"line_number":202,"context_line":"        self._update_floatingip_status(context, fip_id, fip_dict[\u0027status\u0027])"},{"line_number":203,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_id,"},{"line_number":204,"context_line":"                       odl_const.ODL_UPDATE, fip_dict)"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_65d297d3","line":201,"range":{"start_line":201,"start_character":8,"end_line":201,"end_character":72},"updated":"2018-05-30 12:30:57.000000000","message":"Same as in create, can this be moved to the _update_floatingip_status shared function?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":198,"context_line":"            return"},{"line_number":199,"context_line":"        port_id \u003d fip_dict.get(\u0027port_id\u0027, None)"},{"line_number":200,"context_line":"        fip_dict[\u0027port_id\u0027] \u003d port_id"},{"line_number":201,"context_line":"        fip_dict[\u0027status\u0027] \u003d q_const.ACTIVE if port_id else q_const.DOWN"},{"line_number":202,"context_line":"        self._update_floatingip_status(context, fip_id, fip_dict[\u0027status\u0027])"},{"line_number":203,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_id,"},{"line_number":204,"context_line":"                       odl_const.ODL_UPDATE, fip_dict)"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_6e648122","line":201,"range":{"start_line":201,"start_character":8,"end_line":201,"end_character":72},"in_reply_to":"5f7c97a3_65d297d3","updated":"2018-06-01 21:10:58.000000000","message":"Done","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":213,"context_line":"        router_id \u003d fip_data.router_id"},{"line_number":214,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":215,"context_line":"            return"},{"line_number":216,"context_line":"        dependency_list \u003d [fip_data.router_id]"},{"line_number":217,"context_line":"        dependency_list.append(fip_data.floating_network_id)"},{"line_number":218,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":219,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_a568aff4","line":217,"range":{"start_line":216,"start_character":8,"end_line":217,"end_character":60},"updated":"2018-05-30 12:30:57.000000000","message":"Why not?\n\ndependency_list \u003d [fip_data.router_id, fip_data.floating_network_id]","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":213,"context_line":"        router_id \u003d fip_data.router_id"},{"line_number":214,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":215,"context_line":"            return"},{"line_number":216,"context_line":"        dependency_list \u003d [fip_data.router_id]"},{"line_number":217,"context_line":"        dependency_list.append(fip_data.floating_network_id)"},{"line_number":218,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":219,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_ae7db9b2","line":217,"range":{"start_line":216,"start_character":8,"end_line":217,"end_character":60},"in_reply_to":"5f7c97a3_a568aff4","updated":"2018-06-01 21:10:58.000000000","message":"Done","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"45059b27f0bb7f9dfe762e8bdde051e629555805","unresolved":false,"context_lines":[{"line_number":213,"context_line":"        router_id \u003d fip_data.router_id"},{"line_number":214,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":215,"context_line":"            return"},{"line_number":216,"context_line":"        dependency_list \u003d [fip_data.router_id]"},{"line_number":217,"context_line":"        dependency_list.append(fip_data.floating_network_id)"},{"line_number":218,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":219,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_be6de667","line":217,"range":{"start_line":216,"start_character":8,"end_line":217,"end_character":60},"in_reply_to":"5f7c97a3_ae7db9b2","updated":"2018-07-09 10:49:13.000000000","message":"I don\u0027t see it in PS#35, did you miss to submit it maybe?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"77d5c09f90602796308cfb60b9082a7b880e10c6","unresolved":false,"context_lines":[{"line_number":213,"context_line":"        router_id \u003d fip_data.router_id"},{"line_number":214,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":215,"context_line":"            return"},{"line_number":216,"context_line":"        dependency_list \u003d [fip_data.router_id]"},{"line_number":217,"context_line":"        dependency_list.append(fip_data.floating_network_id)"},{"line_number":218,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":219,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_ce7c3073","line":217,"range":{"start_line":216,"start_character":8,"end_line":217,"end_character":60},"in_reply_to":"5f7c97a3_be6de667","updated":"2018-07-16 18:00:03.000000000","message":"done in latest","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":218,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":219,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.AFTER_CREATE,"},{"line_number":222,"context_line":"                                               events.AFTER_UPDATE,"},{"line_number":223,"context_line":"                                               events.AFTER_DELETE])"},{"line_number":224,"context_line":"    @log_helpers.log_method_call"},{"line_number":225,"context_line":"    def _floatingip_postcommit(self, resource, event, trigger, **kwargs):"},{"line_number":226,"context_line":"        self.journal.set_sync_event()"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_8d6b59b5","line":226,"range":{"start_line":221,"start_character":4,"end_line":226,"end_character":37},"updated":"2018-05-30 12:30:57.000000000","message":"Could this be consolidated with the _router_postcommit method, by using two decorators?\nIf not, that\u0027s OK too..","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":218,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":219,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.AFTER_CREATE,"},{"line_number":222,"context_line":"                                               events.AFTER_UPDATE,"},{"line_number":223,"context_line":"                                               events.AFTER_DELETE])"},{"line_number":224,"context_line":"    @log_helpers.log_method_call"},{"line_number":225,"context_line":"    def _floatingip_postcommit(self, resource, event, trigger, **kwargs):"},{"line_number":226,"context_line":"        self.journal.set_sync_event()"}],"source_content_type":"text/x-python","patch_set":29,"id":"5f7c97a3_2e6a09ec","line":226,"range":{"start_line":221,"start_character":4,"end_line":226,"end_character":37},"in_reply_to":"5f7c97a3_8d6b59b5","updated":"2018-06-01 21:10:58.000000000","message":"Done","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"45059b27f0bb7f9dfe762e8bdde051e629555805","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":70,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d L3_PROVIDER"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def _update_floatingip_status(self, context, fip_id, fip_dict):"},{"line_number":73,"context_line":"        port_id \u003d fip_dict.get(\u0027port_id\u0027)"},{"line_number":74,"context_line":"        status \u003d q_const.ACTIVE if port_id else q_const.DOWN"},{"line_number":75,"context_line":"        l3_obj.FloatingIP.update_object(context, {\u0027status\u0027: status},"}],"source_content_type":"text/x-python","patch_set":35,"id":"5f7c97a3_3eb0f6db","line":72,"range":{"start_line":72,"start_character":49,"end_line":72,"end_character":55},"updated":"2018-07-09 10:49:13.000000000","message":"Can\u0027t you just use fip_dict[\u0027id\u0027] and remove this parameter?","commit_id":"fe418a0a122dbdf55c35bedd1df82ed9baefd865"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"45059b27f0bb7f9dfe762e8bdde051e629555805","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":79,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"},{"line_number":80,"context_line":"    @log_helpers.log_method_call"},{"line_number":81,"context_line":"    @journal.call_thread_on_end"},{"line_number":82,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":83,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":84,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"}],"source_content_type":"text/x-python","patch_set":35,"id":"5f7c97a3_3e0d56e6","line":81,"range":{"start_line":81,"start_character":0,"end_line":81,"end_character":31},"updated":"2018-07-09 10:49:13.000000000","message":"This is raceful since the journal entry might not be committed yet when the thread is called (or might not even exist if commit failed, which is not awful but FYI).\nThat\u0027s why we call the thread in postcommit once we know the journal entry is definitely there.","commit_id":"fe418a0a122dbdf55c35bedd1df82ed9baefd865"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"2d199de1ea83879521387649e8596589ef7c751c","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":79,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"},{"line_number":80,"context_line":"    @log_helpers.log_method_call"},{"line_number":81,"context_line":"    @journal.call_thread_on_end"},{"line_number":82,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":83,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":84,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"}],"source_content_type":"text/x-python","patch_set":35,"id":"5f7c97a3_2ed540e6","line":81,"range":{"start_line":81,"start_character":0,"end_line":81,"end_character":31},"in_reply_to":"5f7c97a3_3e0d56e6","updated":"2018-07-09 17:44:16.000000000","message":"good catch ! this is not needed, as post_commit is there. I think I had it when there was no poscommit but didn\u0027t remove after adding it.","commit_id":"fe418a0a122dbdf55c35bedd1df82ed9baefd865"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"45059b27f0bb7f9dfe762e8bdde051e629555805","unresolved":false,"context_lines":[{"line_number":123,"context_line":"            dependency_list \u003d [kwargs[\u0027router_db\u0027].gw_port_id]"},{"line_number":124,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_id,"},{"line_number":125,"context_line":"                           odl_const.ODL_DELETE, dependency_list)"},{"line_number":126,"context_line":"        else:"},{"line_number":127,"context_line":"            # Router doesn\u0027t belong to this backend"},{"line_number":128,"context_line":"            return"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":131,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":35,"id":"5f7c97a3_9e434ab0","line":128,"range":{"start_line":126,"start_character":8,"end_line":128,"end_character":18},"updated":"2018-07-09 10:49:13.000000000","message":"This seems redundant","commit_id":"fe418a0a122dbdf55c35bedd1df82ed9baefd865"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"2d199de1ea83879521387649e8596589ef7c751c","unresolved":false,"context_lines":[{"line_number":123,"context_line":"            dependency_list \u003d [kwargs[\u0027router_db\u0027].gw_port_id]"},{"line_number":124,"context_line":"            journal.record(context, odl_const.ODL_ROUTER, router_id,"},{"line_number":125,"context_line":"                           odl_const.ODL_DELETE, dependency_list)"},{"line_number":126,"context_line":"        else:"},{"line_number":127,"context_line":"            # Router doesn\u0027t belong to this backend"},{"line_number":128,"context_line":"            return"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    @registry.receives(resources.FLOATING_IP, [events.PRECOMMIT_CREATE])"},{"line_number":131,"context_line":"    @log_helpers.log_method_call"}],"source_content_type":"text/x-python","patch_set":35,"id":"5f7c97a3_6ef8187b","line":128,"range":{"start_line":126,"start_character":8,"end_line":128,"end_character":18},"in_reply_to":"5f7c97a3_9e434ab0","updated":"2018-07-09 17:44:16.000000000","message":"Done","commit_id":"fe418a0a122dbdf55c35bedd1df82ed9baefd865"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"45059b27f0bb7f9dfe762e8bdde051e629555805","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        fip_dict \u003d copy.deepcopy(kwargs[\u0027floatingip\u0027])"},{"line_number":138,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":139,"context_line":"        self._update_floatingip_status(context, fip_dict[\u0027id\u0027], fip_dict)"},{"line_number":140,"context_line":"        # floating ip dict doesn\u0027t have floating ip so"},{"line_number":141,"context_line":"        # fetching it from floatingip_db object."},{"line_number":142,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":143,"context_line":"            fip_dict[\u0027floating_ip_address\u0027] \u003d \\"},{"line_number":144,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"}],"source_content_type":"text/x-python","patch_set":35,"id":"5f7c97a3_5e05b278","line":141,"range":{"start_line":140,"start_character":10,"end_line":141,"end_character":48},"updated":"2018-07-09 10:49:13.000000000","message":"This comment just expains the code so is redundant, either explain why this could happen or remove this comment.","commit_id":"fe418a0a122dbdf55c35bedd1df82ed9baefd865"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"2d199de1ea83879521387649e8596589ef7c751c","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        fip_dict \u003d copy.deepcopy(kwargs[\u0027floatingip\u0027])"},{"line_number":138,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":139,"context_line":"        self._update_floatingip_status(context, fip_dict[\u0027id\u0027], fip_dict)"},{"line_number":140,"context_line":"        # floating ip dict doesn\u0027t have floating ip so"},{"line_number":141,"context_line":"        # fetching it from floatingip_db object."},{"line_number":142,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":143,"context_line":"            fip_dict[\u0027floating_ip_address\u0027] \u003d \\"},{"line_number":144,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"}],"source_content_type":"text/x-python","patch_set":35,"id":"5f7c97a3_8ef3349f","line":141,"range":{"start_line":140,"start_character":10,"end_line":141,"end_character":48},"in_reply_to":"5f7c97a3_5e05b278","updated":"2018-07-09 17:44:16.000000000","message":"done","commit_id":"fe418a0a122dbdf55c35bedd1df82ed9baefd865"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":39,"context_line":"L3_PROVIDER \u003d \u0027networking_odl.l3.l3_flavor.ODLL3ServiceProvider\u0027"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"L3_RESOURCES \u003d {"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_1fe5020a","line":39,"updated":"2018-07-12 10:58:08.000000000","message":"perhaps add an extra blankline between LOG and L3_PROVIDER","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":39,"context_line":"L3_PROVIDER \u003d \u0027networking_odl.l3.l3_flavor.ODLL3ServiceProvider\u0027"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"L3_RESOURCES \u003d {"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_f9713d78","line":39,"range":{"start_line":39,"start_character":14,"end_line":39,"end_character":64},"updated":"2018-07-12 10:58:08.000000000","message":"this, inside the class where you use it, is equal to: __name__ + self.__class__.__name__ \n\nI think that perhaps you can make that a property or something, and not having to update this manually if you change the module location and/or class name","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":39,"context_line":"L3_PROVIDER \u003d \u0027networking_odl.l3.l3_flavor.ODLL3ServiceProvider\u0027"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"L3_RESOURCES \u003d {"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_29471e7d","line":39,"range":{"start_line":39,"start_character":14,"end_line":39,"end_character":64},"in_reply_to":"5f7c97a3_f9713d78","updated":"2018-07-12 22:07:19.000000000","message":"Done","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":38,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":39,"context_line":"L3_PROVIDER \u003d \u0027networking_odl.l3.l3_flavor.ODLL3ServiceProvider\u0027"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"L3_RESOURCES \u003d {"},{"line_number":43,"context_line":"    odl_const.ODL_ROUTER: odl_const.ODL_ROUTERS,"},{"line_number":44,"context_line":"    odl_const.ODL_FLOATINGIP: odl_const.ODL_FLOATINGIPS"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_7fdaf649","line":41,"updated":"2018-07-12 10:58:08.000000000","message":"extra blank line not needed","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":38,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":39,"context_line":"L3_PROVIDER \u003d \u0027networking_odl.l3.l3_flavor.ODLL3ServiceProvider\u0027"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"L3_RESOURCES \u003d {"},{"line_number":43,"context_line":"    odl_const.ODL_ROUTER: odl_const.ODL_ROUTERS,"},{"line_number":44,"context_line":"    odl_const.ODL_FLOATINGIP: odl_const.ODL_FLOATINGIPS"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_494cda9c","line":41,"in_reply_to":"5f7c97a3_7fdaf649","updated":"2018-07-12 22:07:19.000000000","message":"Done","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"@registry.has_registry_receivers"},{"line_number":49,"context_line":"class ODLL3ServiceProvider(base.L3ServiceProvider):"},{"line_number":50,"context_line":"    @log_helpers.log_method_call"},{"line_number":51,"context_line":"    def __init__(self, l3_plugin):"},{"line_number":52,"context_line":"        super(ODLL3ServiceProvider, self).__init__(l3_plugin)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_343b3c9b","line":49,"updated":"2018-07-12 10:58:08.000000000","message":"in general, if you are going to be registering something for a call back I wouldn\u0027t put it as a \"private\" method. You are using private notation too amply.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"85ea42887b6eb526a1d6796f80b0bf33ff959027","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"@registry.has_registry_receivers"},{"line_number":49,"context_line":"class ODLL3ServiceProvider(base.L3ServiceProvider):"},{"line_number":50,"context_line":"    @log_helpers.log_method_call"},{"line_number":51,"context_line":"    def __init__(self, l3_plugin):"},{"line_number":52,"context_line":"        super(ODLL3ServiceProvider, self).__init__(l3_plugin)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_ae2d26fd","line":49,"in_reply_to":"5f7c97a3_343b3c9b","updated":"2018-07-17 07:07:41.000000000","message":"No comments on this? :(","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"253717196d54aa393fb9b1cc6a206be5fcbf3ce0","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"@registry.has_registry_receivers"},{"line_number":49,"context_line":"class ODLL3ServiceProvider(base.L3ServiceProvider):"},{"line_number":50,"context_line":"    @log_helpers.log_method_call"},{"line_number":51,"context_line":"    def __init__(self, l3_plugin):"},{"line_number":52,"context_line":"        super(ODLL3ServiceProvider, self).__init__(l3_plugin)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_ff52dcd9","line":49,"in_reply_to":"5f7c97a3_ae2d26fd","updated":"2018-07-17 17:28:11.000000000","message":"I think its fine, we can change it later, It came from previous reviews.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        # other router with other service provider should be filtered."},{"line_number":57,"context_line":"        full_sync.register(plugin_constants.L3, L3_RESOURCES)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":60,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _validate_l3_flavor(self, context, router_id):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_9f935200","line":59,"range":{"start_line":59,"start_character":4,"end_line":59,"end_character":34},"updated":"2018-07-12 10:58:08.000000000","message":"if there will be only one use I think it makes more sense to just do the expansion there...","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        # other router with other service provider should be filtered."},{"line_number":57,"context_line":"        full_sync.register(plugin_constants.L3, L3_RESOURCES)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":60,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _validate_l3_flavor(self, context, router_id):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_c9578a27","line":59,"range":{"start_line":59,"start_character":4,"end_line":59,"end_character":34},"in_reply_to":"5f7c97a3_9f935200","updated":"2018-07-12 22:07:19.000000000","message":"I took over this patch and never bothered to look at this. i\u0027ll remove this","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":60,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _validate_l3_flavor(self, context, router_id):"},{"line_number":63,"context_line":"        if router_id is None:"},{"line_number":64,"context_line":"            return False"},{"line_number":65,"context_line":"        router \u003d l3_obj.Router.get_object(context, id\u003drouter_id)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_452611ce","line":62,"range":{"start_line":62,"start_character":8,"end_line":62,"end_character":27},"updated":"2018-07-12 10:58:08.000000000","message":"couldn\u0027t this be a decorator that extracts the router_id from the context and does the validation before even giving control to the functions? I think it would be nicer","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":60,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _validate_l3_flavor(self, context, router_id):"},{"line_number":63,"context_line":"        if router_id is None:"},{"line_number":64,"context_line":"            return False"},{"line_number":65,"context_line":"        router \u003d l3_obj.Router.get_object(context, id\u003drouter_id)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_e4b2ad96","line":62,"range":{"start_line":62,"start_character":8,"end_line":62,"end_character":27},"in_reply_to":"5f7c97a3_452611ce","updated":"2018-07-12 22:07:19.000000000","message":"this could be, but that\u0027s design decision, having a helper won\u0027t hurt either.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"e59f3a8695f7c15e740e5d58c1c7d917cbf84e95","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":60,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _validate_l3_flavor(self, context, router_id):"},{"line_number":63,"context_line":"        if router_id is None:"},{"line_number":64,"context_line":"            return False"},{"line_number":65,"context_line":"        router \u003d l3_obj.Router.get_object(context, id\u003drouter_id)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_3e864418","line":62,"range":{"start_line":62,"start_character":8,"end_line":62,"end_character":27},"in_reply_to":"5f7c97a3_c4cbcc70","updated":"2018-07-16 08:50:20.000000000","message":"Actually it used to be a decorator but for some reason it was even more cumbersome..\n\nLets stick with this for now and if in the future it can be improved let\u0027s do that then.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"42ac1d4aac33bb6834031c1be2ff2ce9f5c03ea1","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def _get_kwargs(self, kwargs):"},{"line_number":60,"context_line":"        return kwargs[\u0027context\u0027], kwargs[\u0027router\u0027]"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _validate_l3_flavor(self, context, router_id):"},{"line_number":63,"context_line":"        if router_id is None:"},{"line_number":64,"context_line":"            return False"},{"line_number":65,"context_line":"        router \u003d l3_obj.Router.get_object(context, id\u003drouter_id)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_c4cbcc70","line":62,"range":{"start_line":62,"start_character":8,"end_line":62,"end_character":27},"in_reply_to":"5f7c97a3_e4b2ad96","updated":"2018-07-15 10:34:44.000000000","message":"No it doesn\u0027t hurt, but the code is a bit more cumbersome IMHO","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        if router_id is None:"},{"line_number":64,"context_line":"            return False"},{"line_number":65,"context_line":"        router \u003d l3_obj.Router.get_object(context, id\u003drouter_id)"},{"line_number":66,"context_line":"        flavor_plugin \u003d directory.get_plugin(plugin_constants.FLAVORS)"},{"line_number":67,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":68,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":69,"context_line":"            context, flavor[\u0027id\u0027])[0]"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_d96c816c","line":66,"range":{"start_line":66,"start_character":8,"end_line":66,"end_character":70},"updated":"2018-07-12 10:58:08.000000000","message":"this can be cached, can\u0027t it?","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        if router_id is None:"},{"line_number":64,"context_line":"            return False"},{"line_number":65,"context_line":"        router \u003d l3_obj.Router.get_object(context, id\u003drouter_id)"},{"line_number":66,"context_line":"        flavor_plugin \u003d directory.get_plugin(plugin_constants.FLAVORS)"},{"line_number":67,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":68,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":69,"context_line":"            context, flavor[\u0027id\u0027])[0]"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_a9456e18","line":66,"range":{"start_line":66,"start_character":8,"end_line":66,"end_character":70},"in_reply_to":"5f7c97a3_d96c816c","updated":"2018-07-12 22:07:19.000000000","message":"I think i tried earlier having flavor_plugin in init, since its this driver only it ends up being None, it has to be initialized,\n\nother thing I can do is add flavor_plugin \u003d None,\nin __init__\ndo like flavor_plugin \u003d self.flavor_plugin or directory.get_plugin(plugin_constants.FLAVORS),\n\nI think whatever it is right now is simpler.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        flavor_plugin \u003d directory.get_plugin(plugin_constants.FLAVORS)"},{"line_number":67,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":68,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":69,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":70,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d L3_PROVIDER"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def _update_floatingip_status(self, context, fip_dict):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_5f06191d","line":69,"range":{"start_line":69,"start_character":21,"end_line":69,"end_character":33},"updated":"2018-07-12 10:58:08.000000000","message":"also for flavor[\u0027id\u0027]","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        flavor_plugin \u003d directory.get_plugin(plugin_constants.FLAVORS)"},{"line_number":67,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":68,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":69,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":70,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d L3_PROVIDER"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def _update_floatingip_status(self, context, fip_dict):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_df01ca08","line":69,"range":{"start_line":69,"start_character":34,"end_line":69,"end_character":37},"updated":"2018-07-12 10:58:08.000000000","message":"what if there is no next provider?  I\u0027m not keen of accessing a list index without knowing that there will be for sure something in it..","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        flavor_plugin \u003d directory.get_plugin(plugin_constants.FLAVORS)"},{"line_number":67,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":68,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":69,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":70,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d L3_PROVIDER"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def _update_floatingip_status(self, context, fip_dict):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_0499e96b","line":69,"range":{"start_line":69,"start_character":34,"end_line":69,"end_character":37},"in_reply_to":"5f7c97a3_df01ca08","updated":"2018-07-12 22:07:19.000000000","message":"https://github.com/openstack/neutron/blob/master/neutron/db/flavors_db.py#L219-L246 \n\nthe method raise exceptions at different level, I can tell from that method there will definitely be a result, and I have no idea why they chose to have list for returning a provider, so I had to use the index to fetch only provider.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":68,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":69,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":70,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d L3_PROVIDER"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def _update_floatingip_status(self, context, fip_dict):"},{"line_number":73,"context_line":"        port_id \u003d fip_dict.get(\u0027port_id\u0027)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_9932890e","line":70,"range":{"start_line":70,"start_character":19,"end_line":70,"end_character":37},"updated":"2018-07-12 10:58:08.000000000","message":"also it seems that this you can get it through https://github.com/openstack/neutron/blob/5db397958160ea3dc952794fb7f6ec68a2da2055/neutron/db/servicetype_db.py#L71","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        flavor \u003d flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":68,"context_line":"        provider \u003d flavor_plugin.get_flavor_next_provider("},{"line_number":69,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":70,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d L3_PROVIDER"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def _update_floatingip_status(self, context, fip_dict):"},{"line_number":73,"context_line":"        port_id \u003d fip_dict.get(\u0027port_id\u0027)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_df11c951","line":70,"range":{"start_line":70,"start_character":19,"end_line":70,"end_character":37},"updated":"2018-07-12 10:58:08.000000000","message":"same","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":79,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"},{"line_number":80,"context_line":"    @log_helpers.log_method_call"},{"line_number":81,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":82,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":83,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":84,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_986a50b3","line":81,"range":{"start_line":81,"start_character":32,"end_line":81,"end_character":33},"updated":"2018-07-12 10:58:08.000000000","message":"want to add precommit to the name to make it clearer?\nand perhaps make it association instead of associations?","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"fb0f52ed00c5b75494883a2dbb0e75d68f86b01a","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":79,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"},{"line_number":80,"context_line":"    @log_helpers.log_method_call"},{"line_number":81,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":82,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":83,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":84,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_43544e56","line":81,"range":{"start_line":81,"start_character":32,"end_line":81,"end_character":33},"in_reply_to":"5f7c97a3_7ffb2cbe","updated":"2018-07-18 06:36:12.000000000","message":"okey","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":79,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"},{"line_number":80,"context_line":"    @log_helpers.log_method_call"},{"line_number":81,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":82,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":83,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":84,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_c680d99f","line":81,"range":{"start_line":81,"start_character":32,"end_line":81,"end_character":33},"in_reply_to":"5f7c97a3_986a50b3","updated":"2018-07-12 22:07:19.000000000","message":"i\u0027ll make it singular","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"85ea42887b6eb526a1d6796f80b0bf33ff959027","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":79,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"},{"line_number":80,"context_line":"    @log_helpers.log_method_call"},{"line_number":81,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":82,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":83,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":84,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_ce8182fc","line":81,"range":{"start_line":81,"start_character":32,"end_line":81,"end_character":33},"in_reply_to":"5f7c97a3_c680d99f","updated":"2018-07-17 07:07:41.000000000","message":"why not adding the precommit too to make it clearer?","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"253717196d54aa393fb9b1cc6a206be5fcbf3ce0","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    @registry.receives(resources.ROUTER_CONTROLLER,"},{"line_number":79,"context_line":"                       [events.PRECOMMIT_ADD_ASSOCIATION])"},{"line_number":80,"context_line":"    @log_helpers.log_method_call"},{"line_number":81,"context_line":"    def _router_add_associations(self, resource, event, trigger, **kwargs):"},{"line_number":82,"context_line":"        context, router_dict \u003d self._get_kwargs(kwargs)"},{"line_number":83,"context_line":"        router_dict[\u0027gw_port_id\u0027] \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":84,"context_line":"        router_id \u003d kwargs[\u0027router_id\u0027]"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_7ffb2cbe","line":81,"range":{"start_line":81,"start_character":32,"end_line":81,"end_character":33},"in_reply_to":"5f7c97a3_ce8182fc","updated":"2018-07-17 17:28:11.000000000","message":"the thing is, its following method naming according to neutron, so I\u0027d like to keep it as events are bit different from normal precommit  and reason is precommit events were being used in neutron itself, we decided to add new events, I guess that\u0027s the reason different name was chosen.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    def _router_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":93,"context_line":"        # NOTE(manjeets) router update bypasses the driver controller"},{"line_number":94,"context_line":"        # and argument type is different."},{"line_number":95,"context_line":"        payload \u003d kwargs.get(\u0027payload\u0027, None)"},{"line_number":96,"context_line":"        if payload:"},{"line_number":97,"context_line":"            context \u003d payload.context"},{"line_number":98,"context_line":"            router_id \u003d payload.states[0][\u0027id\u0027]"},{"line_number":99,"context_line":"            router_dict \u003d payload.request_body"},{"line_number":100,"context_line":"            gw_port_id \u003d payload.states[0][\u0027gw_port_id\u0027]"},{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            # TODO(manjeets) Remove this shim once payload is"},{"line_number":103,"context_line":"            # fully adapted"},{"line_number":104,"context_line":"            context \u003d kwargs[\u0027context\u0027]"},{"line_number":105,"context_line":"            router_id \u003d kwargs[\u0027router_db\u0027].id"},{"line_number":106,"context_line":"            router_dict \u003d kwargs[\u0027router\u0027]"},{"line_number":107,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":108,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":109,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":110,"context_line":"        if self._validate_l3_flavor(context, router_id):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_45a5e8b2","line":107,"range":{"start_line":95,"start_character":0,"end_line":107,"end_character":55},"updated":"2018-07-12 10:58:08.000000000","message":"try/except/else is cleaner. Aside from that, why is it needed to have both versions? I don\u0027t understand why sometimes you\u0027ll receive a payload and sometimes not. Perhaps you can show me in the code? What I see is that they call registry.notify which uses kwargs.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    def _router_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":93,"context_line":"        # NOTE(manjeets) router update bypasses the driver controller"},{"line_number":94,"context_line":"        # and argument type is different."},{"line_number":95,"context_line":"        payload \u003d kwargs.get(\u0027payload\u0027, None)"},{"line_number":96,"context_line":"        if payload:"},{"line_number":97,"context_line":"            context \u003d payload.context"},{"line_number":98,"context_line":"            router_id \u003d payload.states[0][\u0027id\u0027]"},{"line_number":99,"context_line":"            router_dict \u003d payload.request_body"},{"line_number":100,"context_line":"            gw_port_id \u003d payload.states[0][\u0027gw_port_id\u0027]"},{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            # TODO(manjeets) Remove this shim once payload is"},{"line_number":103,"context_line":"            # fully adapted"},{"line_number":104,"context_line":"            context \u003d kwargs[\u0027context\u0027]"},{"line_number":105,"context_line":"            router_id \u003d kwargs[\u0027router_db\u0027].id"},{"line_number":106,"context_line":"            router_dict \u003d kwargs[\u0027router\u0027]"},{"line_number":107,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":108,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":109,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":110,"context_line":"        if self._validate_l3_flavor(context, router_id):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_a4c6f549","line":107,"range":{"start_line":95,"start_character":0,"end_line":107,"end_character":55},"in_reply_to":"5f7c97a3_45a5e8b2","updated":"2018-07-12 22:07:19.000000000","message":"if I recall correctly, there are different extensions processing router_update, so there was a case when a extension had registry.publish and most of them have notify.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"77d5c09f90602796308cfb60b9082a7b880e10c6","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    def _router_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":93,"context_line":"        # NOTE(manjeets) router update bypasses the driver controller"},{"line_number":94,"context_line":"        # and argument type is different."},{"line_number":95,"context_line":"        payload \u003d kwargs.get(\u0027payload\u0027, None)"},{"line_number":96,"context_line":"        if payload:"},{"line_number":97,"context_line":"            context \u003d payload.context"},{"line_number":98,"context_line":"            router_id \u003d payload.states[0][\u0027id\u0027]"},{"line_number":99,"context_line":"            router_dict \u003d payload.request_body"},{"line_number":100,"context_line":"            gw_port_id \u003d payload.states[0][\u0027gw_port_id\u0027]"},{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            # TODO(manjeets) Remove this shim once payload is"},{"line_number":103,"context_line":"            # fully adapted"},{"line_number":104,"context_line":"            context \u003d kwargs[\u0027context\u0027]"},{"line_number":105,"context_line":"            router_id \u003d kwargs[\u0027router_db\u0027].id"},{"line_number":106,"context_line":"            router_dict \u003d kwargs[\u0027router\u0027]"},{"line_number":107,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":108,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":109,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":110,"context_line":"        if self._validate_l3_flavor(context, router_id):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_2e69248b","line":107,"range":{"start_line":95,"start_character":0,"end_line":107,"end_character":55},"in_reply_to":"5f7c97a3_a4c0104c","updated":"2018-07-16 18:00:03.000000000","message":"done !","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"42ac1d4aac33bb6834031c1be2ff2ce9f5c03ea1","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    def _router_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":93,"context_line":"        # NOTE(manjeets) router update bypasses the driver controller"},{"line_number":94,"context_line":"        # and argument type is different."},{"line_number":95,"context_line":"        payload \u003d kwargs.get(\u0027payload\u0027, None)"},{"line_number":96,"context_line":"        if payload:"},{"line_number":97,"context_line":"            context \u003d payload.context"},{"line_number":98,"context_line":"            router_id \u003d payload.states[0][\u0027id\u0027]"},{"line_number":99,"context_line":"            router_dict \u003d payload.request_body"},{"line_number":100,"context_line":"            gw_port_id \u003d payload.states[0][\u0027gw_port_id\u0027]"},{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            # TODO(manjeets) Remove this shim once payload is"},{"line_number":103,"context_line":"            # fully adapted"},{"line_number":104,"context_line":"            context \u003d kwargs[\u0027context\u0027]"},{"line_number":105,"context_line":"            router_id \u003d kwargs[\u0027router_db\u0027].id"},{"line_number":106,"context_line":"            router_dict \u003d kwargs[\u0027router\u0027]"},{"line_number":107,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":108,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":109,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":110,"context_line":"        if self._validate_l3_flavor(context, router_id):"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_a4c0104c","line":107,"range":{"start_line":95,"start_character":0,"end_line":107,"end_character":55},"in_reply_to":"5f7c97a3_a4c6f549","updated":"2018-07-15 10:34:44.000000000","message":"It would be nice to have a reference so we can track that and know when we can remove the shim","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            router_id \u003d kwargs[\u0027router_db\u0027].id"},{"line_number":106,"context_line":"            router_dict \u003d kwargs[\u0027router\u0027]"},{"line_number":107,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":108,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":109,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":110,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":111,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":112,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_08b0658a","line":109,"range":{"start_line":108,"start_character":8,"end_line":109,"end_character":54},"updated":"2018-07-12 10:58:08.000000000","message":"Perhaps it\u0027s better to do this? \n\ntry:\n  router_dict[\u0027gw_port_id\u0027]\nexcept KeyError:\n  router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            router_id \u003d kwargs[\u0027router_db\u0027].id"},{"line_number":106,"context_line":"            router_dict \u003d kwargs[\u0027router\u0027]"},{"line_number":107,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":108,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":109,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":110,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":111,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":112,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_265e6d51","line":109,"range":{"start_line":108,"start_character":8,"end_line":109,"end_character":54},"in_reply_to":"5f7c97a3_08b0658a","updated":"2018-07-12 22:07:19.000000000","message":"not a big difference, If 2 lines of code are able to same thing, why having 4 ?","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"42ac1d4aac33bb6834031c1be2ff2ce9f5c03ea1","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            router_id \u003d kwargs[\u0027router_db\u0027].id"},{"line_number":106,"context_line":"            router_dict \u003d kwargs[\u0027router\u0027]"},{"line_number":107,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":108,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":109,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":110,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":111,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":112,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_449d7c6a","line":109,"range":{"start_line":108,"start_character":8,"end_line":109,"end_character":54},"in_reply_to":"5f7c97a3_265e6d51","updated":"2018-07-15 10:34:44.000000000","message":"It\u0027s more pythonic and performant if most of the time you\u0027ll have that attribute","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"e59f3a8695f7c15e740e5d58c1c7d917cbf84e95","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            router_id \u003d kwargs[\u0027router_db\u0027].id"},{"line_number":106,"context_line":"            router_dict \u003d kwargs[\u0027router\u0027]"},{"line_number":107,"context_line":"            gw_port_id \u003d kwargs[\u0027router_db\u0027].gw_port_id"},{"line_number":108,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":109,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":110,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":111,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":112,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_9e3f5821","line":109,"range":{"start_line":108,"start_character":8,"end_line":109,"end_character":54},"in_reply_to":"5f7c97a3_449d7c6a","updated":"2018-07-16 08:50:20.000000000","message":"I side with Manjeet on this, also if it\u0027s more or less performant remains to be proven","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":128,"context_line":"    def _floatingip_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":129,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":130,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":131,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":132,"context_line":"            return"},{"line_number":133,"context_line":"        fip_dict \u003d copy.deepcopy(kwargs[\u0027floatingip\u0027])"},{"line_number":134,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":135,"context_line":"        self._update_floatingip_status(context, fip_dict)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_3b51b631","line":132,"range":{"start_line":131,"start_character":8,"end_line":132,"end_character":18},"updated":"2018-07-12 10:58:08.000000000","message":"why is this different than the other functions? I like this way better though.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":128,"context_line":"    def _floatingip_create_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":129,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":130,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":131,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":132,"context_line":"            return"},{"line_number":133,"context_line":"        fip_dict \u003d copy.deepcopy(kwargs[\u0027floatingip\u0027])"},{"line_number":134,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":135,"context_line":"        self._update_floatingip_status(context, fip_dict)"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_9f3b04c8","line":132,"range":{"start_line":131,"start_character":8,"end_line":132,"end_character":18},"in_reply_to":"5f7c97a3_3b51b631","updated":"2018-07-12 22:07:19.000000000","message":"actually, I need to remove this block from floatingip, as neutron has logic to call only the associated driver, because router_ids None are allowed in floatingip_db, so this may ignore a valid operation.\n\nneutron only has flavor_id associated to router, I think it need enhancement for fip resource as well.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":131,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":132,"context_line":"            return"},{"line_number":133,"context_line":"        fip_dict \u003d copy.deepcopy(kwargs[\u0027floatingip\u0027])"},{"line_number":134,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":135,"context_line":"        self._update_floatingip_status(context, fip_dict)"},{"line_number":136,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_d6089928","line":133,"range":{"start_line":133,"start_character":19,"end_line":133,"end_character":33},"updated":"2018-07-12 10:58:08.000000000","message":"is there a need to copy it? I understand it\u0027s mutable but I\u0027ve seen many cases where neutron takes care of copying it before giving it to you.. If that\u0027s not the case perhaps we can have a decorator that makes the arguments safe to use.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":131,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":132,"context_line":"            return"},{"line_number":133,"context_line":"        fip_dict \u003d copy.deepcopy(kwargs[\u0027floatingip\u0027])"},{"line_number":134,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":135,"context_line":"        self._update_floatingip_status(context, fip_dict)"},{"line_number":136,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_ff6f98c1","line":133,"range":{"start_line":133,"start_character":19,"end_line":133,"end_character":33},"in_reply_to":"5f7c97a3_d6089928","updated":"2018-07-12 22:07:19.000000000","message":"it was using direct kwargs, but this was done to address some comments in the past. PS12\u0027s comment was addressed. since this safe and no harm, i\u0027ll stick with it atm","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        fip_dict \u003d copy.deepcopy(kwargs[\u0027floatingip\u0027])"},{"line_number":134,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":135,"context_line":"        self._update_floatingip_status(context, fip_dict)"},{"line_number":136,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":137,"context_line":"            fip_dict[\u0027floating_ip_address\u0027] \u003d \\"},{"line_number":138,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"},{"line_number":139,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_b6515d10","line":136,"range":{"start_line":136,"start_character":11,"end_line":136,"end_character":50},"updated":"2018-07-12 10:58:08.000000000","message":"\u0027is None\u0027 or you want to know if the key exists?","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        fip_dict \u003d copy.deepcopy(kwargs[\u0027floatingip\u0027])"},{"line_number":134,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_id\u0027]"},{"line_number":135,"context_line":"        self._update_floatingip_status(context, fip_dict)"},{"line_number":136,"context_line":"        if fip_dict[\u0027floating_ip_address\u0027] is None:"},{"line_number":137,"context_line":"            fip_dict[\u0027floating_ip_address\u0027] \u003d \\"},{"line_number":138,"context_line":"                kwargs[\u0027floatingip_db\u0027].floating_ip_address"},{"line_number":139,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_ff59d8fc","line":136,"range":{"start_line":136,"start_character":11,"end_line":136,"end_character":50},"in_reply_to":"5f7c97a3_b6515d10","updated":"2018-07-12 22:07:19.000000000","message":"is None","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"5ee9157fe27a2384e3937ee56e11c0a0ae05baff","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    @log_helpers.log_method_call"},{"line_number":144,"context_line":"    def _floatingip_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":145,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":146,"context_line":"        fip_dict \u003d kwargs[\u0027old_floatingip\u0027]"},{"line_number":147,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":148,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":149,"context_line":"        if fip_dict is None:"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_0e94f63f","line":146,"range":{"start_line":146,"start_character":8,"end_line":146,"end_character":43},"updated":"2018-07-10 07:06:32.000000000","message":"Shouldn\u0027t this be the new floatingip?","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    @log_helpers.log_method_call"},{"line_number":144,"context_line":"    def _floatingip_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":145,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":146,"context_line":"        fip_dict \u003d kwargs[\u0027old_floatingip\u0027]"},{"line_number":147,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":148,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":149,"context_line":"        if fip_dict is None:"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_9ff304e9","line":146,"range":{"start_line":146,"start_character":8,"end_line":146,"end_character":43},"in_reply_to":"5f7c97a3_0e94f63f","updated":"2018-07-12 22:07:19.000000000","message":"the way kwargs were back then, that\u0027s why this was chosen, but I need to setup dev env to come with more details, I\u0027ll address it later.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"e59f3a8695f7c15e740e5d58c1c7d917cbf84e95","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    @log_helpers.log_method_call"},{"line_number":144,"context_line":"    def _floatingip_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":145,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":146,"context_line":"        fip_dict \u003d kwargs[\u0027old_floatingip\u0027]"},{"line_number":147,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":148,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":149,"context_line":"        if fip_dict is None:"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_fe576c59","line":146,"range":{"start_line":146,"start_character":8,"end_line":146,"end_character":43},"in_reply_to":"5f7c97a3_9db30bed","updated":"2018-07-16 08:50:20.000000000","message":"OK cool anyway it didn\u0027t make sense for this to be old_floatingip right?\n\nI\u0027d also test this is I were you since the tests you had didnt cover this mixup","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ab61561bd0be209e27f9ac6def989e06434cb648","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    @log_helpers.log_method_call"},{"line_number":144,"context_line":"    def _floatingip_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":145,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":146,"context_line":"        fip_dict \u003d kwargs[\u0027old_floatingip\u0027]"},{"line_number":147,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":148,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":149,"context_line":"        if fip_dict is None:"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_9db30bed","line":146,"range":{"start_line":146,"start_character":8,"end_line":146,"end_character":43},"in_reply_to":"5f7c97a3_9ff304e9","updated":"2018-07-13 00:59:10.000000000","message":"Mike, so I debugged this, so there\u0027s not such direct floatingip-update operation like network, subnet and router etc first,\n\nfip update happens when a fip is attached to an instance. so only port update happen that time,\n\nafter closely looking at datapassed, there\u0027s no such key new floatingip, however, there\u0027s one name floatingip that has new added port data, it make sense to use that instead.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"77d5c09f90602796308cfb60b9082a7b880e10c6","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    @log_helpers.log_method_call"},{"line_number":144,"context_line":"    def _floatingip_update_precommit(self, resource, event, trigger, **kwargs):"},{"line_number":145,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":146,"context_line":"        fip_dict \u003d kwargs[\u0027old_floatingip\u0027]"},{"line_number":147,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":148,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":149,"context_line":"        if fip_dict is None:"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_8ec63869","line":146,"range":{"start_line":146,"start_character":8,"end_line":146,"end_character":43},"in_reply_to":"5f7c97a3_fe576c59","updated":"2018-07-16 18:00:03.000000000","message":"hi Mike, previously I had oldfloatingip added in fip dict before test which I\u0027ll remove now, if it doesn\u0027t have floatingip in test data it will complain for key error","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"5ee9157fe27a2384e3937ee56e11c0a0ae05baff","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        fip_dict \u003d kwargs[\u0027old_floatingip\u0027]"},{"line_number":147,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":148,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":149,"context_line":"        if fip_dict is None:"},{"line_number":150,"context_line":"            return"},{"line_number":151,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":152,"context_line":"            self._update_floatingip_status(context, fip_dict)"},{"line_number":153,"context_line":"            journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_ce8b5e1b","line":150,"range":{"start_line":149,"start_character":8,"end_line":150,"end_character":18},"updated":"2018-07-10 07:06:32.000000000","message":"Not sure that this makes sense..","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"3b1091bd19cf80a7915229d7876962267f2a0546","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        fip_dict \u003d kwargs[\u0027old_floatingip\u0027]"},{"line_number":147,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":148,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":149,"context_line":"        if fip_dict is None:"},{"line_number":150,"context_line":"            return"},{"line_number":151,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":152,"context_line":"            self._update_floatingip_status(context, fip_dict)"},{"line_number":153,"context_line":"            journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":36,"id":"5f7c97a3_7ffaa8ba","line":150,"range":{"start_line":149,"start_character":8,"end_line":150,"end_character":18},"in_reply_to":"5f7c97a3_ce8b5e1b","updated":"2018-07-12 22:07:19.000000000","message":"Done","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"85ea42887b6eb526a1d6796f80b0bf33ff959027","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        # other router with other service provider should be filtered."},{"line_number":56,"context_line":"        full_sync.register(plugin_constants.L3, L3_RESOURCES)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def __name__(self):"},{"line_number":59,"context_line":"        return sys.modules[__name__].__name__ + \".\" + self.__class__.__name__"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_4e11f2f7","line":58,"range":{"start_line":58,"start_character":8,"end_line":58,"end_character":16},"updated":"2018-07-17 07:07:41.000000000","message":"mmm it doesn\u0027t seem like a good idea to overload __name__","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"85ea42887b6eb526a1d6796f80b0bf33ff959027","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        full_sync.register(plugin_constants.L3, L3_RESOURCES)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def __name__(self):"},{"line_number":59,"context_line":"        return sys.modules[__name__].__name__ + \".\" + self.__class__.__name__"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @property"},{"line_number":62,"context_line":"    def _flavor_plugin(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_8ebf0afb","line":59,"range":{"start_line":59,"start_character":15,"end_line":59,"end_character":45},"updated":"2018-07-17 07:07:41.000000000","message":"sys.modules[__name__].__name__ is equivalent to __name__ I don\u0027t see why you import sys and then use sys.modules to get the name.","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"8fe8d2461dfb88a3dc5c4000ef203db9bf86c60d","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        full_sync.register(plugin_constants.L3, L3_RESOURCES)"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def __name__(self):"},{"line_number":59,"context_line":"        return sys.modules[__name__].__name__ + \".\" + self.__class__.__name__"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @property"},{"line_number":62,"context_line":"    def _flavor_plugin(self):"}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_3c92a2fd","line":59,"range":{"start_line":59,"start_character":15,"end_line":59,"end_character":45},"in_reply_to":"5f7c97a3_8ebf0afb","updated":"2018-07-17 17:22:36.000000000","message":"done","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"85ea42887b6eb526a1d6796f80b0bf33ff959027","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @property"},{"line_number":62,"context_line":"    def _flavor_plugin(self):"},{"line_number":63,"context_line":"        if not hasattr(self, \u0027_flavor_plugin_ref\u0027):"},{"line_number":64,"context_line":"            self._flavor_plugin_ref \u003d directory.get_plugin("},{"line_number":65,"context_line":"                plugin_constants.FLAVORS)"},{"line_number":66,"context_line":"        return self._flavor_plugin_ref"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def _validate_l3_flavor(self, context, router_id):"}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_2e97d648","line":65,"range":{"start_line":63,"start_character":8,"end_line":65,"end_character":41},"updated":"2018-07-17 07:07:41.000000000","message":"since this will most likely happen only once testing all the time if it has or not the attribute is a bit of a waste.\n\ntry:\n    return self._flavor_plugin_ref\nexcept AttributeError:\n    self._flavor_plugin_ref \u003d directory.get_plugin(plugin_constants.FLAVORS)\n    return self._flavor_plugin_ref\n\nThis implementation is nicer IMHO","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"8fe8d2461dfb88a3dc5c4000ef203db9bf86c60d","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @property"},{"line_number":62,"context_line":"    def _flavor_plugin(self):"},{"line_number":63,"context_line":"        if not hasattr(self, \u0027_flavor_plugin_ref\u0027):"},{"line_number":64,"context_line":"            self._flavor_plugin_ref \u003d directory.get_plugin("},{"line_number":65,"context_line":"                plugin_constants.FLAVORS)"},{"line_number":66,"context_line":"        return self._flavor_plugin_ref"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def _validate_l3_flavor(self, context, router_id):"}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_1cb6c68a","line":65,"range":{"start_line":63,"start_character":8,"end_line":65,"end_character":41},"in_reply_to":"5f7c97a3_2e97d648","updated":"2018-07-17 17:22:36.000000000","message":"Done","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"85ea42887b6eb526a1d6796f80b0bf33ff959027","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":116,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":117,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":118,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":119,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_4ea25299","line":117,"range":{"start_line":117,"start_character":8,"end_line":117,"end_character":56},"updated":"2018-07-17 07:07:41.000000000","message":"NIT: I prefer the idiom\n\nif not self._validate_l3_flavor(context, router_id):\n    return","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"8fe8d2461dfb88a3dc5c4000ef203db9bf86c60d","unresolved":false,"context_lines":[{"line_number":114,"context_line":""},{"line_number":115,"context_line":"        if \u0027gw_port_id\u0027 not in router_dict:"},{"line_number":116,"context_line":"                router_dict[\u0027gw_port_id\u0027] \u003d gw_port_id"},{"line_number":117,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":118,"context_line":"                journal.record(context, odl_const.ODL_ROUTER,"},{"line_number":119,"context_line":"                               router_id, odl_const.ODL_UPDATE, router_dict)"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_5c651e1c","line":117,"range":{"start_line":117,"start_character":8,"end_line":117,"end_character":56},"in_reply_to":"5f7c97a3_4ea25299","updated":"2018-07-17 17:22:36.000000000","message":"Done","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"85ea42887b6eb526a1d6796f80b0bf33ff959027","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":154,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":155,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":156,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":157,"context_line":"            self._update_floatingip_status(context, fip_dict)"},{"line_number":158,"context_line":"            journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"},{"line_number":159,"context_line":"                           odl_const.ODL_UPDATE, fip_dict)"}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_6ec86e55","line":156,"range":{"start_line":156,"start_character":8,"end_line":156,"end_character":56},"updated":"2018-07-17 07:07:41.000000000","message":"same as L117","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"8fe8d2461dfb88a3dc5c4000ef203db9bf86c60d","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        fip_dict \u003d kwargs[\u0027floatingip\u0027]"},{"line_number":154,"context_line":"        router_id \u003d kwargs[\u0027floatingip_db\u0027].router_id"},{"line_number":155,"context_line":"        fip_dict[\u0027id\u0027] \u003d kwargs[\u0027floatingip_db\u0027].id"},{"line_number":156,"context_line":"        if self._validate_l3_flavor(context, router_id):"},{"line_number":157,"context_line":"            self._update_floatingip_status(context, fip_dict)"},{"line_number":158,"context_line":"            journal.record(context, odl_const.ODL_FLOATINGIP, fip_dict[\u0027id\u0027],"},{"line_number":159,"context_line":"                           odl_const.ODL_UPDATE, fip_dict)"}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_ffc41c96","line":156,"range":{"start_line":156,"start_character":8,"end_line":156,"end_character":56},"in_reply_to":"5f7c97a3_6ec86e55","updated":"2018-07-17 17:22:36.000000000","message":"Done","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"85ea42887b6eb526a1d6796f80b0bf33ff959027","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        fip_data \u003d l3_obj.FloatingIP.get_objects("},{"line_number":166,"context_line":"            context,"},{"line_number":167,"context_line":"            floating_port_id\u003dkwargs[\u0027port\u0027][\u0027id\u0027])[0]"},{"line_number":168,"context_line":"        if not self._validate_l3_flavor(context, fip_data.router_id):"},{"line_number":169,"context_line":"            return"},{"line_number":170,"context_line":"        dependency_list \u003d [fip_data.router_id, fip_data.floating_network_id]"},{"line_number":171,"context_line":"        journal.record(context, odl_const.ODL_FLOATINGIP, fip_data.id,"},{"line_number":172,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"}],"source_content_type":"text/x-python","patch_set":41,"id":"5f7c97a3_8ec5ca3f","line":169,"range":{"start_line":168,"start_character":8,"end_line":169,"end_character":18},"updated":"2018-07-17 07:07:41.000000000","message":"ha! here you have it that way :)","commit_id":"f7c7059211c0c247c3bdf8b91cccc964878f4d42"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"fb0f52ed00c5b75494883a2dbb0e75d68f86b01a","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            self._flavor_plugin_ref \u003d directory.get_plugin("},{"line_number":63,"context_line":"                plugin_constants.FLAVORS)"},{"line_number":64,"context_line":"            return self._flavor_plugin_ref"},{"line_number":65,"context_line":"        return self._flavor_plugin_ref"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    def _validate_l3_flavor(self, context, router_id):"},{"line_number":68,"context_line":"        if router_id is None:"}],"source_content_type":"text/x-python","patch_set":43,"id":"5f7c97a3_437beef1","line":65,"range":{"start_line":65,"start_character":8,"end_line":65,"end_character":38},"updated":"2018-07-18 06:36:12.000000000","message":"This code is never reached","commit_id":"916ecb3e4bc7e628144e02ec2125f82635e56a13"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ab969399a9a5cda64f5d96213c16ec25a976cad6","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            self._flavor_plugin_ref \u003d directory.get_plugin("},{"line_number":63,"context_line":"                plugin_constants.FLAVORS)"},{"line_number":64,"context_line":"            return self._flavor_plugin_ref"},{"line_number":65,"context_line":"        return self._flavor_plugin_ref"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    def _validate_l3_flavor(self, context, router_id):"},{"line_number":68,"context_line":"        if router_id is None:"}],"source_content_type":"text/x-python","patch_set":43,"id":"5f7c97a3_26691225","line":65,"range":{"start_line":65,"start_character":8,"end_line":65,"end_character":38},"in_reply_to":"5f7c97a3_437beef1","updated":"2018-07-18 16:13:50.000000000","message":"Done","commit_id":"916ecb3e4bc7e628144e02ec2125f82635e56a13"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"fb0f52ed00c5b75494883a2dbb0e75d68f86b01a","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        flavor \u003d self._flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":72,"context_line":"        provider \u003d self._flavor_plugin.get_flavor_next_provider("},{"line_number":73,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":74,"context_line":"        odl_provider \u003d __name__ + \".\" + self.__class__.__name__"},{"line_number":75,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d odl_provider"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def _update_floatingip_status(self, context, fip_dict):"}],"source_content_type":"text/x-python","patch_set":43,"id":"5f7c97a3_03697624","line":74,"range":{"start_line":74,"start_character":23,"end_line":74,"end_character":63},"updated":"2018-07-18 06:36:12.000000000","message":"actually this won\u0027t ever change, just initialize it once and then just use it.","commit_id":"916ecb3e4bc7e628144e02ec2125f82635e56a13"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ab969399a9a5cda64f5d96213c16ec25a976cad6","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        flavor \u003d self._flavor_plugin.get_flavor(context, router.flavor_id)"},{"line_number":72,"context_line":"        provider \u003d self._flavor_plugin.get_flavor_next_provider("},{"line_number":73,"context_line":"            context, flavor[\u0027id\u0027])[0]"},{"line_number":74,"context_line":"        odl_provider \u003d __name__ + \".\" + self.__class__.__name__"},{"line_number":75,"context_line":"        return str(provider[\u0027driver\u0027]) \u003d\u003d odl_provider"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def _update_floatingip_status(self, context, fip_dict):"}],"source_content_type":"text/x-python","patch_set":43,"id":"5f7c97a3_868026c0","line":74,"range":{"start_line":74,"start_character":23,"end_line":74,"end_character":63},"in_reply_to":"5f7c97a3_03697624","updated":"2018-07-18 16:13:50.000000000","message":"Done","commit_id":"916ecb3e4bc7e628144e02ec2125f82635e56a13"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"fb0f52ed00c5b75494883a2dbb0e75d68f86b01a","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":128,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":129,"context_line":"            return"},{"line_number":130,"context_line":"            # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":131,"context_line":"        dependency_list \u003d [kwargs[\u0027router_db\u0027].gw_port_id]"},{"line_number":132,"context_line":"        journal.record(context, odl_const.ODL_ROUTER, router_id,"},{"line_number":133,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"}],"source_content_type":"text/x-python","patch_set":43,"id":"5f7c97a3_c36e1e2c","line":130,"range":{"start_line":130,"start_character":12,"end_line":130,"end_character":75},"updated":"2018-07-18 06:36:12.000000000","message":"this should not be indented.","commit_id":"916ecb3e4bc7e628144e02ec2125f82635e56a13"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"ab969399a9a5cda64f5d96213c16ec25a976cad6","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        context \u003d kwargs[\u0027context\u0027]"},{"line_number":128,"context_line":"        if not self._validate_l3_flavor(context, router_id):"},{"line_number":129,"context_line":"            return"},{"line_number":130,"context_line":"            # TODO(yamahata): process floating ip etc. or just raise error?"},{"line_number":131,"context_line":"        dependency_list \u003d [kwargs[\u0027router_db\u0027].gw_port_id]"},{"line_number":132,"context_line":"        journal.record(context, odl_const.ODL_ROUTER, router_id,"},{"line_number":133,"context_line":"                       odl_const.ODL_DELETE, dependency_list)"}],"source_content_type":"text/x-python","patch_set":43,"id":"5f7c97a3_c67a9eee","line":130,"range":{"start_line":130,"start_character":12,"end_line":130,"end_character":75},"in_reply_to":"5f7c97a3_c36e1e2c","updated":"2018-07-18 16:13:50.000000000","message":"Done","commit_id":"916ecb3e4bc7e628144e02ec2125f82635e56a13"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"48139dee388dc6620e17e8dab06aa73e9a73177a","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from oslo_log import helpers as log_helpers"},{"line_number":28,"context_line":"from oslo_log import log as logging"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from neutron.objects import router as l3_obj"},{"line_number":31,"context_line":"from neutron.services.l3_router.service_providers import base"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"from networking_odl.common import constants as odl_const"},{"line_number":34,"context_line":"from networking_odl.journal import full_sync"}],"source_content_type":"text/x-python","patch_set":45,"id":"5f7c97a3_67713645","line":31,"range":{"start_line":30,"start_character":0,"end_line":31,"end_character":61},"updated":"2018-07-19 07:11:53.000000000","message":"this belongs to the same block of imports as above.","commit_id":"20fdcd74f872010220072771ef63815f770267b5"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"7d87d1659e3aaee68d23edd475745662471a5f74","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from oslo_log import helpers as log_helpers"},{"line_number":28,"context_line":"from oslo_log import log as logging"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from neutron.objects import router as l3_obj"},{"line_number":31,"context_line":"from neutron.services.l3_router.service_providers import base"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"from networking_odl.common import constants as odl_const"},{"line_number":34,"context_line":"from networking_odl.journal import full_sync"}],"source_content_type":"text/x-python","patch_set":45,"id":"5f7c97a3_a12e50f6","line":31,"range":{"start_line":30,"start_character":0,"end_line":31,"end_character":61},"in_reply_to":"5f7c97a3_67713645","updated":"2018-07-19 15:57:12.000000000","message":"Done","commit_id":"20fdcd74f872010220072771ef63815f770267b5"}],"networking_odl/tests/unit/l3/test_l3_flavor.py":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"2cfaa55fa33cec285dc24714eda9ea35852753cf","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        return router"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def _test_fip_operation(self, operation, event, fip):"},{"line_number":77,"context_line":"        method \u003d getattr(self.flavor_driver,"},{"line_number":78,"context_line":"                         \u0027_floatingip_%s_%s\u0027 % (event, operation))"},{"line_number":79,"context_line":"        method(odl_const.ODL_FLOATINGIP, mock.ANY, mock.ANY, **fip)"}],"source_content_type":"text/x-python","patch_set":16,"id":"bf659307_3e4beab0","line":76,"range":{"start_line":76,"start_character":45,"end_line":76,"end_character":50},"updated":"2018-04-06 07:59:22.000000000","message":"this event is used for different meaning.\nthe reader would expect event as e.g. \"create_precommit\" etc.\nbut here actually only \"create\".\nIt doesn\u0027t match with neutron callback usage.","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"65b06b563feecddecaef2f43ec61d52174c22f58","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        return router"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def _test_fip_operation(self, operation, event, fip):"},{"line_number":77,"context_line":"        method \u003d getattr(self.flavor_driver,"},{"line_number":78,"context_line":"                         \u0027_floatingip_%s_%s\u0027 % (event, operation))"},{"line_number":79,"context_line":"        method(odl_const.ODL_FLOATINGIP, mock.ANY, mock.ANY, **fip)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_0cc61969","line":76,"range":{"start_line":76,"start_character":45,"end_line":76,"end_character":50},"in_reply_to":"bf659307_3e4beab0","updated":"2018-05-03 18:44:23.000000000","message":"flipped","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"2cfaa55fa33cec285dc24714eda9ea35852753cf","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        router \u003d self._get_mock_router_kwargs()"},{"line_number":121,"context_line":"        router[\u0027router_id\u0027] \u003d router[\u0027router\u0027][\u0027id\u0027]"},{"line_number":122,"context_line":"        router[\u0027driver\u0027] \u003d self.flavor_driver"},{"line_number":123,"context_line":"        self._test_router_operation(\"precommit\", odl_const.ODL_DELETE, router)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"    def test_fip_precommit_create(self):"},{"line_number":126,"context_line":"        with mock.patch.object(self.flavor_driver,"}],"source_content_type":"text/x-python","patch_set":16,"id":"bf659307_9ee8f67c","line":123,"range":{"start_line":123,"start_character":50,"end_line":123,"end_character":69},"updated":"2018-04-06 07:59:22.000000000","message":"ODL_CREATE/UPDATE/DELETE is for operation to ODL rest API.\nnot callback.","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"65b06b563feecddecaef2f43ec61d52174c22f58","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        router \u003d self._get_mock_router_kwargs()"},{"line_number":121,"context_line":"        router[\u0027router_id\u0027] \u003d router[\u0027router\u0027][\u0027id\u0027]"},{"line_number":122,"context_line":"        router[\u0027driver\u0027] \u003d self.flavor_driver"},{"line_number":123,"context_line":"        self._test_router_operation(\"precommit\", odl_const.ODL_DELETE, router)"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"    def test_fip_precommit_create(self):"},{"line_number":126,"context_line":"        with mock.patch.object(self.flavor_driver,"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_ecc87d75","line":123,"range":{"start_line":123,"start_character":50,"end_line":123,"end_character":69},"in_reply_to":"bf659307_9ee8f67c","updated":"2018-05-03 18:44:23.000000000","message":"Done","commit_id":"e13af4254ba4127a4f56b7e4925136b6ffbdaa91"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"2ef23e4882af5db0e8a50d3bd066410271c1a5de","unresolved":false,"context_lines":[{"line_number":109,"context_line":"        self._test_router_operation(\"association\", \"add\", router)"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    def test_router_del_association(self):"},{"line_number":112,"context_line":"        router \u003d self._get_mock_router_kwargs()"},{"line_number":113,"context_line":"        router[\u0027old_driver\u0027] \u003d self.flavor_driver"},{"line_number":114,"context_line":"        router[\u0027new_driver\u0027] \u003d \"test-driver\""},{"line_number":115,"context_line":"        router[\u0027driver\u0027] \u003d self.flavor_driver"},{"line_number":116,"context_line":"        router[\u0027router_id\u0027] \u003d router[\u0027router\u0027][\u0027id\u0027]"},{"line_number":117,"context_line":"        self._test_router_operation(\"association\", \"del\", router)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def test_router_precommit_delete(self):"},{"line_number":120,"context_line":"        router \u003d self._get_mock_router_kwargs()"}],"source_content_type":"text/x-python","patch_set":20,"id":"5f7c97a3_6d18d91c","line":117,"range":{"start_line":112,"start_character":0,"end_line":117,"end_character":63},"updated":"2018-05-04 17:10:29.000000000","message":"This needs to be updated to reflect neutron part.","commit_id":"e86c9090a2c1f4b7ccf190ea2aa103306be5c248"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"f0f98261ffb057fa946ef60c135847e5f7651e01","unresolved":false,"context_lines":[{"line_number":109,"context_line":"        self._test_router_operation(\"association\", \"add\", router)"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    def test_router_del_association(self):"},{"line_number":112,"context_line":"        router \u003d self._get_mock_router_kwargs()"},{"line_number":113,"context_line":"        router[\u0027old_driver\u0027] \u003d self.flavor_driver"},{"line_number":114,"context_line":"        router[\u0027new_driver\u0027] \u003d \"test-driver\""},{"line_number":115,"context_line":"        router[\u0027driver\u0027] \u003d self.flavor_driver"},{"line_number":116,"context_line":"        router[\u0027router_id\u0027] \u003d router[\u0027router\u0027][\u0027id\u0027]"},{"line_number":117,"context_line":"        self._test_router_operation(\"association\", \"del\", router)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    def test_router_precommit_delete(self):"},{"line_number":120,"context_line":"        router \u003d self._get_mock_router_kwargs()"}],"source_content_type":"text/x-python","patch_set":20,"id":"5f7c97a3_622463c7","line":117,"range":{"start_line":112,"start_character":0,"end_line":117,"end_character":63},"in_reply_to":"5f7c97a3_6d18d91c","updated":"2018-05-04 23:05:05.000000000","message":"can you elaborate ? I didn\u0027t get how its not reflecting neutron ?","commit_id":"e86c9090a2c1f4b7ccf190ea2aa103306be5c248"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":29,"id":"5f7c97a3_2da005f4","updated":"2018-05-30 12:30:57.000000000","message":"A lot of tests are missing, also I\u0027ll hold off reviewing this until the main file is more concrete.","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":29,"id":"5f7c97a3_8e50fd33","in_reply_to":"5f7c97a3_2da005f4","updated":"2018-06-01 21:10:58.000000000","message":"alright, would love the feedback and be happy to add missing tests","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":26507,"name":"Michel Peterson","email":"michel@redhat.com","username":"mpeterson"},"change_message_id":"2572cf13d9d39be5962d8445c6ae888c6ebf35f9","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":36,"id":"5f7c97a3_36eb0dde","updated":"2018-07-12 10:58:08.000000000","message":"I\u0027ll review this in greater detail on the next review. But just by looking at it I feel that there are a lot of things that aren\u0027t tested. Try to go execution path by execution path and see what is that you aren\u0027t testing. Perhaps you are testing everything, but it seems a very small amount of tests for such a big change.","commit_id":"df02432b1fc99ae08b3acf1e629539648da1558c"}],"releasenotes/notes/odl-l3-flavor-f093e6c0fb4e9dd8.yaml":[{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"change_message_id":"745bfb84c0af309cde91932c6a21a2ff1029673e","unresolved":false,"context_lines":[{"line_number":7,"context_line":"features:"},{"line_number":8,"context_line":"  - |"},{"line_number":9,"context_line":"     L3 flavor driver to implement L3 resource operation callbacks"},{"line_number":10,"context_line":"     related to router and floating ip create delete and update."}],"source_content_type":"text/x-yaml","patch_set":14,"id":"df7087c5_e35ff03e","line":10,"range":{"start_line":10,"start_character":64,"end_line":10,"end_character":64},"updated":"2018-03-10 07:21:31.000000000","message":"upgreade section is necessary to mention that configuration change is necessary.","commit_id":"0492e2b108c3ab8a0658d12b721bd6f038c3955f"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"56daa5df4e5462dbe66fb8c5ec393d7545c1b7e8","unresolved":false,"context_lines":[{"line_number":12,"context_line":"  - |"},{"line_number":13,"context_line":"     The configuration upgrades are required to enable l3 flavors,"},{"line_number":14,"context_line":"     service_providers should be added to neutron.conf based on"},{"line_number":15,"context_line":"     flavor used."}],"source_content_type":"text/x-yaml","patch_set":29,"id":"5f7c97a3_0dd5091c","line":15,"range":{"start_line":15,"start_character":16,"end_line":15,"end_character":17},"updated":"2018-05-30 12:30:57.000000000","message":"Might want to specify that in the config old L3 driver should not be used?","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"100ab72b59a9cafa88fb227b220ecf1beec55c7b","unresolved":false,"context_lines":[{"line_number":12,"context_line":"  - |"},{"line_number":13,"context_line":"     The configuration upgrades are required to enable l3 flavors,"},{"line_number":14,"context_line":"     service_providers should be added to neutron.conf based on"},{"line_number":15,"context_line":"     flavor used."}],"source_content_type":"text/x-yaml","patch_set":29,"id":"5f7c97a3_1c7bf9f4","line":15,"range":{"start_line":15,"start_character":16,"end_line":15,"end_character":17},"in_reply_to":"5f7c97a3_0dd5091c","updated":"2018-06-01 21:10:58.000000000","message":"good idea","commit_id":"0a8e77b80d38d30d5a86757cc35eca61a2f30d87"}]}
