)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"640b45f0b00a4a4af7fa6d88db1d949e4fe6b399","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Thomas Morin \u003cthomas.morin@orange.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-09-01 11:35:57 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"bagpipe service driver changes for supporting ovo in bagpipe"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Bagpipe driver is moving toward using ovo objects for rpc calls,"},{"line_number":10,"context_line":"changes made go along, and are necessary to the good use of rpc calls"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f287b81_2b93e35e","line":7,"range":{"start_line":7,"start_character":50,"end_line":7,"end_character":60},"updated":"2017-09-01 12:05:01.000000000","message":"\" in bagpipe\": not needed","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"640b45f0b00a4a4af7fa6d88db1d949e4fe6b399","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Thomas Morin \u003cthomas.morin@orange.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-09-01 11:35:57 +0200"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"bagpipe service driver changes for supporting ovo in bagpipe"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Bagpipe driver is moving toward using ovo objects for rpc calls,"},{"line_number":10,"context_line":"changes made go along, and are necessary to the good use of rpc calls"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f287b81_6ba9eb8e","line":7,"range":{"start_line":7,"start_character":46,"end_line":7,"end_character":49},"updated":"2017-09-01 12:05:01.000000000","message":"OVO","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"640b45f0b00a4a4af7fa6d88db1d949e4fe6b399","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"bagpipe service driver changes for supporting ovo in bagpipe"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Bagpipe driver is moving toward using ovo objects for rpc calls,"},{"line_number":10,"context_line":"changes made go along, and are necessary to the good use of rpc calls"},{"line_number":11,"context_line":"with ovo."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f287b81_0b90274e","line":9,"range":{"start_line":9,"start_character":38,"end_line":9,"end_character":41},"updated":"2017-09-01 12:05:01.000000000","message":"OVO","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"640b45f0b00a4a4af7fa6d88db1d949e4fe6b399","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"bagpipe service driver changes for supporting ovo in bagpipe"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Bagpipe driver is moving toward using ovo objects for rpc calls,"},{"line_number":10,"context_line":"changes made go along, and are necessary to the good use of rpc calls"},{"line_number":11,"context_line":"with ovo."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f287b81_eb9cbb6b","line":9,"range":{"start_line":9,"start_character":54,"end_line":9,"end_character":57},"updated":"2017-09-01 12:05:01.000000000","message":"RPC","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"640b45f0b00a4a4af7fa6d88db1d949e4fe6b399","unresolved":false,"context_lines":[{"line_number":7,"context_line":"bagpipe service driver changes for supporting ovo in bagpipe"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Bagpipe driver is moving toward using ovo objects for rpc calls,"},{"line_number":10,"context_line":"changes made go along, and are necessary to the good use of rpc calls"},{"line_number":11,"context_line":"with ovo."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Methods made calls to custom rpcs to make the change in bagpipe agent."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f287b81_cb99ff79","line":10,"range":{"start_line":10,"start_character":60,"end_line":10,"end_character":63},"updated":"2017-09-01 12:05:01.000000000","message":"RPC","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"640b45f0b00a4a4af7fa6d88db1d949e4fe6b399","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Bagpipe driver is moving toward using ovo objects for rpc calls,"},{"line_number":10,"context_line":"changes made go along, and are necessary to the good use of rpc calls"},{"line_number":11,"context_line":"with ovo."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Methods made calls to custom rpcs to make the change in bagpipe agent."},{"line_number":14,"context_line":"Currently, the methods have been enriched to call the ovo rpc, and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f287b81_ab88f321","line":11,"range":{"start_line":11,"start_character":5,"end_line":11,"end_character":8},"updated":"2017-09-01 12:05:01.000000000","message":"OVO","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"640b45f0b00a4a4af7fa6d88db1d949e4fe6b399","unresolved":false,"context_lines":[{"line_number":10,"context_line":"changes made go along, and are necessary to the good use of rpc calls"},{"line_number":11,"context_line":"with ovo."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Methods made calls to custom rpcs to make the change in bagpipe agent."},{"line_number":14,"context_line":"Currently, the methods have been enriched to call the ovo rpc, and"},{"line_number":15,"context_line":"pushing the ovo objects when needed in the bagpipe service driver."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f287b81_2b7c031f","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":70},"updated":"2017-09-01 12:05:01.000000000","message":"\"Currently custom RPCs are used to push information to the agent\"","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"640b45f0b00a4a4af7fa6d88db1d949e4fe6b399","unresolved":false,"context_lines":[{"line_number":11,"context_line":"with ovo."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Methods made calls to custom rpcs to make the change in bagpipe agent."},{"line_number":14,"context_line":"Currently, the methods have been enriched to call the ovo rpc, and"},{"line_number":15,"context_line":"pushing the ovo objects when needed in the bagpipe service driver."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Enriching defined methods of the bagpipe service driver is a shortcut"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7f287b81_8b8d3733","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":10},"updated":"2017-09-01 12:05:01.000000000","message":"In this change,","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"}],"networking_bgpvpn/neutron/services/service_drivers/bagpipe/bagpipe.py":[{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"fc0e9abdb7ca8fc4a7397490331a9d253b229a2e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"from oslo_log import helpers as log_helpers"},{"line_number":33,"context_line":"from oslo_log import log as logging"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"from networking_bagpipe.objects import bgpvpn as bgpvpn_object"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"from networking_bagpipe.agent.bgpvpn import rpc_client"},{"line_number":38,"context_line":"from neutron.api.rpc.callbacks import events as rpc_events"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f2577a7_d2128109","line":35,"range":{"start_line":35,"start_character":49,"end_line":35,"end_character":62},"updated":"2017-09-13 16:14:20.000000000","message":"plural ?","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"883bb410b2b8944d9c0f74a2dda5e0ce37e47ea4","unresolved":false,"context_lines":[{"line_number":417,"context_line":""},{"line_number":418,"context_line":"        self.agent_rpc.update_bgpvpn(context,"},{"line_number":419,"context_line":"                                     formated_bgpvpn)"},{"line_number":420,"context_line":"        assoc_obj \u003d bgpvpn_object.BGPVPNNetAssociation.get_objects("},{"line_number":421,"context_line":"            context, network_id\u003dnet_id, bgpvpn_id\u003dbgpvpn[\u0027id\u0027])"},{"line_number":422,"context_line":"        if not assoc_obj:"},{"line_number":423,"context_line":"            assoc_obj \u003d bgpvpn_object.BGPVPNRouterAssociation.get_objects("},{"line_number":424,"context_line":"                context, network_id\u003dnet_id, bgpvpn_id\u003dbgpvpn[\u0027id\u0027])"},{"line_number":425,"context_line":"        self._push_rpc.push(context, assoc_obj,"},{"line_number":426,"context_line":"                            rpc_events.UPDATED)"},{"line_number":427,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_8b63f7b1","line":424,"range":{"start_line":420,"start_character":0,"end_line":424,"end_character":67},"updated":"2017-09-01 12:02:14.000000000","message":"I think that the behavior of this method should be to return all associations: even if we currently prevent both type of association to exist for a given network, this is not the place where we want to enforce that. Making this method return all assoc will make it more future proof.","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"883bb410b2b8944d9c0f74a2dda5e0ce37e47ea4","unresolved":false,"context_lines":[{"line_number":427,"context_line":""},{"line_number":428,"context_line":"    def delete_net_assoc_precommit(self, context, net_assoc):"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"        assoc_obj \u003d bgpvpn_object.BGPVPNNetAssociation.get_objects("},{"line_number":431,"context_line":"            context, network_id\u003dnet_assoc[\u0027network_id\u0027],"},{"line_number":432,"context_line":"            bgpvpn_id\u003dnet_assoc[\u0027bgpvpn_id\u0027])"},{"line_number":433,"context_line":"        if not assoc_obj:"},{"line_number":434,"context_line":"            assoc_obj \u003d bgpvpn_object.BGPVPNRouterAssociation.get_objects("},{"line_number":435,"context_line":"                context, _pager\u003dNone, validate_filters\u003dTrue,"},{"line_number":436,"context_line":"                network_id\u003dnet_assoc[\u0027network_id\u0027])"},{"line_number":437,"context_line":""},{"line_number":438,"context_line":"        self._push_rpc.push(context, assoc_obj,"},{"line_number":439,"context_line":"                            rpc_events.DELETED)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_ab0353be","line":436,"range":{"start_line":430,"start_character":0,"end_line":436,"end_character":51},"updated":"2017-09-01 12:02:14.000000000","message":"This is common with L420-424, should be factored out into a function that can be reused.","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"883bb410b2b8944d9c0f74a2dda5e0ce37e47ea4","unresolved":false,"context_lines":[{"line_number":525,"context_line":"                self.create_net_assoc_postcommit(context, net_assoc)"},{"line_number":526,"context_line":""},{"line_number":527,"context_line":"    def delete_router_assoc_precommit(self, context, router_assoc):"},{"line_number":528,"context_line":"        ports \u003d get_router_ports(context, router_assoc[\u0027router_id\u0027])"},{"line_number":529,"context_line":"        if ports:"},{"line_number":530,"context_line":"            net_ids \u003d set([port[\u0027network_id\u0027] for port in ports])"},{"line_number":531,"context_line":"            for net_id in net_ids:"},{"line_number":532,"context_line":"                net_assoc \u003d {\u0027network_id\u0027: net_id,"},{"line_number":533,"context_line":"                             \u0027bgpvpn_id\u0027: router_assoc[\u0027bgpvpn_id\u0027]}"},{"line_number":534,"context_line":"                self.delete_net_assoc_precommit(context, net_assoc)"},{"line_number":535,"context_line":""},{"line_number":536,"context_line":"    def delete_router_assoc_postcommit(self, context, router_assoc):"},{"line_number":537,"context_line":"        ports \u003d get_router_ports(context, router_assoc[\u0027router_id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f287b81_ab2c734a","line":534,"range":{"start_line":528,"start_character":0,"end_line":534,"end_character":67},"updated":"2017-09-01 12:02:14.000000000","message":"This does not look correct: I would expect, in the case of a router association deletion, to have a single PUSH with a delet event containing the OVO object that itself contains the information about all the networks. The OVO objects seems to contain everything to do that, doesn\u0027t it ?","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"fc0e9abdb7ca8fc4a7397490331a9d253b229a2e","unresolved":false,"context_lines":[{"line_number":627,"context_line":"    def setup_rpc(self):"},{"line_number":628,"context_line":"        self._push_rpc \u003d resources_rpc.ResourcesPushRpcApi()"},{"line_number":629,"context_line":"        pull_registry.provide(_get_associations,"},{"line_number":630,"context_line":"                              resources_objects.BGPVPNAssociations)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f2577a7_5269f188","line":630,"range":{"start_line":630,"start_character":29,"end_line":630,"end_character":47},"updated":"2017-09-13 16:14:20.000000000","message":"shouldn\u0027t this be bgpvpn_objects ?","commit_id":"4267f9f25f55a9b09fe04fb8e61c3bd217bbf998"}]}
