)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"8b7a3efe29d47e68f829430c40de9c40572c2602","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-08-06 02:03:03 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Refactor l2_pop code to pass mac/ip/device_owner info more readably"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I7f8c93b0e12ee0179bb23dfbb3a3d814615b1c2e"},{"line_number":10,"context_line":"Closes-Bug: #1352801"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_974485b9","line":8,"updated":"2014-08-06 16:37:45.000000000","message":"please mention that this commit acutally fixes bugs, not just refactoring.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"}],"neutron/agent/l2population_rpc.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"20a882a7ea65ddc40b125c41fc1178b3e50692b9","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        :param port_info: a list to contain mac and ip."},{"line_number":111,"context_line":"            [mac, ip, device_owner]"},{"line_number":112,"context_line":"            or"},{"line_number":113,"context_line":"            FLOODING_ENTRY"},{"line_number":114,"context_line":"        :remote_ip: remote ip address."},{"line_number":115,"context_line":"        :param lvm: local VLAN map of network."},{"line_number":116,"context_line":"        :param ofport: a port to delete."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_f2822f50","line":113,"updated":"2014-08-06 16:54:50.000000000","message":"I noticed that FLOODING_ENTRY is still a 2-tuple.  I think more work needs to be done.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"da9c55da5797f4a2b60d6dc02e91f0fd0ad57410","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        :param port_info: a list to contain mac and ip."},{"line_number":111,"context_line":"            [mac, ip, device_owner]"},{"line_number":112,"context_line":"            or"},{"line_number":113,"context_line":"            FLOODING_ENTRY"},{"line_number":114,"context_line":"        :remote_ip: remote ip address."},{"line_number":115,"context_line":"        :param lvm: local VLAN map of network."},{"line_number":116,"context_line":"        :param ofport: a port to delete."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_98b5837f","line":113,"in_reply_to":"baada198_92a8137a","updated":"2014-08-07 07:02:25.000000000","message":"For Flooding Entry deals with Network and not with specific MACs.  I agree with Yamamoto that we can keep that as its directly compared in the agent sides.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"4d7db8429c9c98b67ace5e00204e807e13370336","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        :param port_info: a list to contain mac and ip."},{"line_number":111,"context_line":"            [mac, ip, device_owner]"},{"line_number":112,"context_line":"            or"},{"line_number":113,"context_line":"            FLOODING_ENTRY"},{"line_number":114,"context_line":"        :remote_ip: remote ip address."},{"line_number":115,"context_line":"        :param lvm: local VLAN map of network."},{"line_number":116,"context_line":"        :param ofport: a port to delete."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_265443fd","line":113,"in_reply_to":"baada198_98b5837f","updated":"2014-08-08 17:19:16.000000000","message":"Am I missing something?  If the tuples are now 3-tuples with a device_owner, a 2-tuple will never compare the same.  I do need to dive in to this a bit more and figure some things out.\n\nHowever, it looks like we may be able to remove device_owner completely from the tuple and restore it to what it was before.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"abce6a13b74b8367a42d3e6eff38ea3d4813db0c","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        :param port_info: a list to contain mac and ip."},{"line_number":111,"context_line":"            [mac, ip, device_owner]"},{"line_number":112,"context_line":"            or"},{"line_number":113,"context_line":"            FLOODING_ENTRY"},{"line_number":114,"context_line":"        :remote_ip: remote ip address."},{"line_number":115,"context_line":"        :param lvm: local VLAN map of network."},{"line_number":116,"context_line":"        :param ofport: a port to delete."}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_92a8137a","line":113,"in_reply_to":"baada198_f2822f50","updated":"2014-08-06 17:03:28.000000000","message":"i hesitate to change it because as far as i know it\u0027s currently used as \"if entry \u003d\u003d FLOODING_ENTRY\".","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"20a882a7ea65ddc40b125c41fc1178b3e50692b9","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                    continue"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"                after \u003d state.get(\u0027after\u0027)"},{"line_number":253,"context_line":"                for mac, ip, _ in after:"},{"line_number":254,"context_line":"                    self.setup_entry_for_arp_reply(br, \u0027add\u0027, lvm.vlan, mac,"},{"line_number":255,"context_line":"                                                   ip)"},{"line_number":256,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_52aafbd3","line":253,"updated":"2014-08-06 16:54:50.000000000","message":"This is from yamamoto\u0027s fix.  However, I plan to change this to not rely on position in the tuple as that is one of the major points of this refactoring.  Remember this is a WIP.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"21082f9b369adb6e3c86af3ca652c0cd80134e8d","unresolved":false,"context_lines":[{"line_number":250,"context_line":"                    continue"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"                after \u003d state.get(\u0027after\u0027)"},{"line_number":253,"context_line":"                for mac, ip, _ in after:"},{"line_number":254,"context_line":"                    self.setup_entry_for_arp_reply(br, \u0027add\u0027, lvm.vlan, mac,"},{"line_number":255,"context_line":"                                                   ip)"},{"line_number":256,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_348f30cf","line":253,"in_reply_to":"baada198_52aafbd3","updated":"2014-08-06 19:25:48.000000000","message":"i\u0027d suggest to merge bug fixes + minimal refactoring first and perform further refactoring later.\n(i have a blueprint which needs working l2pop.)","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3556b3a9ca2b21b5dcce6c606b7d043f7fb02208","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        applied."},{"line_number":96,"context_line":"        :param port_info: list to include mac and ip."},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"            [mac, ip]"},{"line_number":99,"context_line":"        :remote_ip: remote ip address."},{"line_number":100,"context_line":"        :param lvm: a local VLAN map of network."},{"line_number":101,"context_line":"        :param ofport: a port to add."}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_756a2d1c","line":98,"updated":"2014-08-08 22:01:46.000000000","message":"please update","commit_id":"1b92da45f490ba26333d4e210711250e99f7c7f8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"eda29b400550d017a746cef80b7792ef5c01d73e","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        applied."},{"line_number":96,"context_line":"        :param port_info: list to include mac and ip."},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"            [mac, ip]"},{"line_number":99,"context_line":"        :remote_ip: remote ip address."},{"line_number":100,"context_line":"        :param lvm: a local VLAN map of network."},{"line_number":101,"context_line":"        :param ofport: a port to add."}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_906b2185","line":98,"in_reply_to":"baada198_756a2d1c","updated":"2014-08-11 15:37:52.000000000","message":"Done","commit_id":"1b92da45f490ba26333d4e210711250e99f7c7f8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3556b3a9ca2b21b5dcce6c606b7d043f7fb02208","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        :param br: represent the bridge on which del_fdb_flow should be"},{"line_number":115,"context_line":"        applied."},{"line_number":116,"context_line":"        :param port_info: a list to contain mac and ip."},{"line_number":117,"context_line":"            [mac, ip]"},{"line_number":118,"context_line":"        :remote_ip: remote ip address."},{"line_number":119,"context_line":"        :param lvm: local VLAN map of network."},{"line_number":120,"context_line":"        :param ofport: a port to delete."}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_9567c150","line":117,"updated":"2014-08-08 22:01:46.000000000","message":"please update","commit_id":"1b92da45f490ba26333d4e210711250e99f7c7f8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"eda29b400550d017a746cef80b7792ef5c01d73e","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        :param br: represent the bridge on which del_fdb_flow should be"},{"line_number":115,"context_line":"        applied."},{"line_number":116,"context_line":"        :param port_info: a list to contain mac and ip."},{"line_number":117,"context_line":"            [mac, ip]"},{"line_number":118,"context_line":"        :remote_ip: remote ip address."},{"line_number":119,"context_line":"        :param lvm: local VLAN map of network."},{"line_number":120,"context_line":"        :param ofport: a port to delete."}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_b06665ba","line":117,"in_reply_to":"baada198_9567c150","updated":"2014-08-11 15:37:52.000000000","message":"Done","commit_id":"1b92da45f490ba26333d4e210711250e99f7c7f8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3556b3a9ca2b21b5dcce6c606b7d043f7fb02208","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                               {\u0027net1\u0027:"},{"line_number":235,"context_line":"                                {\u0027agent_ip\u0027:"},{"line_number":236,"context_line":"                                 {\u0027before\u0027: [[mac, ip]],"},{"line_number":237,"context_line":"                                  \u0027after\u0027: [[mac, ip]]"},{"line_number":238,"context_line":"                                 }"},{"line_number":239,"context_line":"                                }"},{"line_number":240,"context_line":"                                \u0027net2\u0027:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_75514d62","line":237,"updated":"2014-08-08 22:01:46.000000000","message":"please update","commit_id":"1b92da45f490ba26333d4e210711250e99f7c7f8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"eda29b400550d017a746cef80b7792ef5c01d73e","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                               {\u0027net1\u0027:"},{"line_number":235,"context_line":"                                {\u0027agent_ip\u0027:"},{"line_number":236,"context_line":"                                 {\u0027before\u0027: [[mac, ip]],"},{"line_number":237,"context_line":"                                  \u0027after\u0027: [[mac, ip]]"},{"line_number":238,"context_line":"                                 }"},{"line_number":239,"context_line":"                                }"},{"line_number":240,"context_line":"                                \u0027net2\u0027:"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_d06119a3","line":237,"in_reply_to":"baada198_75514d62","updated":"2014-08-11 15:37:52.000000000","message":"Done","commit_id":"1b92da45f490ba26333d4e210711250e99f7c7f8"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"c1c5905049fac7304a58fbabafe4505f669f4d3d","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    @staticmethod"},{"line_number":59,"context_line":"    def _list_to_port_info(fdb_entries):"},{"line_number":60,"context_line":"        cls \u003d l2pop_rpc.L2populationAgentNotifyAPI"},{"line_number":61,"context_line":"        for ports, address, port_infos in cls._each_port_info(fdb_entries):"},{"line_number":62,"context_line":"            ports[address] \u003d [l2pop_rpc.PortInfo(*pi) for pi in port_infos]"},{"line_number":63,"context_line":"        return fdb_entries"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"7ac7a964_b6761dd7","line":61,"updated":"2014-08-14 04:37:08.000000000","message":"This level of indirection here has debatable value.  I\u0027ll grant you that.  I actually wouldn\u0027t mind inlining the code in the two places where it is used given that we\u0027re going to clean it up later.","commit_id":"8c9c53e3d2d2af4b78edc16e35588a7d0c133e51"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"933519fcd488314ca3b29bcaa0eb93a2e66468b6","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        :returns: Deep copy with [\u003cmac\u003e, \u003cip\u003e] converted to PortInfo"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for _, value in unmarshalled.items():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":80,"context_line":"                    value[\u0027ports\u0027][address] \u003d [l2pop_rpc.PortInfo(*pi)"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_55a796bc","line":77,"updated":"2014-08-23 14:27:05.000000000","message":"Are these dicts (L77, L79) large enough to benefit from iteritems()?  Can do:\n\n    for value in unmarshalled.values():   or\n    for value in unmarshalled.itervalues():","commit_id":"bd76c67f21c2e35935b95734e44e75ce033c5ad2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"16f56b2fc8fc5bcf4e45d52e13a00ba33c59e69f","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        :returns: Deep copy with [\u003cmac\u003e, \u003cip\u003e] converted to PortInfo"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for _, value in unmarshalled.items():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":80,"context_line":"                    value[\u0027ports\u0027][address] \u003d [l2pop_rpc.PortInfo(*pi)"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_c2590590","line":77,"in_reply_to":"1abeadc6_55a796bc","updated":"2014-08-25 16:21:37.000000000","message":"IMO, not worth iteritems.  These dicts don\u0027t grow large at all and python 3 removes iteritems in favor of just items.  I don\u0027t see a compelling reason to go with iteritems.\n\nGood suggestion to use values rather than items.  It seems so obvious now that you say it.  ;)","commit_id":"bd76c67f21c2e35935b95734e44e75ce033c5ad2"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"35abc52b4b602f069c4f3ce4af1aaa928f65cd00","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        :returns: Deep copy with [\u003cmac\u003e, \u003cip\u003e] converted to PortInfo"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for value in unmarshalled.values():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_943019ea","line":76,"updated":"2014-08-26 00:29:18.000000000","message":"Why the deepcopy here?\n\nConsider:\n\nunmarshalled \u003d dict(fdb_entires)\nfor value in unmarshalled.values():\n    if \u0027ports\u0027 in value:\n        value[\u0027ports\u0027] \u003d dict(\n            (address, [l2pop_rpc.PortInfo(*pi) for pi in port_infos])\n            for address, port_infos in value[\u0027ports\u0027].items()\n        )\nreturn unmarshalled","commit_id":"71b120a1127241a97f1ff96b405682cf8ff345df"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"ae1f583bfb5923f0ab05e4ac87a50e43ce442271","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        :returns: Deep copy with [\u003cmac\u003e, \u003cip\u003e] converted to PortInfo"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for value in unmarshalled.values():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_2c68d9f4","line":76,"in_reply_to":"1abeadc6_2c30d955","updated":"2014-08-26 15:18:52.000000000","message":"Mark, I had not considered this approach.  It is a copy on write sharing the elements that will not change.  That would achieve what I was after with the deepcopy which is to preserve the original.\n\nThe deepcopy has the advantage of being simple and clearly showing that the method preserves the original.  The performance requirements here are not a concern.  If they were, I would roll the patch for this without question.  Let me sit on this and see what others think for a day or two.","commit_id":"71b120a1127241a97f1ff96b405682cf8ff345df"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"8bd18c7375ee7d7bcc224e195ee334c96de795d0","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        :returns: Deep copy with [\u003cmac\u003e, \u003cip\u003e] converted to PortInfo"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for value in unmarshalled.values():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_ddb17b02","line":76,"in_reply_to":"1abeadc6_2c68d9f4","updated":"2014-08-27 20:02:25.000000000","message":"Mark, I\u0027ve got a few minutes today to take a look.  I\u0027d be happy with either way.  I\u0027ll post another patch with your suggestion.","commit_id":"71b120a1127241a97f1ff96b405682cf8ff345df"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"e1972678d92902cc77a74c361d1685d97ccf205c","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        :returns: Deep copy with [\u003cmac\u003e, \u003cip\u003e] converted to PortInfo"},{"line_number":75,"context_line":"        \"\"\""},{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for value in unmarshalled.values():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_2c30d955","line":76,"in_reply_to":"1abeadc6_943019ea","updated":"2014-08-26 04:15:42.000000000","message":"I personally don\u0027t have a strong opinion about this. Perhaps the performance gain may be relevant to making a decision or conciseness of the snippet of code, but I am not sure it\u0027s worth yet another churn of this patch.","commit_id":"71b120a1127241a97f1ff96b405682cf8ff345df"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"51963664e878f9ef6181c47619c31475f3353ad3","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for value in unmarshalled.values():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":80,"context_line":"                    value[\u0027ports\u0027][address] \u003d [l2pop_rpc.PortInfo(*pi)"},{"line_number":81,"context_line":"                                               for pi in port_infos]"},{"line_number":82,"context_line":"        return unmarshalled"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_b7b524d2","line":79,"updated":"2014-08-25 18:36:21.000000000","message":"I saw a comment and response on Patchset-8 regarding usage of iteritems.\n\nI agree that it might be OK to use items here.\n\nHowever, the drawback here in this particular case is that the dictionaries held by \u0027port\u0027 are getting copied twice. One at the upper level with deepcopy and other with usage of items(). I agree that individual \u0027ports\u0027 dict will be small. But are we confirm that the whole fdb_entries will always be concise?\n\nWouldnt it be safer to just use iteritems instead? We could always use six.iteritems() to be compatible in 3.x? No?\n\n\nSame comment for _marshall_fdb_entries static method in other file as well.","commit_id":"71b120a1127241a97f1ff96b405682cf8ff345df"},{"author":{"_account_id":7962,"name":"Ronak Shah","email":"ronak.malav.shah@gmail.com","username":"ronak"},"change_message_id":"0ae99e4525ee9348a509acd2a0364dd1d55c4158","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for value in unmarshalled.values():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":80,"context_line":"                    value[\u0027ports\u0027][address] \u003d [l2pop_rpc.PortInfo(*pi)"},{"line_number":81,"context_line":"                                               for pi in port_infos]"},{"line_number":82,"context_line":"        return unmarshalled"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_cb03d974","line":79,"in_reply_to":"1abeadc6_0b09512c","updated":"2014-08-25 19:55:15.000000000","message":"Sold on a \"time\" as a very scarce resource argument.","commit_id":"71b120a1127241a97f1ff96b405682cf8ff345df"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"928801f143b6538b303128a59029bfcda02efe67","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        unmarshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":77,"context_line":"        for value in unmarshalled.values():"},{"line_number":78,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":79,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":80,"context_line":"                    value[\u0027ports\u0027][address] \u003d [l2pop_rpc.PortInfo(*pi)"},{"line_number":81,"context_line":"                                               for pi in port_infos]"},{"line_number":82,"context_line":"        return unmarshalled"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_0b09512c","line":79,"in_reply_to":"1abeadc6_b7b524d2","updated":"2014-08-25 19:45:51.000000000","message":"The deepcopy on L76 is completely independent of this.  Hence, it doesn\u0027t matter if it is copied twice, it doesn\u0027t change the argument here.\n\nKeep in mind that this is a shallow copy while the other is deep.  So, from an algorithm complexity point of view, this copy is not significant, not even a little.  This stuff is coming in via RPC.  All of the overhead in transferring the data over RPC far outweighs any of this stuff.  There is no reason to optimize this code.\n\nOther concerns must take precedence.  To me, calling the language builtin .items() is the simplest and clearest way to write this code.  Using .iteritems() or six.iteritems() just clutters it up.  Also, I\u0027ve got my own time to optimize here which is a very scarce resource.","commit_id":"71b120a1127241a97f1ff96b405682cf8ff345df"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"d9e2e6ddd9695916dfab6232d11216642a45df20","unresolved":false,"context_lines":[{"line_number":56,"context_line":"            self.fdb_update(context, self._unmarshall_fdb_entries(fdb_entries))"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    @staticmethod"},{"line_number":59,"context_line":"    def _unmarshall_fdb_entries(fdb_entries):"},{"line_number":60,"context_line":"        \"\"\"Prepares fdb_entries from JSON."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        All methods in this class that receive messages should call this to"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa98f980_686e4a98","line":59,"updated":"2014-09-09 08:10:15.000000000","message":"nit: IMHO unmarshal is correct (1 \u0027l\u0027 instead of 2 and google agrees) but it seems there is marshall and unmarshall in neutron/openstack/common/timeutils.py so I don\u0027t know which would we prefer.","commit_id":"38e3e9eee562dc0a6e973d6aec8a4c1c8a596059"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"ad7a069d5d63f73be8a284da3f7c030bc635b752","unresolved":false,"context_lines":[{"line_number":56,"context_line":"            self.fdb_update(context, self._unmarshall_fdb_entries(fdb_entries))"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    @staticmethod"},{"line_number":59,"context_line":"    def _unmarshall_fdb_entries(fdb_entries):"},{"line_number":60,"context_line":"        \"\"\"Prepares fdb_entries from JSON."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        All methods in this class that receive messages should call this to"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa98f980_d4a402bb","line":59,"in_reply_to":"fa98f980_686e4a98","updated":"2014-09-12 18:09:20.000000000","message":"Both seem to be prevalent.  I don\u0027t see any reason to change this.  Dictionaries seem to have both spellings.","commit_id":"38e3e9eee562dc0a6e973d6aec8a4c1c8a596059"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"d9e2e6ddd9695916dfab6232d11216642a45df20","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        \"\"\"Prepares fdb_entries from JSON."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        All methods in this class that receive messages should call this to"},{"line_number":63,"context_line":"        unmarshall fdb_entries from the wire."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        :param fdb_entries: Original fdb_entries data-structure.  Looks like:"},{"line_number":66,"context_line":"            {"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa98f980_e8095ade","line":63,"updated":"2014-09-09 08:10:15.000000000","message":"nit: unmarshall fdb_entries -\u003e unmarshall_fdb_entries","commit_id":"38e3e9eee562dc0a6e973d6aec8a4c1c8a596059"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"ad7a069d5d63f73be8a284da3f7c030bc635b752","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        \"\"\"Prepares fdb_entries from JSON."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        All methods in this class that receive messages should call this to"},{"line_number":63,"context_line":"        unmarshall fdb_entries from the wire."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"        :param fdb_entries: Original fdb_entries data-structure.  Looks like:"},{"line_number":66,"context_line":"            {"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa98f980_5490124e","line":63,"in_reply_to":"fa98f980_e8095ade","updated":"2014-09-12 18:09:20.000000000","message":"The statement is that fdb_entries gets unmarshalled by the method.  This should stay as it is.","commit_id":"38e3e9eee562dc0a6e973d6aec8a4c1c8a596059"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"7e4de8cd470338e33d6d4b6492481847641a8c0d","unresolved":false,"context_lines":[{"line_number":276,"context_line":"                    continue"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"                after \u003d state.get(\u0027after\u0027, [])"},{"line_number":279,"context_line":"                for mac_ip in after:"},{"line_number":280,"context_line":"                    self.setup_entry_for_arp_reply(br, \u0027add\u0027, lvm.vlan,"},{"line_number":281,"context_line":"                                                   mac_ip.mac_address,"},{"line_number":282,"context_line":"                                                   mac_ip.ip_address)"}],"source_content_type":"text/x-python","patch_set":19,"id":"baa201ad_f9f54451","line":279,"updated":"2014-10-16 20:42:45.000000000","message":"Nit: The name \u0027mac_ip\u0027 feels a a little at odds with names like \u0027agent_ip\u0027 and \u0027local_ip\u0027 in the preceding lines. Maybe call it \u0027new_port\u0027 here and \u0027old_port\u0027 on line 285.  [Only if this patch needs to be respun.]","commit_id":"8f50bc29edf0788dbc6220d56b45334eab9ecdc9"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"29b35c5af6abc5ac0951612985dc26561a1257ce","unresolved":false,"context_lines":[{"line_number":276,"context_line":"                    continue"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"                after \u003d state.get(\u0027after\u0027, [])"},{"line_number":279,"context_line":"                for mac_ip in after:"},{"line_number":280,"context_line":"                    self.setup_entry_for_arp_reply(br, \u0027add\u0027, lvm.vlan,"},{"line_number":281,"context_line":"                                                   mac_ip.mac_address,"},{"line_number":282,"context_line":"                                                   mac_ip.ip_address)"}],"source_content_type":"text/x-python","patch_set":19,"id":"baa201ad_a25b6752","line":279,"in_reply_to":"baa201ad_f9f54451","updated":"2014-10-16 23:05:04.000000000","message":"Fair point.  If I have a reason to crack the patch open I\u0027ll change it.  The context makes it clear enough though, I think.","commit_id":"8f50bc29edf0788dbc6220d56b45334eab9ecdc9"}],"neutron/plugins/ml2/drivers/l2pop/mech_driver.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"20a882a7ea65ddc40b125c41fc1178b3e50692b9","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from neutron.plugins.ml2 import driver_api as api"},{"line_number":29,"context_line":"from neutron.plugins.ml2.drivers.l2pop import config  # noqa"},{"line_number":30,"context_line":"from neutron.plugins.ml2.drivers.l2pop import db as l2pop_db"},{"line_number":31,"context_line":"from neutron.plugins.ml2.drivers.l2pop import rpc as l2pop_rpc"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_526d9b99","line":31,"updated":"2014-08-06 16:54:50.000000000","message":"Am I correct in thinking that adding device_owner should have needed a bump in the RPC version from here?","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"abce6a13b74b8367a42d3e6eff38ea3d4813db0c","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from neutron.plugins.ml2 import driver_api as api"},{"line_number":29,"context_line":"from neutron.plugins.ml2.drivers.l2pop import config  # noqa"},{"line_number":30,"context_line":"from neutron.plugins.ml2.drivers.l2pop import db as l2pop_db"},{"line_number":31,"context_line":"from neutron.plugins.ml2.drivers.l2pop import rpc as l2pop_rpc"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_92ed73bb","line":31,"in_reply_to":"baada198_526d9b99","updated":"2014-08-06 17:03:28.000000000","message":"the rpc version is currently 1.0.  ie. it\u0027s somehow meaningless.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"da9c55da5797f4a2b60d6dc02e91f0fd0ad57410","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from neutron.plugins.ml2 import driver_api as api"},{"line_number":29,"context_line":"from neutron.plugins.ml2.drivers.l2pop import config  # noqa"},{"line_number":30,"context_line":"from neutron.plugins.ml2.drivers.l2pop import db as l2pop_db"},{"line_number":31,"context_line":"from neutron.plugins.ml2.drivers.l2pop import rpc as l2pop_rpc"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_18f3336e","line":31,"in_reply_to":"baada198_92ed73bb","updated":"2014-08-07 07:02:25.000000000","message":"Since we aren\u0027t going to use device_owner, the RPC version can stay in as is.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"20a882a7ea65ddc40b125c41fc1178b3e50692b9","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"PortInfo \u003d collections.namedtuple("},{"line_number":37,"context_line":"    \"PortInfo\", \"mac_address ip_address device_owner\")"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class L2populationMechanismDriver(api.MechanismDriver,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_9246534f","line":37,"updated":"2014-08-06 16:54:50.000000000","message":"Using a namedtuple here seems to be the lowest cost path to a little more code readability and position independence.  It is compatible with regular tuples in many ways (memory size, assignment, comparison).\n\nDoes anyone have a reason this should not be used?  We could move using a class or something with similar construction and attribute access.\n\nWhat are your thoughts?","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"abce6a13b74b8367a42d3e6eff38ea3d4813db0c","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"PortInfo \u003d collections.namedtuple("},{"line_number":37,"context_line":"    \"PortInfo\", \"mac_address ip_address device_owner\")"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class L2populationMechanismDriver(api.MechanismDriver,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_721e1fbe","line":37,"in_reply_to":"baada198_9246534f","updated":"2014-08-06 17:03:28.000000000","message":"do you plan to keep on-wire presentation?\nhow do you plan to \"restore\" them in agent side?","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"5ee6ca149dfe9608529e127004b1e5b4dcf32bb9","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.remove_fdb_entries \u003d {}"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def _get_port_fdb_entries(self, port):"},{"line_number":54,"context_line":"        return [PortInfo(mac_address\u003dport[\u0027mac_address\u0027],"},{"line_number":55,"context_line":"                         device_owner\u003dport[\u0027device_owner\u0027],"},{"line_number":56,"context_line":"                         ip_address\u003dip[\u0027ip_address\u0027])"},{"line_number":57,"context_line":"                for ip in port[\u0027fixed_ips\u0027]]"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_e92085b3","line":54,"updated":"2014-08-06 19:13:18.000000000","message":"Can anyone find where the device_owner included in this tuple is read from the tuple and used?","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"fd5822691e5f0859ddc4236701860a56ecb92327","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.remove_fdb_entries \u003d {}"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def _get_port_fdb_entries(self, port):"},{"line_number":54,"context_line":"        return [PortInfo(mac_address\u003dport[\u0027mac_address\u0027],"},{"line_number":55,"context_line":"                         device_owner\u003dport[\u0027device_owner\u0027],"},{"line_number":56,"context_line":"                         ip_address\u003dip[\u0027ip_address\u0027])"},{"line_number":57,"context_line":"                for ip in port[\u0027fixed_ips\u0027]]"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_eb7859c3","line":54,"in_reply_to":"baada198_26ea9877","updated":"2014-08-07 16:02:23.000000000","message":"is there a plan to fix OVS agent to stop using device_owner?","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"631b37e5d3196437491539cba5becb3890612ac7","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.remove_fdb_entries \u003d {}"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def _get_port_fdb_entries(self, port):"},{"line_number":54,"context_line":"        return [PortInfo(mac_address\u003dport[\u0027mac_address\u0027],"},{"line_number":55,"context_line":"                         device_owner\u003dport[\u0027device_owner\u0027],"},{"line_number":56,"context_line":"                         ip_address\u003dip[\u0027ip_address\u0027])"},{"line_number":57,"context_line":"                for ip in port[\u0027fixed_ips\u0027]]"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_b1bb2e0f","line":54,"in_reply_to":"baada198_8b219db7","updated":"2014-08-07 16:42:21.000000000","message":"good to hear, thank you.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"da9c55da5797f4a2b60d6dc02e91f0fd0ad57410","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.remove_fdb_entries \u003d {}"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def _get_port_fdb_entries(self, port):"},{"line_number":54,"context_line":"        return [PortInfo(mac_address\u003dport[\u0027mac_address\u0027],"},{"line_number":55,"context_line":"                         device_owner\u003dport[\u0027device_owner\u0027],"},{"line_number":56,"context_line":"                         ip_address\u003dip[\u0027ip_address\u0027])"},{"line_number":57,"context_line":"                for ip in port[\u0027fixed_ips\u0027]]"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_26ea9877","line":54,"in_reply_to":"baada198_d459948e","updated":"2014-08-07 07:02:25.000000000","message":"Currently linuxbridge, ofa_agent and ovs_agent are all consumers of l2pop.\r\n\r\nlinuxbridge and ofa_agent are not upgraded to see device_owner.  So if we remove device_owner, we just need to fix the OVS Agent alone.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"019cf6241f7e8e910bbc16b9f7a49ba88e7ee79d","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.remove_fdb_entries \u003d {}"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def _get_port_fdb_entries(self, port):"},{"line_number":54,"context_line":"        return [PortInfo(mac_address\u003dport[\u0027mac_address\u0027],"},{"line_number":55,"context_line":"                         device_owner\u003dport[\u0027device_owner\u0027],"},{"line_number":56,"context_line":"                         ip_address\u003dip[\u0027ip_address\u0027])"},{"line_number":57,"context_line":"                for ip in port[\u0027fixed_ips\u0027]]"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_d459948e","line":54,"in_reply_to":"baada198_e92085b3","updated":"2014-08-06 19:22:29.000000000","message":"it\u0027s sent to agent and used for is_dvr_router_interface.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"393f293e311b00584b2c7d90ed8f331ce413c808","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self.remove_fdb_entries \u003d {}"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def _get_port_fdb_entries(self, port):"},{"line_number":54,"context_line":"        return [PortInfo(mac_address\u003dport[\u0027mac_address\u0027],"},{"line_number":55,"context_line":"                         device_owner\u003dport[\u0027device_owner\u0027],"},{"line_number":56,"context_line":"                         ip_address\u003dip[\u0027ip_address\u0027])"},{"line_number":57,"context_line":"                for ip in port[\u0027fixed_ips\u0027]]"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_8b219db7","line":54,"in_reply_to":"baada198_eb7859c3","updated":"2014-08-07 16:04:04.000000000","message":"Yes, we saw that field usage is not necessary anymore in ovs agent.  So we may be removing it from the message.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"}],"neutron/plugins/ml2/drivers/l2pop/rpc.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"a737ff3b9a6bf49b3068ca7e6e82634cfd391f78","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                   \u0027method\u0027: method,"},{"line_number":49,"context_line":"                   \u0027fdb_entries\u0027: fdb_entries})"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        self._port_info_to_list(fdb_entries)"},{"line_number":52,"context_line":"        self.fanout_cast(context,"},{"line_number":53,"context_line":"                         self.make_msg(method, fdb_entries\u003dfdb_entries),"},{"line_number":54,"context_line":"                         topic\u003dself.topic_l2pop_update)"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_53190d87","line":51,"updated":"2014-08-15 17:22:32.000000000","message":"Maybe add a note prescribing that every method \u0027sending messages\u0027 over the wire does need to do this conversion first? Or am I barking up at the wrong tree?","commit_id":"526564fcfd240cbc95a5dddabfec8e9056ad939b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"e155d2f76984c99a8a43c261f6f5fa583b64a4ba","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                   \u0027method\u0027: method,"},{"line_number":49,"context_line":"                   \u0027fdb_entries\u0027: fdb_entries})"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        self._port_info_to_list(fdb_entries)"},{"line_number":52,"context_line":"        self.fanout_cast(context,"},{"line_number":53,"context_line":"                         self.make_msg(method, fdb_entries\u003dfdb_entries),"},{"line_number":54,"context_line":"                         topic\u003dself.topic_l2pop_update)"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_b6a96fe1","line":51,"in_reply_to":"7ac7a964_53190d87","updated":"2014-08-15 17:40:22.000000000","message":"You make a good point.  It will be good to call this out.","commit_id":"526564fcfd240cbc95a5dddabfec8e9056ad939b"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"a737ff3b9a6bf49b3068ca7e6e82634cfd391f78","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                                          fdb_entries)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @staticmethod"},{"line_number":96,"context_line":"    def _port_info_to_list(fdb_entries):"},{"line_number":97,"context_line":"        for _, value in fdb_entries.items():"},{"line_number":98,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":99,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_13e6b5b4","line":96,"updated":"2014-08-15 17:22:32.000000000","message":"docstring detailing the format what fdb_entries is going to be like? My personal preference is to avoid using methods that mutate data structures passed in input, but here I found it odd that the method is called port_info_to_list and we pass a fdb_entries.","commit_id":"526564fcfd240cbc95a5dddabfec8e9056ad939b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"e155d2f76984c99a8a43c261f6f5fa583b64a4ba","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                                          fdb_entries)"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    @staticmethod"},{"line_number":96,"context_line":"    def _port_info_to_list(fdb_entries):"},{"line_number":97,"context_line":"        for _, value in fdb_entries.items():"},{"line_number":98,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":99,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_d67c2b23","line":96,"in_reply_to":"7ac7a964_13e6b5b4","updated":"2014-08-15 17:40:22.000000000","message":"You\u0027re right.  The name of the method can be improved.","commit_id":"526564fcfd240cbc95a5dddabfec8e9056ad939b"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"a737ff3b9a6bf49b3068ca7e6e82634cfd391f78","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":100,"context_line":"                    value[\u0027ports\u0027][address] \u003d [[mac, ip]"},{"line_number":101,"context_line":"                                               for mac, ip in port_infos]"},{"line_number":102,"context_line":"        return fdb_entries"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_33e1f19a","line":102,"updated":"2014-08-15 17:22:32.000000000","message":"why do we return fdb_entries?","commit_id":"526564fcfd240cbc95a5dddabfec8e9056ad939b"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"e155d2f76984c99a8a43c261f6f5fa583b64a4ba","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":100,"context_line":"                    value[\u0027ports\u0027][address] \u003d [[mac, ip]"},{"line_number":101,"context_line":"                                               for mac, ip in port_infos]"},{"line_number":102,"context_line":"        return fdb_entries"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ac7a964_368c7f7f","line":102,"in_reply_to":"7ac7a964_33e1f19a","updated":"2014-08-15 17:40:22.000000000","message":"Incidentally, this is left-over because originally I didn\u0027t want to mutate the data structure that was passed in (like you said in your previous comment).  So, my intent was to return a new data structure.  However, I never returned to clean this up.","commit_id":"526564fcfd240cbc95a5dddabfec8e9056ad939b"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"933519fcd488314ca3b29bcaa0eb93a2e66468b6","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        :returns: Deep copy with PortInfo converted to [mac, ip]"},{"line_number":114,"context_line":"        \"\"\""},{"line_number":115,"context_line":"        marshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":116,"context_line":"        for _, value in marshalled.items():"},{"line_number":117,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":118,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":119,"context_line":"                    value[\u0027ports\u0027][address] \u003d [[mac, ip]"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_15999e78","line":116,"updated":"2014-08-23 14:27:05.000000000","message":"Same comment on using .values() or .itervalues().","commit_id":"bd76c67f21c2e35935b95734e44e75ce033c5ad2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"16f56b2fc8fc5bcf4e45d52e13a00ba33c59e69f","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        :returns: Deep copy with PortInfo converted to [mac, ip]"},{"line_number":114,"context_line":"        \"\"\""},{"line_number":115,"context_line":"        marshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":116,"context_line":"        for _, value in marshalled.items():"},{"line_number":117,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":118,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":119,"context_line":"                    value[\u0027ports\u0027][address] \u003d [[mac, ip]"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_e2a3614d","line":116,"in_reply_to":"1abeadc6_15999e78","updated":"2014-08-25 16:21:37.000000000","message":"Done","commit_id":"bd76c67f21c2e35935b95734e44e75ce033c5ad2"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"933519fcd488314ca3b29bcaa0eb93a2e66468b6","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        marshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":116,"context_line":"        for _, value in marshalled.items():"},{"line_number":117,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":118,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":119,"context_line":"                    value[\u0027ports\u0027][address] \u003d [[mac, ip]"},{"line_number":120,"context_line":"                                               for mac, ip in port_infos]"},{"line_number":121,"context_line":"        return marshalled"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_558eb62e","line":118,"updated":"2014-08-23 14:27:05.000000000","message":"iteritems()?","commit_id":"bd76c67f21c2e35935b95734e44e75ce033c5ad2"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"16f56b2fc8fc5bcf4e45d52e13a00ba33c59e69f","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        marshalled \u003d copy.deepcopy(fdb_entries)"},{"line_number":116,"context_line":"        for _, value in marshalled.items():"},{"line_number":117,"context_line":"            if \u0027ports\u0027 in value:"},{"line_number":118,"context_line":"                for address, port_infos in value[\u0027ports\u0027].items():"},{"line_number":119,"context_line":"                    value[\u0027ports\u0027][address] \u003d [[mac, ip]"},{"line_number":120,"context_line":"                                               for mac, ip in port_infos]"},{"line_number":121,"context_line":"        return marshalled"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_c29e6507","line":118,"in_reply_to":"1abeadc6_558eb62e","updated":"2014-08-25 16:21:37.000000000","message":"See reply in neutron/agent/l2population_rpc.py.","commit_id":"bd76c67f21c2e35935b95734e44e75ce033c5ad2"}],"neutron/plugins/ofagent/agent/ofa_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"576e45870d175cacca25ae9a9ad1d0e9c232c78e","unresolved":false,"context_lines":[{"line_number":376,"context_line":"                if port_info \u003d\u003d n_const.FLOODING_ENTRY:"},{"line_number":377,"context_line":"                    continue"},{"line_number":378,"context_line":"                self.ryuapp.add_arp_table_entry("},{"line_number":379,"context_line":"                    lvm.vlan, port_info[1], port_info[0])"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    @log.log"},{"line_number":382,"context_line":"    def _fdb_remove_arp(self, lvm, agent_ports):"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_4ce950e5","line":379,"updated":"2014-09-03 05:31:55.000000000","message":"please adapt this.","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b7941e7f92e5ce4f37d8681ca2cf43539f78b644","unresolved":false,"context_lines":[{"line_number":376,"context_line":"                if port_info \u003d\u003d n_const.FLOODING_ENTRY:"},{"line_number":377,"context_line":"                    continue"},{"line_number":378,"context_line":"                self.ryuapp.add_arp_table_entry("},{"line_number":379,"context_line":"                    lvm.vlan, port_info[1], port_info[0])"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"    @log.log"},{"line_number":382,"context_line":"    def _fdb_remove_arp(self, lvm, agent_ports):"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_012e1bfb","line":379,"in_reply_to":"fa98f980_4ce950e5","updated":"2014-09-03 17:02:55.000000000","message":"Yamamoto, thanks for pointing this out.  I did not notice this new code in my rebase and conflict resolution.  I will get it.","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"576e45870d175cacca25ae9a9ad1d0e9c232c78e","unresolved":false,"context_lines":[{"line_number":384,"context_line":"            for port_info in port_infos:"},{"line_number":385,"context_line":"                if port_info \u003d\u003d n_const.FLOODING_ENTRY:"},{"line_number":386,"context_line":"                    continue"},{"line_number":387,"context_line":"                self.ryuapp.del_arp_table_entry(lvm.vlan, port_info[1])"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"    def add_fdb_flow(self, br, port_info, remote_ip, lvm, ofport):"},{"line_number":390,"context_line":"        if port_info \u003d\u003d n_const.FLOODING_ENTRY:"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_6ce61417","line":387,"updated":"2014-09-03 05:31:55.000000000","message":"ditto.","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b7941e7f92e5ce4f37d8681ca2cf43539f78b644","unresolved":false,"context_lines":[{"line_number":384,"context_line":"            for port_info in port_infos:"},{"line_number":385,"context_line":"                if port_info \u003d\u003d n_const.FLOODING_ENTRY:"},{"line_number":386,"context_line":"                    continue"},{"line_number":387,"context_line":"                self.ryuapp.del_arp_table_entry(lvm.vlan, port_info[1])"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"    def add_fdb_flow(self, br, port_info, remote_ip, lvm, ofport):"},{"line_number":390,"context_line":"        if port_info \u003d\u003d n_const.FLOODING_ENTRY:"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_81284be3","line":387,"in_reply_to":"fa98f980_6ce61417","updated":"2014-09-03 17:02:55.000000000","message":"ditto","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"da9c55da5797f4a2b60d6dc02e91f0fd0ad57410","unresolved":false,"context_lines":[{"line_number":374,"context_line":"        else:"},{"line_number":375,"context_line":"            self.setup_entry_for_arp_reply(br, \u0027add\u0027, lvm.vlan, port_info[0],"},{"line_number":376,"context_line":"                                           port_info[1])"},{"line_number":377,"context_line":"            if not self.dvr_agent.is_dvr_router_interface(port_info[2]):"},{"line_number":378,"context_line":"                br.add_flow(table\u003dconstants.UCAST_TO_TUN,"},{"line_number":379,"context_line":"                            priority\u003d2,"},{"line_number":380,"context_line":"                            dl_vlan\u003dlvm.vlan,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_b8fde73e","line":377,"updated":"2014-08-07 07:02:25.000000000","message":"Please remove device_owner check here.  \r\n\r\nWe will not be needed to fix the OFAgent and LinuxBridge implementation sides as they continue to see old tuples only.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"}],"neutron/tests/unit/agent/l2population_rpc_base.py":[{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"da9c55da5797f4a2b60d6dc02e91f0fd0ad57410","unresolved":false,"context_lines":[{"line_number":92,"context_line":"                \u0027ports\u0027: {"},{"line_number":93,"context_line":"                    self.local_ip: [],"},{"line_number":94,"context_line":"                    self.ports[0].ip: [[self.lvms[0].mac, self.lvms[0].ip,"},{"line_number":95,"context_line":"                                        \"compute:owner0\"]]},"},{"line_number":96,"context_line":"            },"},{"line_number":97,"context_line":"            self.lvms[1].net: {"},{"line_number":98,"context_line":"                \u0027network_type\u0027: self.type_gre,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_98d023ca","line":95,"updated":"2014-08-07 07:02:25.000000000","message":"Please remove device_owner from here.\r\nDitto for changes below.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"}],"neutron/tests/unit/agent/test_l2population_rpc.py":[{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"da9c55da5797f4a2b60d6dc02e91f0fd0ad57410","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        expected \u003d {"},{"line_number":40,"context_line":"            self.lvm1: {"},{"line_number":41,"context_line":"                self.ports[0].ip: [[self.lvms[0].mac, self.lvms[0].ip,"},{"line_number":42,"context_line":"                                    \"compute:owner0\"]],"},{"line_number":43,"context_line":"                self.local_ip: []},"},{"line_number":44,"context_line":"            None: {},"},{"line_number":45,"context_line":"            self.lvm3: {"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_78cd0f30","line":42,"updated":"2014-08-07 07:02:25.000000000","message":"Please remove device_owner from here as well.\r\n\r\nDitto for changes below","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"}],"neutron/tests/unit/ml2/drivers/test_l2population.py":[{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"da9c55da5797f4a2b60d6dc02e91f0fd0ad57410","unresolved":false,"context_lines":[{"line_number":181,"context_line":"                                   {\u002720.0.0.1\u0027: [constants.FLOODING_ENTRY,"},{"line_number":182,"context_line":"                                                 (p1[\u0027mac_address\u0027],"},{"line_number":183,"context_line":"                                                  p1_ips[0],"},{"line_number":184,"context_line":"                                                  p1[\u0027device_owner\u0027])]},"},{"line_number":185,"context_line":"                                   \u0027network_type\u0027: \u0027vxlan\u0027,"},{"line_number":186,"context_line":"                                   \u0027segment_id\u0027: 1}}},"},{"line_number":187,"context_line":"                                \u0027namespace\u0027: None,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_58784bf7","line":184,"updated":"2014-08-07 07:02:25.000000000","message":"As we discussed, please remove device_owner from this file.\r\nDitto everywhere for the changes below.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"d9e2e6ddd9695916dfab6232d11216642a45df20","unresolved":false,"context_lines":[{"line_number":193,"context_line":""},{"line_number":194,"context_line":"        port_info_list \u003d entries[\u0027foouuid\u0027][\u0027ports\u0027][\u0027192.168.0.10\u0027]"},{"line_number":195,"context_line":"        # Check that the lists have been properly converted to PortInfo"},{"line_number":196,"context_line":"        self.assertTrue(isinstance(port_info_list[0], l2pop_rpc.PortInfo))"},{"line_number":197,"context_line":"        self.assertTrue(isinstance(port_info_list[1], l2pop_rpc.PortInfo))"},{"line_number":198,"context_line":"        self.assertEqual((\u002700:00:00:00:00:00\u0027, \u00270.0.0.0\u0027), port_info_list[0])"},{"line_number":199,"context_line":"        self.assertEqual((\u0027fa:16:3e:ff:8c:0f\u0027, \u002710.0.0.6\u0027), port_info_list[1])"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa98f980_a8ed92f1","line":196,"updated":"2014-09-09 08:10:15.000000000","message":"assertIsInstance ?","commit_id":"38e3e9eee562dc0a6e973d6aec8a4c1c8a596059"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"ad7a069d5d63f73be8a284da3f7c030bc635b752","unresolved":false,"context_lines":[{"line_number":193,"context_line":""},{"line_number":194,"context_line":"        port_info_list \u003d entries[\u0027foouuid\u0027][\u0027ports\u0027][\u0027192.168.0.10\u0027]"},{"line_number":195,"context_line":"        # Check that the lists have been properly converted to PortInfo"},{"line_number":196,"context_line":"        self.assertTrue(isinstance(port_info_list[0], l2pop_rpc.PortInfo))"},{"line_number":197,"context_line":"        self.assertTrue(isinstance(port_info_list[1], l2pop_rpc.PortInfo))"},{"line_number":198,"context_line":"        self.assertEqual((\u002700:00:00:00:00:00\u0027, \u00270.0.0.0\u0027), port_info_list[0])"},{"line_number":199,"context_line":"        self.assertEqual((\u0027fa:16:3e:ff:8c:0f\u0027, \u002710.0.0.6\u0027), port_info_list[1])"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa98f980_bdd396d3","line":196,"in_reply_to":"fa98f980_a8ed92f1","updated":"2014-09-12 18:09:20.000000000","message":"Done","commit_id":"38e3e9eee562dc0a6e973d6aec8a4c1c8a596059"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"d9e2e6ddd9695916dfab6232d11216642a45df20","unresolved":false,"context_lines":[{"line_number":194,"context_line":"        port_info_list \u003d entries[\u0027foouuid\u0027][\u0027ports\u0027][\u0027192.168.0.10\u0027]"},{"line_number":195,"context_line":"        # Check that the lists have been properly converted to PortInfo"},{"line_number":196,"context_line":"        self.assertTrue(isinstance(port_info_list[0], l2pop_rpc.PortInfo))"},{"line_number":197,"context_line":"        self.assertTrue(isinstance(port_info_list[1], l2pop_rpc.PortInfo))"},{"line_number":198,"context_line":"        self.assertEqual((\u002700:00:00:00:00:00\u0027, \u00270.0.0.0\u0027), port_info_list[0])"},{"line_number":199,"context_line":"        self.assertEqual((\u0027fa:16:3e:ff:8c:0f\u0027, \u002710.0.0.6\u0027), port_info_list[1])"},{"line_number":200,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"fa98f980_c8b9f6ed","line":197,"updated":"2014-09-09 08:10:15.000000000","message":"ditto","commit_id":"38e3e9eee562dc0a6e973d6aec8a4c1c8a596059"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"d9e2e6ddd9695916dfab6232d11216642a45df20","unresolved":false,"context_lines":[{"line_number":211,"context_line":"        port_info_list \u003d entries[\u0027foouuid\u0027][\u0027ports\u0027][\u0027192.168.0.10\u0027]"},{"line_number":212,"context_line":"        # Check that the PortInfo tuples have been converted to list"},{"line_number":213,"context_line":"        self.assertTrue(isinstance(port_info_list[0], list))"},{"line_number":214,"context_line":"        self.assertTrue(isinstance(port_info_list[1], list))"},{"line_number":215,"context_line":"        self.assertEqual([\u002700:00:00:00:00:00\u0027, \u00270.0.0.0\u0027], port_info_list[0])"},{"line_number":216,"context_line":"        self.assertEqual([\u0027fa:16:3e:ff:8c:0f\u0027, \u002710.0.0.6\u0027], port_info_list[1])"},{"line_number":217,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"fa98f980_28b9a2e9","line":214,"updated":"2014-09-09 08:10:15.000000000","message":"ditto x2","commit_id":"38e3e9eee562dc0a6e973d6aec8a4c1c8a596059"}],"neutron/tests/unit/ofagent/test_ofa_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"576e45870d175cacca25ae9a9ad1d0e9c232c78e","unresolved":false,"context_lines":[{"line_number":555,"context_line":"                      \u0027ports\u0027:"},{"line_number":556,"context_line":"                      {\u0027agent_ip\u0027:"},{"line_number":557,"context_line":"                       [[\u0027mac\u0027, \u0027ip\u0027],"},{"line_number":558,"context_line":"                        n_const.FLOODING_ENTRY]}}}"},{"line_number":559,"context_line":"        with contextlib.nested("},{"line_number":560,"context_line":"            mock.patch.object(self.agent.ryuapp, \"add_arp_table_entry\"),"},{"line_number":561,"context_line":"            mock.patch.object(self.agent.ryuapp, \"del_arp_table_entry\"),"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_df3324a9","line":558,"updated":"2014-09-03 05:31:55.000000000","message":"please adapt this.","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b7941e7f92e5ce4f37d8681ca2cf43539f78b644","unresolved":false,"context_lines":[{"line_number":555,"context_line":"                      \u0027ports\u0027:"},{"line_number":556,"context_line":"                      {\u0027agent_ip\u0027:"},{"line_number":557,"context_line":"                       [[\u0027mac\u0027, \u0027ip\u0027],"},{"line_number":558,"context_line":"                        n_const.FLOODING_ENTRY]}}}"},{"line_number":559,"context_line":"        with contextlib.nested("},{"line_number":560,"context_line":"            mock.patch.object(self.agent.ryuapp, \"add_arp_table_entry\"),"},{"line_number":561,"context_line":"            mock.patch.object(self.agent.ryuapp, \"del_arp_table_entry\"),"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_5e0c81ed","line":558,"in_reply_to":"fa98f980_df3324a9","updated":"2014-09-03 17:02:55.000000000","message":"Done","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"576e45870d175cacca25ae9a9ad1d0e9c232c78e","unresolved":false,"context_lines":[{"line_number":575,"context_line":"                      \u0027ports\u0027:"},{"line_number":576,"context_line":"                      {self.lvms[1].ip:"},{"line_number":577,"context_line":"                       [l2pop_rpc.PortInfo(\u0027mac\u0027, \u0027ip\u0027),"},{"line_number":578,"context_line":"                        n_const.FLOODING_ENTRY]}}}"},{"line_number":579,"context_line":"        with contextlib.nested("},{"line_number":580,"context_line":"            mock.patch.object(self.agent, \u0027_setup_tunnel_port\u0027),"},{"line_number":581,"context_line":"            mock.patch.object(self.agent.int_br, \u0027install_tunnel_output\u0027),"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_ffdb884c","line":578,"updated":"2014-09-03 05:31:55.000000000","message":"shouldn\u0027t these FLOODING_ENTRY be PortInfo version?","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"0121250e375286d13bf3bbe2cd3a854c38095cca","unresolved":false,"context_lines":[{"line_number":575,"context_line":"                      \u0027ports\u0027:"},{"line_number":576,"context_line":"                      {self.lvms[1].ip:"},{"line_number":577,"context_line":"                       [l2pop_rpc.PortInfo(\u0027mac\u0027, \u0027ip\u0027),"},{"line_number":578,"context_line":"                        n_const.FLOODING_ENTRY]}}}"},{"line_number":579,"context_line":"        with contextlib.nested("},{"line_number":580,"context_line":"            mock.patch.object(self.agent, \u0027_setup_tunnel_port\u0027),"},{"line_number":581,"context_line":"            mock.patch.object(self.agent.int_br, \u0027install_tunnel_output\u0027),"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_aa78b8c4","line":578,"in_reply_to":"fa98f980_6151a435","updated":"2014-09-03 23:54:03.000000000","message":"i don\u0027t have a strong opinion either as far as it\u0027s consistent.","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b7941e7f92e5ce4f37d8681ca2cf43539f78b644","unresolved":false,"context_lines":[{"line_number":575,"context_line":"                      \u0027ports\u0027:"},{"line_number":576,"context_line":"                      {self.lvms[1].ip:"},{"line_number":577,"context_line":"                       [l2pop_rpc.PortInfo(\u0027mac\u0027, \u0027ip\u0027),"},{"line_number":578,"context_line":"                        n_const.FLOODING_ENTRY]}}}"},{"line_number":579,"context_line":"        with contextlib.nested("},{"line_number":580,"context_line":"            mock.patch.object(self.agent, \u0027_setup_tunnel_port\u0027),"},{"line_number":581,"context_line":"            mock.patch.object(self.agent.int_br, \u0027install_tunnel_output\u0027),"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_6151a435","line":578,"in_reply_to":"fa98f980_ffdb884c","updated":"2014-09-03 17:02:55.000000000","message":"So, I could change all of these.  However, the test passes because the namedtuple supports comparison with a regular python tuple.  So, the comparison on L392 of neutron/plugins/ofagent/agent/ofa_neutron_agent.py will succeed and go in to a code path that doesn\u0027t really require the value of the constant at all.  So, it works.  This is true throughout because FLOODING_ENTRY is only used for comparison.\n\nThis begs another question.  Should the constant be changed in constants.py to use a namedtuple?  That could make things a lot cleaner.  The only problem is that constants.py doesn\u0027t import anything and that would have to change.  I\u0027m not sure if it is important to keep it that way or not.  I don\u0027t feel strongly either way.","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"}],"neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py":[{"author":{"_account_id":9361,"name":"Vivekanandan Narasimhan","email":"n.vivekanandan@ericsson.com","username":"viveknarasimhan"},"change_message_id":"da9c55da5797f4a2b60d6dc02e91f0fd0ad57410","unresolved":false,"context_lines":[{"line_number":995,"context_line":"                      \u0027segment_id\u0027: \u0027tun2\u0027,"},{"line_number":996,"context_line":"                      \u0027ports\u0027:"},{"line_number":997,"context_line":"                      {\u0027agent_ip\u0027:"},{"line_number":998,"context_line":"                       [[FAKE_MAC, FAKE_IP1, FAKE_OWNER],"},{"line_number":999,"context_line":"                        n_const.FLOODING_ENTRY]}}}"},{"line_number":1000,"context_line":"        with mock.patch.object(self.agent.tun_br,"},{"line_number":1001,"context_line":"                               \"deferred\") as defer_fn:"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_385c7780","line":998,"updated":"2014-08-07 07:02:25.000000000","message":"Plese do away device_owner from this file as well.","commit_id":"792205980cf9bc2c780d28f95ee5f5048918f620"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"576e45870d175cacca25ae9a9ad1d0e9c232c78e","unresolved":false,"context_lines":[{"line_number":1007,"context_line":"                      \u0027ports\u0027:"},{"line_number":1008,"context_line":"                      {\u0027agent_ip\u0027:"},{"line_number":1009,"context_line":"                       [l2pop_rpc.PortInfo(FAKE_MAC, FAKE_IP1),"},{"line_number":1010,"context_line":"                        n_const.FLOODING_ENTRY]}}}"},{"line_number":1011,"context_line":"        with mock.patch.object(self.agent.tun_br,"},{"line_number":1012,"context_line":"                               \"deferred\") as defer_fn:"},{"line_number":1013,"context_line":"            self.agent.fdb_add(None, fdb_entry)"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_bfbca0dd","line":1010,"updated":"2014-09-03 05:31:55.000000000","message":"shouldn\u0027t these FLOODING_ENTRY be PortInfo?","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"b7941e7f92e5ce4f37d8681ca2cf43539f78b644","unresolved":false,"context_lines":[{"line_number":1007,"context_line":"                      \u0027ports\u0027:"},{"line_number":1008,"context_line":"                      {\u0027agent_ip\u0027:"},{"line_number":1009,"context_line":"                       [l2pop_rpc.PortInfo(FAKE_MAC, FAKE_IP1),"},{"line_number":1010,"context_line":"                        n_const.FLOODING_ENTRY]}}}"},{"line_number":1011,"context_line":"        with mock.patch.object(self.agent.tun_br,"},{"line_number":1012,"context_line":"                               \"deferred\") as defer_fn:"},{"line_number":1013,"context_line":"            self.agent.fdb_add(None, fdb_entry)"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa98f980_04b7063b","line":1010,"in_reply_to":"fa98f980_bfbca0dd","updated":"2014-09-03 17:02:55.000000000","message":"See reply to your other comment in test_ofa_neutron_agent.py","commit_id":"df99ba44505477e055ef9f316917ef679c09b928"}]}
