)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f07e58a21e0a5e5d2c28f5545e762f90eae2efdb","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"In OVS Agent rpc_loop() resync mechanism clears the registered"},{"line_number":10,"context_line":"ports and rescans them again, and it might result in missing some"},{"line_number":11,"context_line":"\"port removed\" event and treat_device_remove() will not be called."},{"line_number":12,"context_line":"This fix adds resync flag instead of the clearing the current"},{"line_number":13,"context_line":"registered ports."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"baa041b7_12a42da4","line":11,"updated":"2015-04-02 14:18:15.000000000","message":"you probably meant treat_devices_removed.","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"a78b269ee6465ea7aed8e91bc212c8eb3e16b4e4","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"In OVS Agent rpc_loop() resync mechanism clears the registered"},{"line_number":10,"context_line":"ports and rescans them again, and it might result in missing some"},{"line_number":11,"context_line":"\"port removed\" event and treat_device_remove() will not be called."},{"line_number":12,"context_line":"This fix adds resync flag instead of the clearing the current"},{"line_number":13,"context_line":"registered ports."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9aa53dc9_656f6293","line":11,"in_reply_to":"baa041b7_12a42da4","updated":"2015-04-06 14:43:28.000000000","message":"Done","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"9aea985a7f27d805cde8ab0419e35decae8931fb","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"In OVS Agent rpc_loop() resync mechanism clears the registered ports and"},{"line_number":10,"context_line":"rescans them again, and it might result in missing some \"port removed\""},{"line_number":11,"context_line":"event and treat_devices_removed will not be called."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This fix rescans the newly updated ports when resync mechanism called,"},{"line_number":14,"context_line":"without clearing the current registered ports."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"fa32b979_15fcd0b6","line":11,"updated":"2015-06-17 10:28:02.000000000","message":"incase treat_devices_removed failed,\ni\u0027m not sure if it\u0027s desirable to keep retrying.","commit_id":"c029418dd69b9de1766896b8049ff8a12929549c"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"e795ec3aebe8d18a58b8fb505ad3683e7c1316fe","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"In OVS Agent rpc_loop() resync mechanism clears the registered ports and"},{"line_number":10,"context_line":"rescans them again, and it might result in missing some \"port removed\""},{"line_number":11,"context_line":"event and treat_devices_removed will not be called."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This fix rescans the newly updated ports when resync mechanism called,"},{"line_number":14,"context_line":"without clearing the current registered ports."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"fa32b979_58d0a8c9","line":11,"in_reply_to":"fa32b979_15fcd0b6","updated":"2015-06-22 09:37:05.000000000","message":"when treat devices fails then we need to resync with plugin.\nIn case of resync it scans all the ports, instead returning all the ports in this patch we are returning the set of ports which got failed to process.","commit_id":"c029418dd69b9de1766896b8049ff8a12929549c"}],"neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"b1a9d3821badb6c871f5c4301cf4a49601c7b2d8","unresolved":false,"context_lines":[{"line_number":1548,"context_line":"                        LOG.debug(\"Starting to process devices in:%s\","},{"line_number":1549,"context_line":"                                  port_info)"},{"line_number":1550,"context_line":"                        # If treat devices fails - must resync with plugin"},{"line_number":1551,"context_line":"                        sync |\u003d self.process_network_ports(port_info,"},{"line_number":1552,"context_line":"                                                           ovs_restarted)"},{"line_number":1553,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1554,"context_line":"                                  \"ports processed. Elapsed:%(elapsed).3f\","}],"source_content_type":"text/x-python","patch_set":29,"id":"ba3cc151_15c2ed33","line":1551,"updated":"2015-06-30 04:47:07.000000000","message":"I\u0027m not sure why is the change needed. I guess that sync is always False according to L.1542.","commit_id":"a0e24a97e40550875ea6d6bebf80226895df5f77"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"26e5827435b6a5c0576ad895212c37845c98083c","unresolved":false,"context_lines":[{"line_number":1548,"context_line":"                        LOG.debug(\"Starting to process devices in:%s\","},{"line_number":1549,"context_line":"                                  port_info)"},{"line_number":1550,"context_line":"                        # If treat devices fails - must resync with plugin"},{"line_number":1551,"context_line":"                        sync |\u003d self.process_network_ports(port_info,"},{"line_number":1552,"context_line":"                                                           ovs_restarted)"},{"line_number":1553,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1554,"context_line":"                                  \"ports processed. Elapsed:%(elapsed).3f\","}],"source_content_type":"text/x-python","patch_set":29,"id":"ba3cc151_6b0cbc94","line":1551,"in_reply_to":"ba3cc151_15c2ed33","updated":"2015-06-30 06:14:44.000000000","message":"Yes Hirofumi, sync will be always False. So this change is not required.\n\nDone","commit_id":"a0e24a97e40550875ea6d6bebf80226895df5f77"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"17edfff7b81c44d77ff3437451db032698227056","unresolved":false,"context_lines":[{"line_number":1059,"context_line":"                port_moves.append(name)"},{"line_number":1060,"context_line":"        return port_moves"},{"line_number":1061,"context_line":""},{"line_number":1062,"context_line":"    def _get_port_info(self, registered_ports, cur_ports, sync):"},{"line_number":1063,"context_line":"        port_info \u003d {\u0027current\u0027: cur_ports}"},{"line_number":1064,"context_line":"        # FIXME(salv-orlando): It\u0027s not really necessary to return early"},{"line_number":1065,"context_line":"        # if nothing has changed."}],"source_content_type":"text/x-python","patch_set":33,"id":"3a50d1a3_2011a95d","line":1062,"updated":"2015-08-01 22:55:03.000000000","message":"in the context of this function, the parameter name \u0027sync\u0027 doesn\u0027t really make any sense to me. can we be more descriptive like readd_registered_ports?","commit_id":"46723e0685b404a496fabfd8c5580695769fd592"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c6fae8efa769ebd91aa79578945eba52a04a0316","unresolved":false,"context_lines":[{"line_number":1176,"context_line":"    def scan_ports(self, registered_ports, sync, updated_ports\u003dNone):"},{"line_number":1177,"context_line":"        cur_ports \u003d self.int_br.get_vif_port_set()"},{"line_number":1178,"context_line":"        self.int_br_device_count \u003d len(cur_ports)"},{"line_number":1179,"context_line":"        port_info \u003d self._get_port_info(registered_ports, cur_ports, sync)"},{"line_number":1180,"context_line":"        if updated_ports is None:"},{"line_number":1181,"context_line":"            updated_ports \u003d set()"},{"line_number":1182,"context_line":"        updated_ports.update(self.check_changed_vlans())"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_de8ef5cf","line":1179,"updated":"2015-09-08 23:10:26.000000000","message":"nit:  For readability, I think I\u0027d prefer passing readd_registered_ports as a kwarg:\n\n  port_info \u003d self._get_port_info(registered_ports, cur_ports,\n                                  readd_registered_ports\u003dsync)\n\nIn my mind, it just helps me connect the two.","commit_id":"d6d0853be34ce783b133a9c39aeb608033f3073b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c6fae8efa769ebd91aa79578945eba52a04a0316","unresolved":false,"context_lines":[{"line_number":1635,"context_line":"            if sync:"},{"line_number":1636,"context_line":"                LOG.info(_LI(\"Agent out of sync with plugin!\"))"},{"line_number":1637,"context_line":"                polling_manager.force_polling()"},{"line_number":1638,"context_line":"                consecutive_resyncs \u003d consecutive_resyncs + 1"},{"line_number":1639,"context_line":"                if consecutive_resyncs \u003e\u003d constants.MAX_DEVICE_RETRIES:"},{"line_number":1640,"context_line":"                    LOG.warn(_LW(\"Clearing cache of registered ports, retrials\""},{"line_number":1641,"context_line":"                                 \" to resync were \u003e %s\"),"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_5ed425bc","line":1638,"updated":"2015-09-08 23:10:26.000000000","message":"nit:  consecutive_resyncs +\u003d 1","commit_id":"d6d0853be34ce783b133a9c39aeb608033f3073b"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f07e58a21e0a5e5d2c28f5545e762f90eae2efdb","unresolved":false,"context_lines":[{"line_number":1003,"context_line":"            updated_ports \u003d set()"},{"line_number":1004,"context_line":"        updated_ports.update(self.check_changed_vlans(registered_ports))"},{"line_number":1005,"context_line":"        if updated_ports:"},{"line_number":1006,"context_line":"            # Some updated ports might have been removed in the"},{"line_number":1007,"context_line":"            # meanwhile, and therefore should not be processed."},{"line_number":1008,"context_line":"            # In this case the updated port won\u0027t be found among"},{"line_number":1009,"context_line":"            # current ports."}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_8d31420e","line":1006,"updated":"2015-04-02 14:18:15.000000000","message":"I wonder whether that case should be handled for ancillary ports too.","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f07e58a21e0a5e5d2c28f5545e762f90eae2efdb","unresolved":false,"context_lines":[{"line_number":1050,"context_line":"                    changed_ports.add(port)"},{"line_number":1051,"context_line":"        return changed_ports"},{"line_number":1052,"context_line":""},{"line_number":1053,"context_line":"    def scan_ancillary_ports(self, registered_ports, sync\u003dFalse):"},{"line_number":1054,"context_line":"        cur_ports \u003d set()"},{"line_number":1055,"context_line":"        for bridge in self.ancillary_brs:"},{"line_number":1056,"context_line":"            cur_ports |\u003d bridge.get_vif_port_set()"}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_4857a802","line":1053,"updated":"2015-04-02 14:18:15.000000000","message":"I am not passionate about the way we have two methods, for general and ancillary ports respectively, that are pretty the same. We introduce even more copy-pasted code with the patch.\n\nI suppose there is an easy way to refactor those methods to avoid duplication. Let\u0027s say we implement a method that scans ports for a bridge, and then call it from scan_ports(). As for scan_ancillary_ports(), it will just call that same method for each ancillary bridge and merge the resulting ports into single dictionary.\n\nWill it avoid duplication? I suppose yes.","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"a78b269ee6465ea7aed8e91bc212c8eb3e16b4e4","unresolved":false,"context_lines":[{"line_number":1050,"context_line":"                    changed_ports.add(port)"},{"line_number":1051,"context_line":"        return changed_ports"},{"line_number":1052,"context_line":""},{"line_number":1053,"context_line":"    def scan_ancillary_ports(self, registered_ports, sync\u003dFalse):"},{"line_number":1054,"context_line":"        cur_ports \u003d set()"},{"line_number":1055,"context_line":"        for bridge in self.ancillary_brs:"},{"line_number":1056,"context_line":"            cur_ports |\u003d bridge.get_vif_port_set()"}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_8099c021","line":1053,"in_reply_to":"baa041b7_4857a802","updated":"2015-04-06 14:43:28.000000000","message":"Done","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f07e58a21e0a5e5d2c28f5545e762f90eae2efdb","unresolved":false,"context_lines":[{"line_number":1425,"context_line":"            polling_manager \u003d polling.AlwaysPoll()"},{"line_number":1426,"context_line":""},{"line_number":1427,"context_line":"        sync \u003d True"},{"line_number":1428,"context_line":"        resync \u003d False"},{"line_number":1429,"context_line":"        ports \u003d set()"},{"line_number":1430,"context_line":"        updated_ports_copy \u003d set()"},{"line_number":1431,"context_line":"        ancillary_ports \u003d set()"}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_882c904b","line":1428,"updated":"2015-04-02 14:18:15.000000000","message":"nit: instead of having resync reset here and at the end of the loop, just do it once right at the start of the loop.","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"a78b269ee6465ea7aed8e91bc212c8eb3e16b4e4","unresolved":false,"context_lines":[{"line_number":1425,"context_line":"            polling_manager \u003d polling.AlwaysPoll()"},{"line_number":1426,"context_line":""},{"line_number":1427,"context_line":"        sync \u003d True"},{"line_number":1428,"context_line":"        resync \u003d False"},{"line_number":1429,"context_line":"        ports \u003d set()"},{"line_number":1430,"context_line":"        updated_ports_copy \u003d set()"},{"line_number":1431,"context_line":"        ancillary_ports \u003d set()"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_a20d6039","line":1428,"in_reply_to":"baa041b7_882c904b","updated":"2015-04-06 14:43:28.000000000","message":"Done","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"239aecd9e32af88458eaa9f3a85d9a5b65bcbaf5","unresolved":false,"context_lines":[{"line_number":1524,"context_line":"            LOG.debug(\"Agent rpc_loop - iteration:%d started\","},{"line_number":1525,"context_line":"                      self.iter_num)"},{"line_number":1526,"context_line":"            if sync:"},{"line_number":1527,"context_line":"                # Sync flag is used for the signaling that we need to scan"},{"line_number":1528,"context_line":"                # all ports and sync with server."},{"line_number":1529,"context_line":"                # Resync variable is used for the cumulating the current state"},{"line_number":1530,"context_line":"                # in case we need to sync with server. In the end of each"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aaa499b_3a28eae1","line":1527,"updated":"2015-04-14 22:12:07.000000000","message":"I can\u0027t see why you have to introduce a second flag \u0027resync\u0027 , the code would work the way it was before. Am I missing something?","commit_id":"60f7ec5071ae537b04edb1a73ea23214810685f2"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"52c7f2d8f3c78f58da6774839906cdafe8ffb1d5","unresolved":false,"context_lines":[{"line_number":1523,"context_line":"                                  port_info)"},{"line_number":1524,"context_line":"                        # If treat devices fails - must resync with plugin"},{"line_number":1525,"context_line":"                        resync |\u003d self.process_network_ports(port_info,"},{"line_number":1526,"context_line":"                                                             ovs_restarted)"},{"line_number":1527,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1528,"context_line":"                                  \"ports processed. Elapsed:%(elapsed).3f\","},{"line_number":1529,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"}],"source_content_type":"text/x-python","patch_set":12,"id":"7a016987_e72654b9","line":1526,"updated":"2015-05-28 03:52:58.000000000","message":"@Aman: Could you please explain me in which scenario the resync will be False with some output if possible.\n\nI would like to see the difference between the output of existing code and proposed changes.\n\nThanks in Advance :)","commit_id":"820cc43250f9de1c124132b1d7fb169e5a103b21"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"cc7943e919a1daf9d21974994dcedec9fd9f4758","unresolved":false,"context_lines":[{"line_number":1033,"context_line":"            port_info[\u0027added\u0027] \u003d cur_ports"},{"line_number":1034,"context_line":"        else:"},{"line_number":1035,"context_line":"            port_info[\u0027added\u0027] \u003d cur_ports - registered_ports"},{"line_number":1036,"context_line":"        # Remove all the known ports not found on the integration bridge"},{"line_number":1037,"context_line":"        port_info[\u0027removed\u0027] \u003d registered_ports - cur_ports"},{"line_number":1038,"context_line":"        return port_info"},{"line_number":1039,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"7a016987_1a21bb4d","line":1036,"updated":"2015-05-28 12:38:21.000000000","message":"The comment is misleading, these port are not going to be removed, the agent just detects that have been removed. I know this comment was there before but since you are touching this code, would you mind fixing it?","commit_id":"1784c8e6ebabd20aee6880a2ae56793725e33229"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"628eb6d08e137f139be9e1f583bcb089779271a9","unresolved":false,"context_lines":[{"line_number":1033,"context_line":"            port_info[\u0027added\u0027] \u003d cur_ports"},{"line_number":1034,"context_line":"        else:"},{"line_number":1035,"context_line":"            port_info[\u0027added\u0027] \u003d cur_ports - registered_ports"},{"line_number":1036,"context_line":"        # Remove all the known ports not found on the integration bridge"},{"line_number":1037,"context_line":"        port_info[\u0027removed\u0027] \u003d registered_ports - cur_ports"},{"line_number":1038,"context_line":"        return port_info"},{"line_number":1039,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"5afe65bd_52abee89","line":1036,"in_reply_to":"7a016987_1a21bb4d","updated":"2015-06-02 12:35:12.000000000","message":"Done","commit_id":"1784c8e6ebabd20aee6880a2ae56793725e33229"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"cc7943e919a1daf9d21974994dcedec9fd9f4758","unresolved":false,"context_lines":[{"line_number":1513,"context_line":"                              \"port information retrieved. \""},{"line_number":1514,"context_line":"                              \"Elapsed:%(elapsed).3f\","},{"line_number":1515,"context_line":"                              {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1516,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1517,"context_line":"                    # Secure and wire/unwire VIFs and update their status"},{"line_number":1518,"context_line":"                    # on Neutron server"},{"line_number":1519,"context_line":"                    if (self._port_info_has_changes(port_info) or"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a016987_fac93f7a","line":1516,"updated":"2015-05-28 12:38:21.000000000","message":"idea: you could move here scan_ancillary_ports (basically lines 1538-1546) , that way you can use only one flag instead of having resync and sync, that would simplify the code a bit.","commit_id":"1784c8e6ebabd20aee6880a2ae56793725e33229"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"70ba6e01ac2bd15758c987250a02f28c6d16c3eb","unresolved":false,"context_lines":[{"line_number":1513,"context_line":"                              \"port information retrieved. \""},{"line_number":1514,"context_line":"                              \"Elapsed:%(elapsed).3f\","},{"line_number":1515,"context_line":"                              {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1516,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1517,"context_line":"                    # Secure and wire/unwire VIFs and update their status"},{"line_number":1518,"context_line":"                    # on Neutron server"},{"line_number":1519,"context_line":"                    if (self._port_info_has_changes(port_info) or"}],"source_content_type":"text/x-python","patch_set":14,"id":"5afe65bd_986eee2d","line":1516,"in_reply_to":"5afe65bd_1d42273f","updated":"2015-06-03 13:14:34.000000000","message":"you\u0027d have to use a different variable for the ancillary ports, which makes sense I think and it would be more clear than having 2 flags for handling the resync","commit_id":"1784c8e6ebabd20aee6880a2ae56793725e33229"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"fc2be5f7f59b20f1bec3695bce60368426907ef6","unresolved":false,"context_lines":[{"line_number":1513,"context_line":"                              \"port information retrieved. \""},{"line_number":1514,"context_line":"                              \"Elapsed:%(elapsed).3f\","},{"line_number":1515,"context_line":"                              {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1516,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1517,"context_line":"                    # Secure and wire/unwire VIFs and update their status"},{"line_number":1518,"context_line":"                    # on Neutron server"},{"line_number":1519,"context_line":"                    if (self._port_info_has_changes(port_info) or"}],"source_content_type":"text/x-python","patch_set":14,"id":"3afb71cf_cab45c36","line":1516,"in_reply_to":"5afe65bd_986eee2d","updated":"2015-06-09 12:23:41.000000000","message":"Done","commit_id":"1784c8e6ebabd20aee6880a2ae56793725e33229"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"628eb6d08e137f139be9e1f583bcb089779271a9","unresolved":false,"context_lines":[{"line_number":1513,"context_line":"                              \"port information retrieved. \""},{"line_number":1514,"context_line":"                              \"Elapsed:%(elapsed).3f\","},{"line_number":1515,"context_line":"                              {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1516,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1517,"context_line":"                    # Secure and wire/unwire VIFs and update their status"},{"line_number":1518,"context_line":"                    # on Neutron server"},{"line_number":1519,"context_line":"                    if (self._port_info_has_changes(port_info) or"}],"source_content_type":"text/x-python","patch_set":14,"id":"5afe65bd_1d42273f","line":1516,"in_reply_to":"7a016987_fac93f7a","updated":"2015-06-02 12:35:12.000000000","message":"Not sure, if you have considered the port_info because if you move that block of code here, the port_info will be meshed up with regular(br-int) and ancillary(br-ex) bridges current ports.","commit_id":"1784c8e6ebabd20aee6880a2ae56793725e33229"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"dc6d07ed0df1ca2a05cb88cd7e9d2a75e7401604","unresolved":false,"context_lines":[{"line_number":1538,"context_line":"                                  \"ancillary port info retrieved. \""},{"line_number":1539,"context_line":"                                  \"Elapsed:%(elapsed).3f\","},{"line_number":1540,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1541,"context_line":"                                   \u0027elapsed\u0027: time.time() - start})"},{"line_number":1542,"context_line":"                    # Secure and wire/unwire VIFs and update their status"},{"line_number":1543,"context_line":"                    # on Neutron server"},{"line_number":1544,"context_line":"                    if (self._port_info_has_changes(port_info) or"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_4028449a","line":1541,"updated":"2015-06-09 14:47:51.000000000","message":"you should set here sync to False. This is the point where the port scanning is over and the port processing starts. The port scanning uses sync to know which ports to consider as newly added ports. The port processing will set sync to True if an error occurs.","commit_id":"a54b30e7bb8b048f4051c0b3957f0d6719375b30"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"2dab96ae049906181773740393f0e3025d453e32","unresolved":false,"context_lines":[{"line_number":1538,"context_line":"                                  \"ancillary port info retrieved. \""},{"line_number":1539,"context_line":"                                  \"Elapsed:%(elapsed).3f\","},{"line_number":1540,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1541,"context_line":"                                   \u0027elapsed\u0027: time.time() - start})"},{"line_number":1542,"context_line":"                    # Secure and wire/unwire VIFs and update their status"},{"line_number":1543,"context_line":"                    # on Neutron server"},{"line_number":1544,"context_line":"                    if (self._port_info_has_changes(port_info) or"}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_df0e313a","line":1541,"in_reply_to":"3afb71cf_4028449a","updated":"2015-06-10 05:40:04.000000000","message":"Done","commit_id":"a54b30e7bb8b048f4051c0b3957f0d6719375b30"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"dc6d07ed0df1ca2a05cb88cd7e9d2a75e7401604","unresolved":false,"context_lines":[{"line_number":1562,"context_line":"                    ports \u003d port_info[\u0027current\u0027]"},{"line_number":1563,"context_line":""},{"line_number":1564,"context_line":"                    if self.ancillary_brs:"},{"line_number":1565,"context_line":"                        if anci_port_info:"},{"line_number":1566,"context_line":"                            sync |\u003d self.process_ancillary_network_ports("},{"line_number":1567,"context_line":"                                anci_port_info)"},{"line_number":1568,"context_line":"                            LOG.debug(\"Agent rpc_loop - iteration: \""}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_001fecb7","line":1565,"updated":"2015-06-09 14:47:51.000000000","message":"this check is useless, it\u0027s going to be always true.","commit_id":"a54b30e7bb8b048f4051c0b3957f0d6719375b30"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"2dab96ae049906181773740393f0e3025d453e32","unresolved":false,"context_lines":[{"line_number":1562,"context_line":"                    ports \u003d port_info[\u0027current\u0027]"},{"line_number":1563,"context_line":""},{"line_number":1564,"context_line":"                    if self.ancillary_brs:"},{"line_number":1565,"context_line":"                        if anci_port_info:"},{"line_number":1566,"context_line":"                            sync |\u003d self.process_ancillary_network_ports("},{"line_number":1567,"context_line":"                                anci_port_info)"},{"line_number":1568,"context_line":"                            LOG.debug(\"Agent rpc_loop - iteration: \""}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_5fbec165","line":1565,"in_reply_to":"3afb71cf_001fecb7","updated":"2015-06-10 05:40:04.000000000","message":"Done","commit_id":"a54b30e7bb8b048f4051c0b3957f0d6719375b30"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"dc6d07ed0df1ca2a05cb88cd7e9d2a75e7401604","unresolved":false,"context_lines":[{"line_number":1587,"context_line":"                    self.updated_ports |\u003d updated_ports_copy"},{"line_number":1588,"context_line":"                    sync \u003d True"},{"line_number":1589,"context_line":""},{"line_number":1590,"context_line":"            else:"},{"line_number":1591,"context_line":"                sync \u003d False"},{"line_number":1592,"context_line":"            self.loop_count_and_wait(start, port_stats)"},{"line_number":1593,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_a0f5b857","line":1590,"updated":"2015-06-09 14:47:51.000000000","message":"this doesn\u0027t seem right, it\u0027s going to set the sync flag to \"False\" if the agent has no updates and if ovs was not restarted.","commit_id":"a54b30e7bb8b048f4051c0b3957f0d6719375b30"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"2dab96ae049906181773740393f0e3025d453e32","unresolved":false,"context_lines":[{"line_number":1587,"context_line":"                    self.updated_ports |\u003d updated_ports_copy"},{"line_number":1588,"context_line":"                    sync \u003d True"},{"line_number":1589,"context_line":""},{"line_number":1590,"context_line":"            else:"},{"line_number":1591,"context_line":"                sync \u003d False"},{"line_number":1592,"context_line":"            self.loop_count_and_wait(start, port_stats)"},{"line_number":1593,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3afb71cf_7f7cddb4","line":1590,"in_reply_to":"3afb71cf_a0f5b857","updated":"2015-06-10 05:40:04.000000000","message":"Done","commit_id":"a54b30e7bb8b048f4051c0b3957f0d6719375b30"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"18b2cb520cbbe5d730f5687aaf02cd51a13f0e86","unresolved":false,"context_lines":[{"line_number":1051,"context_line":"        return port_moves"},{"line_number":1052,"context_line":""},{"line_number":1053,"context_line":"    def _get_port_info(self, registered_ports, cur_ports, port_info,"},{"line_number":1054,"context_line":"                       sync\u003dFalse):"},{"line_number":1055,"context_line":"        # FIXME(salv-orlando): It\u0027s not really necessary to return early"},{"line_number":1056,"context_line":"        # if nothing has changed."},{"line_number":1057,"context_line":"        if not sync and cur_ports \u003d\u003d registered_ports:"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_289f76b5","line":1054,"updated":"2015-06-16 08:39:46.000000000","message":"nit: currently there are no cases when sync\u003d argument is not passed, so you can remove \u003dFalse default value specification.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"43bdeb51332f574f40836e0f8e8dfabc54cf7ad0","unresolved":false,"context_lines":[{"line_number":1051,"context_line":"        return port_moves"},{"line_number":1052,"context_line":""},{"line_number":1053,"context_line":"    def _get_port_info(self, registered_ports, cur_ports, port_info,"},{"line_number":1054,"context_line":"                       sync\u003dFalse):"},{"line_number":1055,"context_line":"        # FIXME(salv-orlando): It\u0027s not really necessary to return early"},{"line_number":1056,"context_line":"        # if nothing has changed."},{"line_number":1057,"context_line":"        if not sync and cur_ports \u003d\u003d registered_ports:"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_88b1e291","line":1054,"in_reply_to":"fa32b979_289f76b5","updated":"2015-06-16 09:07:21.000000000","message":"Done","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"18b2cb520cbbe5d730f5687aaf02cd51a13f0e86","unresolved":false,"context_lines":[{"line_number":1109,"context_line":"                    changed_ports.add(port)"},{"line_number":1110,"context_line":"        return changed_ports"},{"line_number":1111,"context_line":""},{"line_number":1112,"context_line":"    def scan_ancillary_ports(self, registered_ports, sync\u003dFalse):"},{"line_number":1113,"context_line":"        cur_ports \u003d set()"},{"line_number":1114,"context_line":"        for bridge in self.ancillary_brs:"},{"line_number":1115,"context_line":"            cur_ports |\u003d bridge.get_vif_port_set()"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_48043abf","line":1112,"updated":"2015-06-16 08:39:46.000000000","message":"I feel that the change of making scan_ancillary_ports and scan_ports to use the same helper _get_port_info method constitutes a separate preparation step refactoring patch.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"43bdeb51332f574f40836e0f8e8dfabc54cf7ad0","unresolved":false,"context_lines":[{"line_number":1109,"context_line":"                    changed_ports.add(port)"},{"line_number":1110,"context_line":"        return changed_ports"},{"line_number":1111,"context_line":""},{"line_number":1112,"context_line":"    def scan_ancillary_ports(self, registered_ports, sync\u003dFalse):"},{"line_number":1113,"context_line":"        cur_ports \u003d set()"},{"line_number":1114,"context_line":"        for bridge in self.ancillary_brs:"},{"line_number":1115,"context_line":"            cur_ports |\u003d bridge.get_vif_port_set()"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_a3f5e7cb","line":1112,"in_reply_to":"fa32b979_48043abf","updated":"2015-06-16 09:07:21.000000000","message":"In PS3 you only suggested to do refactoring to avoid duplication.\nPlease check this\nhttps://review.openstack.org/#/c/165023/3/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a09f3bd2ad1f85383a340f718ead499b4e41598c","unresolved":false,"context_lines":[{"line_number":1109,"context_line":"                    changed_ports.add(port)"},{"line_number":1110,"context_line":"        return changed_ports"},{"line_number":1111,"context_line":""},{"line_number":1112,"context_line":"    def scan_ancillary_ports(self, registered_ports, sync\u003dFalse):"},{"line_number":1113,"context_line":"        cur_ports \u003d set()"},{"line_number":1114,"context_line":"        for bridge in self.ancillary_brs:"},{"line_number":1115,"context_line":"            cur_ports |\u003d bridge.get_vif_port_set()"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_3604b448","line":1112,"in_reply_to":"fa32b979_a3f5e7cb","updated":"2015-06-16 10:23:41.000000000","message":"Yes, surely I did. Though it does not mean it should be in the same patch. You can split the patch for easier review.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"18b2cb520cbbe5d730f5687aaf02cd51a13f0e86","unresolved":false,"context_lines":[{"line_number":1115,"context_line":"            cur_ports |\u003d bridge.get_vif_port_set()"},{"line_number":1116,"context_line":"        port_info \u003d {\u0027current\u0027: cur_ports}"},{"line_number":1117,"context_line":""},{"line_number":1118,"context_line":"        return self._get_port_info(registered_ports, cur_ports, port_info,"},{"line_number":1119,"context_line":"                                   sync)"},{"line_number":1120,"context_line":""},{"line_number":1121,"context_line":"    def treat_vif_port(self, vif_port, port_id, network_id, network_type,"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_e8718ea9","line":1118,"updated":"2015-06-16 08:39:46.000000000","message":"The way it\u0027s implemented now, it does not give the whole port info to the caller, but merely populated it with added, removed ports. Why not moving port_info dict creation into the method, and avoid passing port_info dict as an argument?","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"d7c843a22674c98a1d2e3d3889db1900db717e7a","unresolved":false,"context_lines":[{"line_number":1115,"context_line":"            cur_ports |\u003d bridge.get_vif_port_set()"},{"line_number":1116,"context_line":"        port_info \u003d {\u0027current\u0027: cur_ports}"},{"line_number":1117,"context_line":""},{"line_number":1118,"context_line":"        return self._get_port_info(registered_ports, cur_ports, port_info,"},{"line_number":1119,"context_line":"                                   sync)"},{"line_number":1120,"context_line":""},{"line_number":1121,"context_line":"    def treat_vif_port(self, vif_port, port_id, network_id, network_type,"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_59f88e49","line":1118,"in_reply_to":"fa32b979_e8718ea9","updated":"2015-06-16 09:49:51.000000000","message":"Done","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"18b2cb520cbbe5d730f5687aaf02cd51a13f0e86","unresolved":false,"context_lines":[{"line_number":1538,"context_line":"                              \"Elapsed:%(elapsed).3f\","},{"line_number":1539,"context_line":"                              {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1540,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1541,"context_line":"                    # Treat ancillary devices if they exist"},{"line_number":1542,"context_line":"                    if self.ancillary_brs:"},{"line_number":1543,"context_line":"                        anci_port_info \u003d self.scan_ancillary_ports("},{"line_number":1544,"context_line":"                            ancillary_ports, sync)"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_a892a69d","line":1541,"updated":"2015-06-16 08:39:46.000000000","message":"What\u0027s the intent of moving it up here?","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a09f3bd2ad1f85383a340f718ead499b4e41598c","unresolved":false,"context_lines":[{"line_number":1538,"context_line":"                              \"Elapsed:%(elapsed).3f\","},{"line_number":1539,"context_line":"                              {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1540,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1541,"context_line":"                    # Treat ancillary devices if they exist"},{"line_number":1542,"context_line":"                    if self.ancillary_brs:"},{"line_number":1543,"context_line":"                        anci_port_info \u003d self.scan_ancillary_ports("},{"line_number":1544,"context_line":"                            ancillary_ports, sync)"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_766ebc02","line":1541,"in_reply_to":"fa32b979_83a463a6","updated":"2015-06-16 10:23:41.000000000","message":"I see. The suggested refactoring would also belong to a separate patch.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"43bdeb51332f574f40836e0f8e8dfabc54cf7ad0","unresolved":false,"context_lines":[{"line_number":1538,"context_line":"                              \"Elapsed:%(elapsed).3f\","},{"line_number":1539,"context_line":"                              {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1540,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1541,"context_line":"                    # Treat ancillary devices if they exist"},{"line_number":1542,"context_line":"                    if self.ancillary_brs:"},{"line_number":1543,"context_line":"                        anci_port_info \u003d self.scan_ancillary_ports("},{"line_number":1544,"context_line":"                            ancillary_ports, sync)"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_83a463a6","line":1541,"in_reply_to":"fa32b979_a892a69d","updated":"2015-06-16 09:07:21.000000000","message":"It will avoid the use of two flags sync and resync as suggested by Rossella. Please check comments on PS14\nhttps://review.openstack.org/#/c/165023/14/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"18b2cb520cbbe5d730f5687aaf02cd51a13f0e86","unresolved":false,"context_lines":[{"line_number":1540,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1541,"context_line":"                    # Treat ancillary devices if they exist"},{"line_number":1542,"context_line":"                    if self.ancillary_brs:"},{"line_number":1543,"context_line":"                        anci_port_info \u003d self.scan_ancillary_ports("},{"line_number":1544,"context_line":"                            ancillary_ports, sync)"},{"line_number":1545,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1546,"context_line":"                                  \"ancillary port info retrieved. \""}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_e8b74ef3","line":1543,"updated":"2015-06-16 08:39:46.000000000","message":"please avoid abbreviating words like that, instead use full names: ancillary_port_info.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"43bdeb51332f574f40836e0f8e8dfabc54cf7ad0","unresolved":false,"context_lines":[{"line_number":1540,"context_line":"                               \u0027elapsed\u0027: time.time() - start})"},{"line_number":1541,"context_line":"                    # Treat ancillary devices if they exist"},{"line_number":1542,"context_line":"                    if self.ancillary_brs:"},{"line_number":1543,"context_line":"                        anci_port_info \u003d self.scan_ancillary_ports("},{"line_number":1544,"context_line":"                            ancillary_ports, sync)"},{"line_number":1545,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1546,"context_line":"                                  \"ancillary port info retrieved. \""}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_434adbc6","line":1543,"in_reply_to":"fa32b979_e8b74ef3","updated":"2015-06-16 09:07:21.000000000","message":"Done","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"18b2cb520cbbe5d730f5687aaf02cd51a13f0e86","unresolved":false,"context_lines":[{"line_number":1547,"context_line":"                                  \"Elapsed:%(elapsed).3f\","},{"line_number":1548,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1549,"context_line":"                                   \u0027elapsed\u0027: time.time() - start})"},{"line_number":1550,"context_line":"                    sync \u003d False"},{"line_number":1551,"context_line":"                    # Secure and wire/unwire VIFs and update their status"},{"line_number":1552,"context_line":"                    # on Neutron server"},{"line_number":1553,"context_line":"                    if (self._port_info_has_changes(port_info) or"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_286216ae","line":1550,"updated":"2015-06-16 08:39:46.000000000","message":"Why have you moved sync reset here instead of leaving it in line 1486? If anything bad occurs in that block, it will be caught by except catch and set again.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"43bdeb51332f574f40836e0f8e8dfabc54cf7ad0","unresolved":false,"context_lines":[{"line_number":1547,"context_line":"                                  \"Elapsed:%(elapsed).3f\","},{"line_number":1548,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"},{"line_number":1549,"context_line":"                                   \u0027elapsed\u0027: time.time() - start})"},{"line_number":1550,"context_line":"                    sync \u003d False"},{"line_number":1551,"context_line":"                    # Secure and wire/unwire VIFs and update their status"},{"line_number":1552,"context_line":"                    # on Neutron server"},{"line_number":1553,"context_line":"                    if (self._port_info_has_changes(port_info) or"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_c3358b46","line":1550,"in_reply_to":"fa32b979_286216ae","updated":"2015-06-16 09:07:21.000000000","message":"If i will put sync\u003dFalse at line 1485 then every time it will take False only at the time of scanning the ports at line 1532 and 1543 that is not correct.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"18b2cb520cbbe5d730f5687aaf02cd51a13f0e86","unresolved":false,"context_lines":[{"line_number":1573,"context_line":"                    if self.ancillary_brs:"},{"line_number":1574,"context_line":"                        sync |\u003d self.process_ancillary_network_ports("},{"line_number":1575,"context_line":"                            anci_port_info)"},{"line_number":1576,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration: \""},{"line_number":1577,"context_line":"                                  \"%(iter_num)d - ancillary ports \""},{"line_number":1578,"context_line":"                                  \"processed. Elapsed:%(elapsed).3f\","},{"line_number":1579,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_689b3e73","line":1576,"updated":"2015-06-16 08:39:46.000000000","message":"(No action required)\n\nThe fact that our lines become so short here suggests that there is refactoring long overdue.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"d7c843a22674c98a1d2e3d3889db1900db717e7a","unresolved":false,"context_lines":[{"line_number":1573,"context_line":"                    if self.ancillary_brs:"},{"line_number":1574,"context_line":"                        sync |\u003d self.process_ancillary_network_ports("},{"line_number":1575,"context_line":"                            anci_port_info)"},{"line_number":1576,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration: \""},{"line_number":1577,"context_line":"                                  \"%(iter_num)d - ancillary ports \""},{"line_number":1578,"context_line":"                                  \"processed. Elapsed:%(elapsed).3f\","},{"line_number":1579,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_943d7bbd","line":1576,"in_reply_to":"fa32b979_689b3e73","updated":"2015-06-16 09:49:51.000000000","message":"This is because, I moved some code from here to line 1541 just to avoid of using two different flags sync and resync, which i have used in starting patch sets.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a09f3bd2ad1f85383a340f718ead499b4e41598c","unresolved":false,"context_lines":[{"line_number":1573,"context_line":"                    if self.ancillary_brs:"},{"line_number":1574,"context_line":"                        sync |\u003d self.process_ancillary_network_ports("},{"line_number":1575,"context_line":"                            anci_port_info)"},{"line_number":1576,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration: \""},{"line_number":1577,"context_line":"                                  \"%(iter_num)d - ancillary ports \""},{"line_number":1578,"context_line":"                                  \"processed. Elapsed:%(elapsed).3f\","},{"line_number":1579,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"}],"source_content_type":"text/x-python","patch_set":25,"id":"fa32b979_36603401","line":1576,"in_reply_to":"fa32b979_943d7bbd","updated":"2015-06-16 10:23:41.000000000","message":"Yeah, I understand it. I just noted that the method becomes unmanageable and unreviewable. In any case, seems like the refactoring suggested by Rosella would belong to a separate patch.","commit_id":"cf2a83b5df1243d6821d115c1c9d6f1640cf1b55"}],"neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f07e58a21e0a5e5d2c28f5545e762f90eae2efdb","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        actual \u003d self.mock_scan_ports(vif_port_set, registered_ports)"},{"line_number":241,"context_line":"        self.assertEqual(expected, actual)"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def test_scan_ports_with_sync(self):"},{"line_number":244,"context_line":"        vif_port_set \u003d set([1, 3])"},{"line_number":245,"context_line":"        registered_ports \u003d set([1, 2])"},{"line_number":246,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_c8be18ff","line":243,"updated":"2015-04-02 14:18:15.000000000","message":"Should we have a similar test for scan_ancillary_ports?","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"a78b269ee6465ea7aed8e91bc212c8eb3e16b4e4","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        actual \u003d self.mock_scan_ports(vif_port_set, registered_ports)"},{"line_number":241,"context_line":"        self.assertEqual(expected, actual)"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def test_scan_ports_with_sync(self):"},{"line_number":244,"context_line":"        vif_port_set \u003d set([1, 3])"},{"line_number":245,"context_line":"        registered_ports \u003d set([1, 2])"},{"line_number":246,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_7965c7df","line":243,"in_reply_to":"baa041b7_c8be18ff","updated":"2015-04-06 14:43:28.000000000","message":"Done","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"}],"neutron/tests/unit/openvswitch/test_ovs_tunnel.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f07e58a21e0a5e5d2c28f5545e762f90eae2efdb","unresolved":false,"context_lines":[{"line_number":498,"context_line":"        a.tunnel_update("},{"line_number":499,"context_line":"            mock.sentinel.ctx, tunnel_ip\u003d\u002710.0.0.1\u0027)"},{"line_number":500,"context_line":"        self._verify_mock_calls()"},{"line_number":501,"context_line":""},{"line_number":502,"context_line":"    def test_daemon_loop(self):"},{"line_number":503,"context_line":"        reply2 \u003d {\u0027current\u0027: set([\u0027tap0\u0027]),"},{"line_number":504,"context_line":"                  \u0027added\u0027: set([\u0027tap2\u0027]),"}],"source_content_type":"text/x-python","patch_set":3,"id":"baa041b7_e86f9c90","line":501,"updated":"2015-04-02 14:18:15.000000000","message":"The whole test seems like a duplicate for the case from test_ovs_neutron_agent.py that you modify in this patch. Is it even needed? If it does not add any value in terms of code coverage, then it would be better to kill it (in a separate patch) than to patch it here.","commit_id":"d4ae98126780c419ff4fe048b6d3bca0a420aef3"}],"neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c6fae8efa769ebd91aa79578945eba52a04a0316","unresolved":false,"context_lines":[{"line_number":309,"context_line":"        self.assertEqual(expected, actual)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def test_scan_ports_returns_port_changes_with_sync(self):"},{"line_number":312,"context_line":"        vif_port_set \u003d set([1, 3])"},{"line_number":313,"context_line":"        registered_ports \u003d set([1, 2])"},{"line_number":314,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"},{"line_number":315,"context_line":"                        removed\u003dset([2]))"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_de7cb5b7","line":312,"updated":"2015-09-08 23:10:26.000000000","message":"nit:  you can create a set like this:\n\n  vif_port_set \u003d {1,3}\n\nDefinitely not worth a -1, just throwing it out there fyi.","commit_id":"d6d0853be34ce783b133a9c39aeb608033f3073b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c6fae8efa769ebd91aa79578945eba52a04a0316","unresolved":false,"context_lines":[{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def test_scan_ports_returns_port_changes_with_sync(self):"},{"line_number":312,"context_line":"        vif_port_set \u003d set([1, 3])"},{"line_number":313,"context_line":"        registered_ports \u003d set([1, 2])"},{"line_number":314,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"},{"line_number":315,"context_line":"                        removed\u003dset([2]))"},{"line_number":316,"context_line":"        actual \u003d self.mock_scan_ports(vif_port_set, registered_ports,"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_7e48098b","line":313,"updated":"2015-09-08 23:10:26.000000000","message":"ditto","commit_id":"d6d0853be34ce783b133a9c39aeb608033f3073b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c6fae8efa769ebd91aa79578945eba52a04a0316","unresolved":false,"context_lines":[{"line_number":312,"context_line":"        vif_port_set \u003d set([1, 3])"},{"line_number":313,"context_line":"        registered_ports \u003d set([1, 2])"},{"line_number":314,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"},{"line_number":315,"context_line":"                        removed\u003dset([2]))"},{"line_number":316,"context_line":"        actual \u003d self.mock_scan_ports(vif_port_set, registered_ports,"},{"line_number":317,"context_line":"                                      sync\u003dTrue)"},{"line_number":318,"context_line":"        self.assertEqual(expected, actual)"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_9e4ddd9b","line":315,"updated":"2015-09-08 23:10:26.000000000","message":"ditto","commit_id":"d6d0853be34ce783b133a9c39aeb608033f3073b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c6fae8efa769ebd91aa79578945eba52a04a0316","unresolved":false,"context_lines":[{"line_number":314,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"},{"line_number":315,"context_line":"                        removed\u003dset([2]))"},{"line_number":316,"context_line":"        actual \u003d self.mock_scan_ports(vif_port_set, registered_ports,"},{"line_number":317,"context_line":"                                      sync\u003dTrue)"},{"line_number":318,"context_line":"        self.assertEqual(expected, actual)"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    def _test_scan_ports_with_updated_ports(self, updated_ports):"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_de535538","line":317,"updated":"2015-09-08 23:10:26.000000000","message":"Kudos for passing sync\u003dTrue using a kwarg instead of a positional.","commit_id":"d6d0853be34ce783b133a9c39aeb608033f3073b"}],"neutron/tests/unit/plugins/openvswitch/agent/test_ovs_neutron_agent.py":[{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"c8a884f8cb5ea2cf3b32a3846f42569d8db67cbc","unresolved":false,"context_lines":[{"line_number":236,"context_line":"            return self.agent.scan_ports(registered_ports, updated_ports, sync)"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    def mock_scan_ancillary_ports(self, registered_ports\u003dNone, sync\u003dFalse):"},{"line_number":239,"context_line":"        with mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"},{"line_number":240,"context_line":"                               return_value\u003dregistered_ports):"},{"line_number":241,"context_line":"            return self.agent.scan_ancillary_ports(registered_ports,"},{"line_number":242,"context_line":"                                                   sync)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9aa53dc9_49a56c02","line":239,"updated":"2015-04-07 12:48:04.000000000","message":"Wondering, why you have used self.agent.int_br here. As far as I know self.ancillary_brs doesn\u0027t process br-int, br-tun.\n\nReference:\n        # Collect additional bridges to monitor\n        self.ancillary_brs \u003d self.setup_ancillary_bridges(integ_br, tun_br)","commit_id":"3140d90268c3575ef51cda0624554035e540e73b"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"2badc452bd0ef15a9d7fbc87f488fa2226c3101b","unresolved":false,"context_lines":[{"line_number":241,"context_line":"            return self.agent.scan_ports(registered_ports, updated_ports, sync)"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def mock_scan_ancillary_ports(self, registered_ports\u003dNone, sync\u003dFalse):"},{"line_number":244,"context_line":"        with mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"},{"line_number":245,"context_line":"                               return_value\u003dregistered_ports):"},{"line_number":246,"context_line":"            return self.agent.scan_ancillary_ports(registered_ports,"},{"line_number":247,"context_line":"                                                   sync)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_a7060584","line":244,"updated":"2015-04-09 10:11:38.000000000","message":"@romil: I need some more time to check how to pass ancillary ports here.\nTill that let other reviewers to review this.","commit_id":"60f7ec5071ae537b04edb1a73ea23214810685f2"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"3edc7db91666bf8d021f2bd168420e3315508b68","unresolved":false,"context_lines":[{"line_number":241,"context_line":"            return self.agent.scan_ports(registered_ports, updated_ports, sync)"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def mock_scan_ancillary_ports(self, registered_ports\u003dNone, sync\u003dFalse):"},{"line_number":244,"context_line":"        with mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"},{"line_number":245,"context_line":"                               return_value\u003dregistered_ports):"},{"line_number":246,"context_line":"            return self.agent.scan_ancillary_ports(registered_ports,"},{"line_number":247,"context_line":"                                                   sync)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7a016987_c1396143","line":244,"in_reply_to":"5aa745d1_4b73444e","updated":"2015-05-14 09:01:01.000000000","message":"Done","commit_id":"60f7ec5071ae537b04edb1a73ea23214810685f2"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"239aecd9e32af88458eaa9f3a85d9a5b65bcbaf5","unresolved":false,"context_lines":[{"line_number":241,"context_line":"            return self.agent.scan_ports(registered_ports, updated_ports, sync)"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def mock_scan_ancillary_ports(self, registered_ports\u003dNone, sync\u003dFalse):"},{"line_number":244,"context_line":"        with mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"},{"line_number":245,"context_line":"                               return_value\u003dregistered_ports):"},{"line_number":246,"context_line":"            return self.agent.scan_ancillary_ports(registered_ports,"},{"line_number":247,"context_line":"                                                   sync)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aaa499b_f5b5f330","line":244,"in_reply_to":"7aaa499b_d760f137","updated":"2015-04-14 22:12:07.000000000","message":"ancillary bridges are in self.agent.ancillary_brs . If you do something like:\n\n\nwith mock.patch.object( self.agent, \u0027setup_ancillary_bridges\u0027, \n    return_value\u003d[br-ext]):\n    with mock.patch.object(self.agent.ancillary_brs[0], \u0027get_vif_port_set\u0027,\n        return_value\u003dregistered_ports):\n\nI think it will work :)","commit_id":"60f7ec5071ae537b04edb1a73ea23214810685f2"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"183261f02e8cf09aaa9cd38e8b209ec4a2fa864c","unresolved":false,"context_lines":[{"line_number":241,"context_line":"            return self.agent.scan_ports(registered_ports, updated_ports, sync)"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def mock_scan_ancillary_ports(self, registered_ports\u003dNone, sync\u003dFalse):"},{"line_number":244,"context_line":"        with mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"},{"line_number":245,"context_line":"                               return_value\u003dregistered_ports):"},{"line_number":246,"context_line":"            return self.agent.scan_ancillary_ports(registered_ports,"},{"line_number":247,"context_line":"                                                   sync)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5aa745d1_4b73444e","line":244,"in_reply_to":"7aaa499b_f5b5f330","updated":"2015-04-16 06:22:41.000000000","message":"@Rossella: Thanks for your suggestion but it does not work, Because at line 121-123, method \"setup_ancillary_bridges\" is mocked  in same TestOvsNeutronAgent class which returns null. :(","commit_id":"60f7ec5071ae537b04edb1a73ea23214810685f2"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"e789074a7f4e4dec2c37d3348067b4bf4467fc6e","unresolved":false,"context_lines":[{"line_number":241,"context_line":"            return self.agent.scan_ports(registered_ports, updated_ports, sync)"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def mock_scan_ancillary_ports(self, registered_ports\u003dNone, sync\u003dFalse):"},{"line_number":244,"context_line":"        with mock.patch.object(self.agent.int_br, \u0027get_vif_port_set\u0027,"},{"line_number":245,"context_line":"                               return_value\u003dregistered_ports):"},{"line_number":246,"context_line":"            return self.agent.scan_ancillary_ports(registered_ports,"},{"line_number":247,"context_line":"                                                   sync)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aaa499b_d760f137","line":244,"in_reply_to":"9aa53dc9_a7060584","updated":"2015-04-13 18:28:57.000000000","message":"Maybe just adding a TODO or WIP here?","commit_id":"60f7ec5071ae537b04edb1a73ea23214810685f2"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"52c7f2d8f3c78f58da6774839906cdafe8ffb1d5","unresolved":false,"context_lines":[{"line_number":1142,"context_line":""},{"line_number":1143,"context_line":""},{"line_number":1144,"context_line":"class TestOvsNeutronAgentForAncillary_ports(object):"},{"line_number":1145,"context_line":""},{"line_number":1146,"context_line":"    def setUp(self):"},{"line_number":1147,"context_line":"        super(TestOvsNeutronAgentForAncillary_ports, self).setUp()"},{"line_number":1148,"context_line":"        kwargs \u003d self.mod_agent.create_agent_config_map(cfg.CONF)"}],"source_content_type":"text/x-python","patch_set":12,"id":"7a016987_cc4dbf9a","line":1145,"updated":"2015-05-28 03:52:58.000000000","message":"Why do we need a separate class here?\n\nI could see that these test cases were part of class AncillaryBridgesTest(object) in PS10.\n\nAnyways here we writing test cases for Ancillary Bridges Ports, we shouldn\u0027t be adding separate class for it.","commit_id":"820cc43250f9de1c124132b1d7fb169e5a103b21"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"c6f24503942dc6f481cdfec748bacf1b112d97e0","unresolved":false,"context_lines":[{"line_number":1142,"context_line":""},{"line_number":1143,"context_line":""},{"line_number":1144,"context_line":"class TestOvsNeutronAgentForAncillary_ports(object):"},{"line_number":1145,"context_line":""},{"line_number":1146,"context_line":"    def setUp(self):"},{"line_number":1147,"context_line":"        super(TestOvsNeutronAgentForAncillary_ports, self).setUp()"},{"line_number":1148,"context_line":"        kwargs \u003d self.mod_agent.create_agent_config_map(cfg.CONF)"}],"source_content_type":"text/x-python","patch_set":12,"id":"7a016987_c318e277","line":1145,"in_reply_to":"7a016987_cc4dbf9a","updated":"2015-05-28 10:01:10.000000000","message":"@Romil: In PS9 \u0026 10, i have used the class AncillaryBridgesTest(object). There jenkins was failing because of some tests cases but in my local machine it was passed.\n\nI have checked it with another method and in my machine it got passed, will upload it again and hope this time jenkins will not fail.","commit_id":"820cc43250f9de1c124132b1d7fb169e5a103b21"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"cc7943e919a1daf9d21974994dcedec9fd9f4758","unresolved":false,"context_lines":[{"line_number":243,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"},{"line_number":244,"context_line":"                        removed\u003dset([2]))"},{"line_number":245,"context_line":"        actual \u003d self.mock_scan_ports(vif_port_set, registered_ports,"},{"line_number":246,"context_line":"                                      sync\u003dTrue)"},{"line_number":247,"context_line":"        self.assertEqual(expected, actual)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def _test_scan_ports_with_updated_ports(self, updated_ports):"}],"source_content_type":"text/x-python","patch_set":14,"id":"7a016987_5a99736d","line":246,"updated":"2015-05-28 12:38:21.000000000","message":"you should test with sync\u003dFalse too","commit_id":"1784c8e6ebabd20aee6880a2ae56793725e33229"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"628eb6d08e137f139be9e1f583bcb089779271a9","unresolved":false,"context_lines":[{"line_number":243,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"},{"line_number":244,"context_line":"                        removed\u003dset([2]))"},{"line_number":245,"context_line":"        actual \u003d self.mock_scan_ports(vif_port_set, registered_ports,"},{"line_number":246,"context_line":"                                      sync\u003dTrue)"},{"line_number":247,"context_line":"        self.assertEqual(expected, actual)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def _test_scan_ports_with_updated_ports(self, updated_ports):"}],"source_content_type":"text/x-python","patch_set":14,"id":"5afe65bd_3df843e5","line":246,"in_reply_to":"7a016987_5a99736d","updated":"2015-06-02 12:35:12.000000000","message":"By default sync\u003dfalse.\n\nThe following test cases are testing with sync\u003dFalse\n\n   test_scan_ports_returns_current_only_for_unchanged_ports(self):\n   test_scan_ports_returns_port_changes(self):","commit_id":"1784c8e6ebabd20aee6880a2ae56793725e33229"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f4c2ac3540f2a0a9ccab58f894f461db75db45c8","unresolved":false,"context_lines":[{"line_number":1281,"context_line":"    def test_ancillary_bridges_external_bridge_id_none(self):"},{"line_number":1282,"context_line":"        self._test_ancillary_bridges_external()"},{"line_number":1283,"context_line":""},{"line_number":1284,"context_line":"    def test_scan_ancillary_ports_returns_port_changes_with_sync(self):"},{"line_number":1285,"context_line":"        vif_port_set \u003d set([1, 3])"},{"line_number":1286,"context_line":"        registered_ports \u003d set([1, 2])"},{"line_number":1287,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"}],"source_content_type":"text/x-python","patch_set":28,"id":"fa32b979_e36953f9","line":1284,"updated":"2015-06-24 13:14:23.000000000","message":"two new tests are pretty the same, the only difference is in mock function checked; so consider reuse common code for both.","commit_id":"a3b0527568f3e06e66c8dd85c7ba91c31719b6a3"},{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"06f8615b9ed1e187d88fc37391d56de69dcfe1c9","unresolved":false,"context_lines":[{"line_number":1281,"context_line":"    def test_ancillary_bridges_external_bridge_id_none(self):"},{"line_number":1282,"context_line":"        self._test_ancillary_bridges_external()"},{"line_number":1283,"context_line":""},{"line_number":1284,"context_line":"    def test_scan_ancillary_ports_returns_port_changes_with_sync(self):"},{"line_number":1285,"context_line":"        vif_port_set \u003d set([1, 3])"},{"line_number":1286,"context_line":"        registered_ports \u003d set([1, 2])"},{"line_number":1287,"context_line":"        expected \u003d dict(current\u003dvif_port_set, added\u003dvif_port_set,"}],"source_content_type":"text/x-python","patch_set":28,"id":"fa32b979_879ac160","line":1284,"in_reply_to":"fa32b979_e36953f9","updated":"2015-06-24 18:32:55.000000000","message":"@Ihar, These tests are part of different classes in this file. so let\u0027s keep it AS-IS, otherwise I need to create a global helper method which looks odd.\n\nif you have an idea please suggest...:)","commit_id":"a3b0527568f3e06e66c8dd85c7ba91c31719b6a3"}]}
