)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"27cde09489cd49ed2def818892b29b8f64819e8e","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Found when I enabled test_extension_allowedaddress_pairs, where"},{"line_number":10,"context_line":"test_create_port_removed_allowed_address_pairs would fail due to the"},{"line_number":11,"context_line":"returned port still containing the original addresspair.  The cause is"},{"line_number":12,"context_line":"ovs simply not updating the port info being returned."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Moved checks and updating into method similar to what we do for"},{"line_number":15,"context_line":"extradhcpopts and security_groups."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"AAAAUH%2F%2FgKo%3D","line":12,"updated":"2014-01-13 09:14:00.000000000","message":"This paragraph refers to work in a commit which depends on this commit, so it\u0027s a forward looking statement!\nPerhaps just state which use case would fail.","commit_id":"7fcb64c87b66499f1ebb4419dd4c2644e061bb25"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"ee5663ef7539c27dd3ff422e0d7a80871c1d4fb9","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Found when I enabled test_extension_allowedaddress_pairs, where"},{"line_number":10,"context_line":"test_create_port_removed_allowed_address_pairs would fail due to the"},{"line_number":11,"context_line":"returned port still containing the original addresspair.  The cause is"},{"line_number":12,"context_line":"ovs simply not updating the port info being returned."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Moved checks and updating into method similar to what we do for"},{"line_number":15,"context_line":"extradhcpopts and security_groups."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"AAAAUH%2F%2BC2I%3D","line":12,"in_reply_to":"AAAAUH%2F%2FgKo%3D","updated":"2014-01-30 17:50:46.000000000","message":"This patch includes both the fix as well as enabling allowedaddress_pairs test.  I\u0027ll try to make the comment a bit more clear. tx","commit_id":"7fcb64c87b66499f1ebb4419dd4c2644e061bb25"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"27cde09489cd49ed2def818892b29b8f64819e8e","unresolved":false,"context_lines":[{"line_number":15,"context_line":"extradhcpopts and security_groups."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Required fixing is_address_pairs_attribute_updated(); was blowing up"},{"line_number":18,"context_line":"in utils.compare_elements() since we were passing (non-hashable) dicts."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: Ic871fea68fb9fcc862b1fd5ae5fe7aec540e4a30"},{"line_number":21,"context_line":"Partial-Bug: #1255150"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"AAAAUH%2F%2FgKU%3D","line":18,"updated":"2014-01-13 09:14:00.000000000","message":"Please consider rephrase (optional comment, take as advise only)\n\nThis required fixing is_address_pair_attribute_update as it was passing non-hashable entities (dicts) to utils.compare_elements.","commit_id":"7fcb64c87b66499f1ebb4419dd4c2644e061bb25"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"ee5663ef7539c27dd3ff422e0d7a80871c1d4fb9","unresolved":false,"context_lines":[{"line_number":15,"context_line":"extradhcpopts and security_groups."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Required fixing is_address_pairs_attribute_updated(); was blowing up"},{"line_number":18,"context_line":"in utils.compare_elements() since we were passing (non-hashable) dicts."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: Ic871fea68fb9fcc862b1fd5ae5fe7aec540e4a30"},{"line_number":21,"context_line":"Partial-Bug: #1255150"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":15,"id":"AAAAUH%2F%2BC2E%3D","line":18,"in_reply_to":"AAAAUH%2F%2FgKU%3D","updated":"2014-01-30 17:50:46.000000000","message":"I like your wording. Tx","commit_id":"7fcb64c87b66499f1ebb4419dd4c2644e061bb25"}],"neutron/db/allowedaddresspairs_db.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"e0a3bd457e3c26b4bd911d8cbb17b8610c155ced","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        third party controllers."},{"line_number":134,"context_line":"        \"\"\""},{"line_number":135,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        if new_pairs \u003d\u003d None:"},{"line_number":139,"context_line":"            new_pairs \u003d []"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAATn%2F95N4%3D","line":136,"updated":"2013-12-04 19:43:32.000000000","message":"Could do port.get(addr_pair.ADDRESS_PAIRS, [])  for each of these and then eliminate L138-141.\n\nCouldn\u0027t you just compare the two pairs, even if None values? IOW, eliminate lines 138-141?","commit_id":"d9d43e475a6ae55bc681463bb5a8d459b29f94bd"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"3fcc90ab523b638e6273dba72b3d94f17afa9be4","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        third party controllers."},{"line_number":134,"context_line":"        \"\"\""},{"line_number":135,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        if new_pairs \u003d\u003d None:"},{"line_number":139,"context_line":"            new_pairs \u003d []"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAATn%2F95FE%3D","line":136,"in_reply_to":"AAAATn%2F95N4%3D","updated":"2013-12-04 19:59:28.000000000","message":"I like the first suggestion. Done. \nSecond one I don\u0027t think works as I think new_pairs\u003d[] and old_pairs\u003dNone to be treated as identical.","commit_id":"d9d43e475a6ae55bc681463bb5a8d459b29f94bd"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"e0a3bd457e3c26b4bd911d8cbb17b8610c155ced","unresolved":false,"context_lines":[{"line_number":162,"context_line":"            self._process_create_allowed_address_pairs("},{"line_number":163,"context_line":"                context, updated_port,"},{"line_number":164,"context_line":"                port[\u0027port\u0027][addr_pair.ADDRESS_PAIRS])"},{"line_number":165,"context_line":"            need_notify \u003d True"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        return need_notify"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAATn%2F95NI%3D","line":165,"updated":"2013-12-04 19:43:32.000000000","message":"Could just return True here, eliminate L155 and return False on L167.","commit_id":"d9d43e475a6ae55bc681463bb5a8d459b29f94bd"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"3fcc90ab523b638e6273dba72b3d94f17afa9be4","unresolved":false,"context_lines":[{"line_number":162,"context_line":"            self._process_create_allowed_address_pairs("},{"line_number":163,"context_line":"                context, updated_port,"},{"line_number":164,"context_line":"                port[\u0027port\u0027][addr_pair.ADDRESS_PAIRS])"},{"line_number":165,"context_line":"            need_notify \u003d True"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        return need_notify"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAATn%2F95Fg%3D","line":165,"in_reply_to":"AAAATn%2F95NI%3D","updated":"2013-12-04 19:59:28.000000000","message":"Done","commit_id":"d9d43e475a6ae55bc681463bb5a8d459b29f94bd"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"c53b389b60e994d97cffcf95fb59219c1956f401","unresolved":false,"context_lines":[{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        updated_port[addr_pair.ADDRESS_PAIRS] \u003d new_pairs"},{"line_number":154,"context_line":"        if self.is_address_pairs_attribute_updated(original_port,"},{"line_number":155,"context_line":"                                                   port[\u0027port\u0027]):"},{"line_number":156,"context_line":"            self._delete_allowed_address_pairs(context, id)"},{"line_number":157,"context_line":"            self._process_create_allowed_address_pairs("},{"line_number":158,"context_line":"                context, updated_port,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F94dY%3D","line":155,"updated":"2013-12-04 22:21:27.000000000","message":"Any strong reason that this requires another routine?\nThe reason I am asking this question is that by doing so, the get routine is actually called twice, which doesn\u0027t seem to be necessary.","commit_id":"af46fa09e6193fb7d8866b4e863df056ea7fd6be"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"86bc4471196cd5feeb8a9700001fb1ed30e86e19","unresolved":false,"context_lines":[{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        updated_port[addr_pair.ADDRESS_PAIRS] \u003d new_pairs"},{"line_number":154,"context_line":"        if self.is_address_pairs_attribute_updated(original_port,"},{"line_number":155,"context_line":"                                                   port[\u0027port\u0027]):"},{"line_number":156,"context_line":"            self._delete_allowed_address_pairs(context, id)"},{"line_number":157,"context_line":"            self._process_create_allowed_address_pairs("},{"line_number":158,"context_line":"                context, updated_port,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F93wk%3D","line":155,"in_reply_to":"AAAATn%2F94dY%3D","updated":"2013-12-05 00:48:41.000000000","message":"Not a strong reason certainly.  If I moved the logic into update_address_pairs_on_port(), I\u0027d probably try to kill off is_address_pairs_attribute_updated() once I get to the ml2 and nec drivers that need the same fix as openvswitch is getting.  \n\nSeem reasonable? At some level, I\u0027m a bit ambivalent of an extra get() on this path, but its not that difficult to address since you saw it.","commit_id":"af46fa09e6193fb7d8866b4e863df056ea7fd6be"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"c53b389b60e994d97cffcf95fb59219c1956f401","unresolved":false,"context_lines":[{"line_number":156,"context_line":"            self._delete_allowed_address_pairs(context, id)"},{"line_number":157,"context_line":"            self._process_create_allowed_address_pairs("},{"line_number":158,"context_line":"                context, updated_port,"},{"line_number":159,"context_line":"                port[\u0027port\u0027][addr_pair.ADDRESS_PAIRS])"},{"line_number":160,"context_line":"            return True"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F94dM%3D","line":159,"updated":"2013-12-04 22:21:27.000000000","message":"is port[\u0027port\u0027][addr_pair.ADDRESS_PAIRS] the \u0027new_pairs\u0027?","commit_id":"af46fa09e6193fb7d8866b4e863df056ea7fd6be"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"86bc4471196cd5feeb8a9700001fb1ed30e86e19","unresolved":false,"context_lines":[{"line_number":156,"context_line":"            self._delete_allowed_address_pairs(context, id)"},{"line_number":157,"context_line":"            self._process_create_allowed_address_pairs("},{"line_number":158,"context_line":"                context, updated_port,"},{"line_number":159,"context_line":"                port[\u0027port\u0027][addr_pair.ADDRESS_PAIRS])"},{"line_number":160,"context_line":"            return True"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAATn%2F93wE%3D","line":159,"in_reply_to":"AAAATn%2F94dM%3D","updated":"2013-12-05 00:48:41.000000000","message":"Yes, I had noticed that at one point, fell out in one of my internal rewrites. :)","commit_id":"af46fa09e6193fb7d8866b4e863df056ea7fd6be"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"cd5758c28b1c0bfd085130e1ca3f42e16b3736aa","unresolved":false,"context_lines":[{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        This method returns a flag which indicates whether there is an update"},{"line_number":132,"context_line":"        and therefore a port update notification should be sent to agents or"},{"line_number":133,"context_line":"        third party controllers."},{"line_number":134,"context_line":"        \"\"\""},{"line_number":135,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS, [])"},{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS, [])"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F9r%2FI%3D","line":133,"updated":"2013-12-07 17:19:01.000000000","message":"\"Returns True if there is an update. This can be used to decide if a port update notification should be sent to agents or third party controllers.\"","commit_id":"00814fae02bfcec4f620cce779c32755e4e3c5e7"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"4c5535c125cd23418b28dee069ac9c21af6d29fd","unresolved":false,"context_lines":[{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        This method returns a flag which indicates whether there is an update"},{"line_number":132,"context_line":"        and therefore a port update notification should be sent to agents or"},{"line_number":133,"context_line":"        third party controllers."},{"line_number":134,"context_line":"        \"\"\""},{"line_number":135,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS, [])"},{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS, [])"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F9mmo%3D","line":133,"in_reply_to":"AAAATn%2F9r%2FI%3D","updated":"2013-12-09 19:13:47.000000000","message":"Done","commit_id":"00814fae02bfcec4f620cce779c32755e4e3c5e7"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"cd5758c28b1c0bfd085130e1ca3f42e16b3736aa","unresolved":false,"context_lines":[{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS, [])"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        if new_pairs !\u003d old_pairs:"},{"line_number":139,"context_line":"            return True"},{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"},{"line_number":141,"context_line":"        return False"},{"line_number":142,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F9r%2FQ%3D","line":139,"updated":"2013-12-07 17:19:01.000000000","message":"You could just\n\n    return new_pairs !\u003d old_pairs","commit_id":"00814fae02bfcec4f620cce779c32755e4e3c5e7"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"4c5535c125cd23418b28dee069ac9c21af6d29fd","unresolved":false,"context_lines":[{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS, [])"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        if new_pairs !\u003d old_pairs:"},{"line_number":139,"context_line":"            return True"},{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"},{"line_number":141,"context_line":"        return False"},{"line_number":142,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F9mmg%3D","line":139,"in_reply_to":"AAAATn%2F9r%2FQ%3D","updated":"2013-12-09 19:13:47.000000000","message":"Done","commit_id":"00814fae02bfcec4f620cce779c32755e4e3c5e7"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"cd5758c28b1c0bfd085130e1ca3f42e16b3736aa","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"},{"line_number":141,"context_line":"        return False"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"    def update_address_pairs_on_port(self, context, id, port,"},{"line_number":144,"context_line":"                                     original_port, updated_port):"},{"line_number":145,"context_line":"        \"\"\"Update allowed address pairs on port."},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F9r%2Bw%3D","line":143,"updated":"2013-12-07 17:19:01.000000000","message":"I am encouraging people to stop using \u0027id\u0027, which is a Python built-in. Please use a more descriptive name, like port_id.","commit_id":"00814fae02bfcec4f620cce779c32755e4e3c5e7"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"4c5535c125cd23418b28dee069ac9c21af6d29fd","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"},{"line_number":141,"context_line":"        return False"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"    def update_address_pairs_on_port(self, context, id, port,"},{"line_number":144,"context_line":"                                     original_port, updated_port):"},{"line_number":145,"context_line":"        \"\"\"Update allowed address pairs on port."},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F9mmc%3D","line":143,"in_reply_to":"AAAATn%2F9r%2Bw%3D","updated":"2013-12-09 19:13:47.000000000","message":"Done","commit_id":"00814fae02bfcec4f620cce779c32755e4e3c5e7"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"cd5758c28b1c0bfd085130e1ca3f42e16b3736aa","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        This method returns a flag which indicates request notification"},{"line_number":148,"context_line":"        is required and does not perform notification itself."},{"line_number":149,"context_line":"        It is because another changes for the port may require notification."},{"line_number":150,"context_line":"        \"\"\""},{"line_number":151,"context_line":"        new_pairs \u003d port[\u0027port\u0027].get(addr_pair.ADDRESS_PAIRS)"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F9r%2B0%3D","line":149,"updated":"2013-12-07 17:19:01.000000000","message":"\"Returns True if an update notification is required. Notification is not done here because other changes on the port may be needed before notification.\"","commit_id":"00814fae02bfcec4f620cce779c32755e4e3c5e7"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"4c5535c125cd23418b28dee069ac9c21af6d29fd","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        This method returns a flag which indicates request notification"},{"line_number":148,"context_line":"        is required and does not perform notification itself."},{"line_number":149,"context_line":"        It is because another changes for the port may require notification."},{"line_number":150,"context_line":"        \"\"\""},{"line_number":151,"context_line":"        new_pairs \u003d port[\u0027port\u0027].get(addr_pair.ADDRESS_PAIRS)"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F9mkk%3D","line":149,"in_reply_to":"AAAATn%2F9r%2B0%3D","updated":"2013-12-09 19:13:47.000000000","message":"Done","commit_id":"00814fae02bfcec4f620cce779c32755e4e3c5e7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9dad41d5e7db162d18df01f4fb30fb892867c699","unresolved":false,"context_lines":[{"line_number":141,"context_line":"    def update_address_pairs_on_port(self, context, port_id, port,"},{"line_number":142,"context_line":"                                     original_port, updated_port):"},{"line_number":143,"context_line":"        \"\"\"Update allowed address pairs on port."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        Returns True if an update notification is required. Notification"},{"line_number":146,"context_line":"        is not done here because other changes on the port may be needed"},{"line_number":147,"context_line":"        before notification."}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9loI%3D","line":144,"updated":"2013-12-09 22:28:06.000000000","message":"It is worth documented that this method is expected to call in a transaction.","commit_id":"a34133007cf7c6fc88505e48eb4b3cd1b6e9b711"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"9f2c58e9ff9cfe3a5ea22d51d238ca5953ae0f0d","unresolved":false,"context_lines":[{"line_number":141,"context_line":"    def update_address_pairs_on_port(self, context, port_id, port,"},{"line_number":142,"context_line":"                                     original_port, updated_port):"},{"line_number":143,"context_line":"        \"\"\"Update allowed address pairs on port."},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        Returns True if an update notification is required. Notification"},{"line_number":146,"context_line":"        is not done here because other changes on the port may be needed"},{"line_number":147,"context_line":"        before notification."}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9g98%3D","line":144,"in_reply_to":"AAAATn%2F9loI%3D","updated":"2013-12-10 18:01:24.000000000","message":"Done. Patch 12. Thank you Akihiro.","commit_id":"a34133007cf7c6fc88505e48eb4b3cd1b6e9b711"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"9dad41d5e7db162d18df01f4fb30fb892867c699","unresolved":false,"context_lines":[{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        Returns True if an update notification is required. Notification"},{"line_number":146,"context_line":"        is not done here because other changes on the port may be needed"},{"line_number":147,"context_line":"        before notification."},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        new_pairs \u003d port[\u0027port\u0027].get(addr_pair.ADDRESS_PAIRS)"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9log%3D","line":147,"updated":"2013-12-09 22:28:06.000000000","message":"\"other changes on the port may need notification\"","commit_id":"a34133007cf7c6fc88505e48eb4b3cd1b6e9b711"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"9f2c58e9ff9cfe3a5ea22d51d238ca5953ae0f0d","unresolved":false,"context_lines":[{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        Returns True if an update notification is required. Notification"},{"line_number":146,"context_line":"        is not done here because other changes on the port may be needed"},{"line_number":147,"context_line":"        before notification."},{"line_number":148,"context_line":"        \"\"\""},{"line_number":149,"context_line":"        new_pairs \u003d port[\u0027port\u0027].get(addr_pair.ADDRESS_PAIRS)"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"AAAATn%2F9g94%3D","line":147,"in_reply_to":"AAAATn%2F9log%3D","updated":"2013-12-10 18:01:24.000000000","message":"Done. Patch 12.","commit_id":"a34133007cf7c6fc88505e48eb4b3cd1b6e9b711"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"ba790c998a850662df31c5628d21fee0394e16a2","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        \"\"\""},{"line_number":150,"context_line":"        new_pairs \u003d port[\u0027port\u0027].get(addr_pair.ADDRESS_PAIRS)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        updated_port[addr_pair.ADDRESS_PAIRS] \u003d new_pairs"},{"line_number":153,"context_line":"        if self.is_address_pairs_attribute_updated(original_port,"},{"line_number":154,"context_line":"                                                   port[\u0027port\u0027]):"},{"line_number":155,"context_line":"            self._delete_allowed_address_pairs(context, port_id)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAUH%2F%2F53M%3D","line":152,"updated":"2014-01-07 00:54:08.000000000","message":"Can we move L.152 inside if-clause? updated_port already has  allowed_address_pairs attribute with old value, so we don\u0027t need to update it here. I think it is simpler and easier to understand after moving it.","commit_id":"7108434e9e5f038711bfa2b680a1d0c0692df0ca"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"40e98f6bf1ad29084559a00900417e1aee976118","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        \"\"\""},{"line_number":150,"context_line":"        new_pairs \u003d port[\u0027port\u0027].get(addr_pair.ADDRESS_PAIRS)"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"        updated_port[addr_pair.ADDRESS_PAIRS] \u003d new_pairs"},{"line_number":153,"context_line":"        if self.is_address_pairs_attribute_updated(original_port,"},{"line_number":154,"context_line":"                                                   port[\u0027port\u0027]):"},{"line_number":155,"context_line":"            self._delete_allowed_address_pairs(context, port_id)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAUH%2F%2F2ug%3D","line":152,"in_reply_to":"AAAAUH%2F%2F53M%3D","updated":"2014-01-07 16:44:40.000000000","message":"Hmmm... I thought I had a reason for doing it, but I don\u0027t see it right now and the full test suite is passing with your recommendation.  Done.","commit_id":"7108434e9e5f038711bfa2b680a1d0c0692df0ca"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"27cde09489cd49ed2def818892b29b8f64819e8e","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        third party controllers."},{"line_number":135,"context_line":"        \"\"\""},{"line_number":136,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":"        if new_pairs and not utils.compare_elements("},{"line_number":138,"context_line":"            port.get(addr_pair.ADDRESS_PAIRS), new_pairs):"},{"line_number":139,"context_line":"            return True"},{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F%2FgLE%3D","side":"PARENT","line":137,"updated":"2014-01-13 09:14:00.000000000","message":"Neutron API uses patch like semantics; the point of checking\n\nif new_pairs\n\nis that if the update request does not specify allowed address pairs they should not be updated at all.\nI think you should preserve this behavior","commit_id":"641e7c6214834c9379858ff4b7bb4f54569545b5"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d8dce0f61d55b8e0d4f60520ce50c6ad6370c62b","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        third party controllers."},{"line_number":135,"context_line":"        \"\"\""},{"line_number":136,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":"        if new_pairs and not utils.compare_elements("},{"line_number":138,"context_line":"            port.get(addr_pair.ADDRESS_PAIRS), new_pairs):"},{"line_number":139,"context_line":"            return True"},{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUX%2F%2FYLY%3D","side":"PARENT","line":137,"in_reply_to":"AAAAUH%2F%2BB4s%3D","updated":"2014-02-13 16:11:31.000000000","message":"In my understanding, empty addr_pair request [] and no addr_pair in a request are different. An empty list of addr_pair means to remove all allowed pair entries. No addr_pair attributes in a request means that addr_pair entries are not updated.\n\nThe behavior defined in a test is a right behavior.","commit_id":"641e7c6214834c9379858ff4b7bb4f54569545b5"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"cf69048d4114d335c81144abe2b46141f56c7dca","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        third party controllers."},{"line_number":135,"context_line":"        \"\"\""},{"line_number":136,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":"        if new_pairs and not utils.compare_elements("},{"line_number":138,"context_line":"            port.get(addr_pair.ADDRESS_PAIRS), new_pairs):"},{"line_number":139,"context_line":"            return True"},{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F%2BB4s%3D","side":"PARENT","line":137,"in_reply_to":"AAAAUH%2F%2BC4o%3D","updated":"2014-01-30 20:51:26.000000000","message":"Ah. Now I remember.  test_extension_allowed_addresspairs.test_create_port_remove_allowed_address_pairs() codifies that updating port request with addr_pair of  \u0027[]\u0027 turns into an update even though its empty.  \n\nThe \u0027if new_pairs\u0027 would fail out with this empty addr_pair request (and not do an update), but the test case seems to expect this behavior.  \n\nThoughts?","commit_id":"641e7c6214834c9379858ff4b7bb4f54569545b5"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"933e1e6e52022b7c242d58e1a8bee5f4be2b4d60","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        third party controllers."},{"line_number":135,"context_line":"        \"\"\""},{"line_number":136,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":"        if new_pairs and not utils.compare_elements("},{"line_number":138,"context_line":"            port.get(addr_pair.ADDRESS_PAIRS), new_pairs):"},{"line_number":139,"context_line":"            return True"},{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F%2BC4o%3D","side":"PARENT","line":137,"in_reply_to":"AAAAUH%2F%2FgLE%3D","updated":"2014-01-30 17:47:22.000000000","message":"OK, tx.   IIRC there\u0027s a test case that failed if I did so, but it may be that the testcase is wrong. Will investigate.","commit_id":"641e7c6214834c9379858ff4b7bb4f54569545b5"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"96a6b1f6a9e2c36e58bad4e3a56dd1178c9ea839","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        third party controllers."},{"line_number":135,"context_line":"        \"\"\""},{"line_number":136,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":"        if new_pairs and not utils.compare_elements("},{"line_number":138,"context_line":"            port.get(addr_pair.ADDRESS_PAIRS), new_pairs):"},{"line_number":139,"context_line":"            return True"},{"line_number":140,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUX%2F%2Bsok%3D","side":"PARENT","line":137,"in_reply_to":"AAAAUX%2F%2FYLY%3D","updated":"2014-02-20 22:11:53.000000000","message":"Thank you for confirming that Akihiro.  Will leave mostly as-is with understanding that [] really should trigger an update (the \u0027if\u0027 would have failed out). Will need to tweak the patch a bit to still make sure bailing on None to preserve desired no update in that case.","commit_id":"641e7c6214834c9379858ff4b7bb4f54569545b5"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"27cde09489cd49ed2def818892b29b8f64819e8e","unresolved":false,"context_lines":[{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS, [])"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"},{"line_number":139,"context_line":"        return new_pairs !\u003d old_pairs"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def update_address_pairs_on_port(self, context, port_id, port,"},{"line_number":142,"context_line":"                                     original_port, updated_port):"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F%2FgMg%3D","line":139,"updated":"2014-01-13 09:14:00.000000000","message":"This is probably an issue which occurred before as well, but this is not order-safe. For instance:\n\n\u003e\u003e\u003e a\u003d[{\u0027aa\u0027: 11}, {\u0027bb\u0027:22}]\n\n\u003e\u003e\u003e b\u003d[{\u0027bb\u0027: 22}, {\u0027aa\u0027:11}]\n\n\u003e\u003e\u003e a!\u003db\nTrue\n\n\u003e\u003e\u003e a\u003d\u003db\nFalse\n\n\u003e\u003e\u003e x\u003d{\u0027aa\u0027:11}\n\n\u003e\u003e\u003e y\u003d{\u0027bb\u0027:22}\n\n\u003e\u003e\u003e a\u003d[x, y]\n\n\u003e\u003e\u003e b\u003d[y, x]\n\n\u003e\u003e\u003e a\u003d\u003db\nFalse\n\n\u003e\u003e\u003e a!\u003db\nTrue","commit_id":"7fcb64c87b66499f1ebb4419dd4c2644e061bb25"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d8dce0f61d55b8e0d4f60520ce50c6ad6370c62b","unresolved":false,"context_lines":[{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS, [])"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"},{"line_number":139,"context_line":"        return new_pairs !\u003d old_pairs"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def update_address_pairs_on_port(self, context, port_id, port,"},{"line_number":142,"context_line":"                                     original_port, updated_port):"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUX%2F%2FYTI%3D","line":139,"in_reply_to":"AAAAUH%2F%2BC4k%3D","updated":"2014-02-13 16:11:31.000000000","message":"Can we use \"set\" to compare these two?","commit_id":"7fcb64c87b66499f1ebb4419dd4c2644e061bb25"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"96a6b1f6a9e2c36e58bad4e3a56dd1178c9ea839","unresolved":false,"context_lines":[{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS, [])"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"},{"line_number":139,"context_line":"        return new_pairs !\u003d old_pairs"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def update_address_pairs_on_port(self, context, port_id, port,"},{"line_number":142,"context_line":"                                     original_port, updated_port):"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUX%2F%2BfUU%3D","line":139,"in_reply_to":"AAAAUH%2F%2FgMg%3D","updated":"2014-02-20 22:11:53.000000000","message":"Finally got around to looking at this again and even coded up a test case with multiple addresses and then updating with swapped order.... but then I got to thinking that this would be an odd thing for a user to ever do...  seems an over-complication to the code.. if someone is doing an update they are presumably wanting to make an actual change.  Easy to check when exactly identical, but seems overly complicated to try to check the re-ordered case.    Thoughts??","commit_id":"7fcb64c87b66499f1ebb4419dd4c2644e061bb25"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"933e1e6e52022b7c242d58e1a8bee5f4be2b4d60","unresolved":false,"context_lines":[{"line_number":136,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS, [])"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        # Missing or unchanged address pairs in attributes mean no update"},{"line_number":139,"context_line":"        return new_pairs !\u003d old_pairs"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"    def update_address_pairs_on_port(self, context, port_id, port,"},{"line_number":142,"context_line":"                                     original_port, updated_port):"}],"source_content_type":"text/x-python","patch_set":15,"id":"AAAAUH%2F%2BC4k%3D","line":139,"in_reply_to":"AAAAUH%2F%2FgMg%3D","updated":"2014-01-30 17:47:22.000000000","message":"Heh. Yeah this occurs today. utils.compare_elements doesn\u0027t worry about sorting either.   Will look at creating a testcase and but also issue of whether other users of compare_elements can really rely upon the sorted assumption (maybe compare_elements needs to consider order)","commit_id":"7fcb64c87b66499f1ebb4419dd4c2644e061bb25"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"af446493cf9c09146ac81a2ed020ff316e28dacb","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        \"\"\""},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":"        if new_pairs \u003d\u003d None:"},{"line_number":138,"context_line":"            return False"},{"line_number":139,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":140,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"AAAAU3%2F%2F1Dc%3D","line":137,"updated":"2014-02-24 15:58:52.000000000","message":"if new_pairs is None:","commit_id":"8d0e0e1f7fe8a636e2c9f501ffff7ce8660a91d2"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"0e8e83bb2d4fe66fe720bae632f3b74a9687863a","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        \"\"\""},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"        new_pairs \u003d update_attrs.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":137,"context_line":"        if new_pairs \u003d\u003d None:"},{"line_number":138,"context_line":"            return False"},{"line_number":139,"context_line":"        old_pairs \u003d port.get(addr_pair.ADDRESS_PAIRS)"},{"line_number":140,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"AAAAU3%2F%2F0Ro%3D","line":137,"in_reply_to":"AAAAU3%2F%2F1Dc%3D","updated":"2014-02-24 16:52:43.000000000","message":"Doh. Done. Thanks","commit_id":"8d0e0e1f7fe8a636e2c9f501ffff7ce8660a91d2"},{"author":{"_account_id":6685,"name":"Baodong (Robert) Li","email":"baoli@cisco.com","username":"baoli"},"change_message_id":"50ae0b942e76bca04339438a416772e7d2fa630f","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        notification. This method is expected to be called within"},{"line_number":151,"context_line":"        a transaction."},{"line_number":152,"context_line":"        \"\"\""},{"line_number":153,"context_line":"        new_pairs \u003d port[\u0027port\u0027].get(addr_pair.ADDRESS_PAIRS)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"        if self.is_address_pairs_attribute_updated(original_port,"},{"line_number":156,"context_line":"                                                   port[\u0027port\u0027]):"}],"source_content_type":"text/x-python","patch_set":19,"id":"AAAAU3%2F%2Fd1s%3D","line":153,"updated":"2014-02-26 15:47:52.000000000","message":"nit: this can be moved inside the if statement as well.","commit_id":"9652fd648ea370118c2236785cb4614d3e87c770"}],"neutron/plugins/openvswitch/ovs_neutron_plugin.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d4ade6b5732e29f088895bf3f1a426f756e74527","unresolved":false,"context_lines":[{"line_number":591,"context_line":"            # copy values over - except fixed_ips as"},{"line_number":592,"context_line":"            # they\u0027ve already been processed"},{"line_number":593,"context_line":"            port[\u0027port\u0027].pop(\u0027fixed_ips\u0027, None)"},{"line_number":594,"context_line":"            updated_port.update(port[\u0027port\u0027])"},{"line_number":595,"context_line":"            if addr_pair.ADDRESS_PAIRS in port[\u0027port\u0027]:"},{"line_number":596,"context_line":"                self._delete_allowed_address_pairs(context, id)"},{"line_number":597,"context_line":"                self._process_create_allowed_address_pairs("}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2BREU%3D","line":594,"updated":"2013-11-28 06:12:14.000000000","message":"IMO it is better to copy only allowed_address_pair. All other attributes are added in each method (_process_portbindings_create_and_update, is_security_group_member_updated, ...).","commit_id":"25869b1777d18ba395a780fd9dd5b7f279dadce0"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"87b8c7b4411fa2261cbcae83066a128834b3fb3e","unresolved":false,"context_lines":[{"line_number":591,"context_line":"            # copy values over - except fixed_ips as"},{"line_number":592,"context_line":"            # they\u0027ve already been processed"},{"line_number":593,"context_line":"            port[\u0027port\u0027].pop(\u0027fixed_ips\u0027, None)"},{"line_number":594,"context_line":"            updated_port.update(port[\u0027port\u0027])"},{"line_number":595,"context_line":"            if addr_pair.ADDRESS_PAIRS in port[\u0027port\u0027]:"},{"line_number":596,"context_line":"                self._delete_allowed_address_pairs(context, id)"},{"line_number":597,"context_line":"                self._process_create_allowed_address_pairs("}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2BQ5Q%3D","line":594,"in_reply_to":"AAAATn%2F%2BREU%3D","updated":"2013-11-28 07:19:26.000000000","message":"+1","commit_id":"25869b1777d18ba395a780fd9dd5b7f279dadce0"},{"author":{"_account_id":9349,"name":"Jon Grimm","email":"jon.grimm@gmail.com","username":"jgrimm"},"change_message_id":"19bbf5d3d40453a3e671a6787417461050473b9f","unresolved":false,"context_lines":[{"line_number":591,"context_line":"            # copy values over - except fixed_ips as"},{"line_number":592,"context_line":"            # they\u0027ve already been processed"},{"line_number":593,"context_line":"            port[\u0027port\u0027].pop(\u0027fixed_ips\u0027, None)"},{"line_number":594,"context_line":"            updated_port.update(port[\u0027port\u0027])"},{"line_number":595,"context_line":"            if addr_pair.ADDRESS_PAIRS in port[\u0027port\u0027]:"},{"line_number":596,"context_line":"                self._delete_allowed_address_pairs(context, id)"},{"line_number":597,"context_line":"                self._process_create_allowed_address_pairs("}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAATn%2F%2BOno%3D","line":594,"in_reply_to":"AAAATn%2F%2BREU%3D","updated":"2013-11-28 16:06:59.000000000","message":"OK.  I\u0027d been following the pattern seen in nicira and in the testcase.  I\u0027ll take a look at doing so. Thanks.","commit_id":"25869b1777d18ba395a780fd9dd5b7f279dadce0"}]}
