)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"214d9724e2a3625ab6377d0fbcb91ae5d8f3c1e7","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Yalei Wang \u003cyalei.wang@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-09 14:17:17 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Ovs interface info should be get instead of port info"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Methords in ovs_lib.py will get the ports info by list-ports, but will loop the"},{"line_number":10,"context_line":"interfaces with the names list get. Sometimes ports does not equal to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3afb71cf_eabcb807","line":7,"updated":"2015-06-09 12:11:42.000000000","message":"can you explain what needs this?","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"cbbb6953c6efa3f9371e800a4f9069d11bbedb94","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Yalei Wang \u003cyalei.wang@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-09 14:17:17 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Ovs interface info should be get instead of port info"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Methords in ovs_lib.py will get the ports info by list-ports, but will loop the"},{"line_number":10,"context_line":"interfaces with the names list get. Sometimes ports does not equal to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa32b979_61ecf4c7","line":7,"in_reply_to":"3afb71cf_eabcb807","updated":"2015-06-15 07:39:29.000000000","message":"Thanks, the reason is in lines below.","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6bd4bc3f1fa1f59a90a04a66559b5c2c9ae3bdf1","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Yalei Wang \u003cyalei.wang@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-09 14:17:17 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Ovs interface info should be get instead of port info"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Methords in ovs_lib.py will get the ports info by list-ports, but will loop the"},{"line_number":10,"context_line":"interfaces with the names list get. Sometimes ports does not equal to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa32b979_d855b1c6","line":7,"in_reply_to":"fa32b979_61ecf4c7","updated":"2015-06-15 09:05:33.000000000","message":"do you mean bond?\n\novs\u0027s bond support is somehow awkward in openflow POV.\ni\u0027m curious what you want to use it for.","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"bb91f92c1b5259a81125caec6f5ed903790c2988","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Yalei Wang \u003cyalei.wang@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-09 14:17:17 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Ovs interface info should be get instead of port info"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Methords in ovs_lib.py will get the ports info by list-ports, but will loop the"},{"line_number":10,"context_line":"interfaces with the names list get. Sometimes ports does not equal to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa32b979_489be572","line":7,"in_reply_to":"fa32b979_d855b1c6","updated":"2015-06-16 01:58:51.000000000","message":"Hi Yamamoto, because the code now is get the port list but loop the interface next, it will lead to exception when the port not equals to interface. I just want to fix this issue.","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"c9feb4567c0a1c41431ff8e2fd47f680c657613f","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Ovs interface info should be get instead of port info"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Methords in ovs_lib.py will get the ports info by list-ports, but will loop the"},{"line_number":10,"context_line":"interfaces with the names list get. Sometimes ports does not equal to"},{"line_number":11,"context_line":"interfaces, when it\u0027s a bond port created in OVS."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3afb71cf_9d4477b7","line":9,"updated":"2015-06-09 08:38:28.000000000","message":"Methords\u003d\u003d\u003eMethods","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"cbbb6953c6efa3f9371e800a4f9069d11bbedb94","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Ovs interface info should be get instead of port info"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Methords in ovs_lib.py will get the ports info by list-ports, but will loop the"},{"line_number":10,"context_line":"interfaces with the names list get. Sometimes ports does not equal to"},{"line_number":11,"context_line":"interfaces, when it\u0027s a bond port created in OVS."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"fa32b979_81dd7816","line":9,"in_reply_to":"3afb71cf_9d4477b7","updated":"2015-06-15 07:39:29.000000000","message":"Done","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"af7a7dae1f0d205207a3a06f04a99765bcd2fc3c","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Methods in ovs_lib.py get the ports\u0027 info by list-ports of ovs-vsctl, but next"},{"line_number":10,"context_line":"it will loop the interfaces with the ports\u0027 names list get. Because in OVS"},{"line_number":11,"context_line":"sometimes ports don\u0027t equal to interfaces, for example the bond port created in"},{"line_number":12,"context_line":"OVS."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I29c220e099b8dcf78248e2d660c435578bb2932d"},{"line_number":15,"context_line":"Closes-bug: #1460494"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_6271eba7","line":12,"updated":"2015-07-14 17:34:45.000000000","message":"Can we clarify this commit message?  This last sentence just sorta hangs...","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"4056998e36f3922f45957da6f6bf4d38b676323b","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Methods in ovs_lib.py get the ports\u0027 info by list-ports of ovs-vsctl, but next"},{"line_number":10,"context_line":"it will loop the interfaces with the ports\u0027 names list get. Because in OVS"},{"line_number":11,"context_line":"sometimes ports don\u0027t equal to interfaces, for example the bond port created in"},{"line_number":12,"context_line":"OVS."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I29c220e099b8dcf78248e2d660c435578bb2932d"},{"line_number":15,"context_line":"Closes-bug: #1460494"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_fcea5273","line":12,"in_reply_to":"9a41bdd9_6271eba7","updated":"2015-07-17 12:05:30.000000000","message":"Thanks, I will update it.","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"}],"neutron/agent/common/ovs_lib.py":[{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"c9feb4567c0a1c41431ff8e2fd47f680c657613f","unresolved":false,"context_lines":[{"line_number":298,"context_line":"                 (\u0027options\u0027, {\u0027peer\u0027: remote_name})]"},{"line_number":299,"context_line":"        return self.add_port(local_name, *attrs)"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    def get_port_name_list(self):"},{"line_number":302,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"    def get_port_stats(self, port_name):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_5d671f4d","line":301,"updated":"2015-06-09 08:38:28.000000000","message":"I think we should change the method name also as get_interface_name_list...??","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"cbbb6953c6efa3f9371e800a4f9069d11bbedb94","unresolved":false,"context_lines":[{"line_number":298,"context_line":"                 (\u0027options\u0027, {\u0027peer\u0027: remote_name})]"},{"line_number":299,"context_line":"        return self.add_port(local_name, *attrs)"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    def get_port_name_list(self):"},{"line_number":302,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"    def get_port_stats(self, port_name):"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_018ac8bf","line":301,"in_reply_to":"3afb71cf_5d671f4d","updated":"2015-06-15 07:39:29.000000000","message":"if rename the method from port to interface,  many places called this method should renamed too. could I add a comment here to mark the port is interface actually?","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"500602023e32d7a784c0a65c395b68b1ce70471b","unresolved":false,"context_lines":[{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    def get_port_name_list(self):"},{"line_number":302,"context_line":"        # get the port name list by list interface command"},{"line_number":303,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"    def get_port_stats(self, port_name):"},{"line_number":306,"context_line":"        return self.db_get_val(\"Interface\", port_name, \"statistics\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_891a5dc5","line":303,"updated":"2015-06-27 08:45:01.000000000","message":"I dont understand why you change this API, the name is now misleading because as you said the interfaces list doesnt have to be the same as the port list","commit_id":"834c7ee797e6b4969061d3742641708e7808098b"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"b103d43365634941ad9420017ce19d8d56c920e8","unresolved":false,"context_lines":[{"line_number":300,"context_line":""},{"line_number":301,"context_line":"    def get_port_name_list(self):"},{"line_number":302,"context_line":"        # get the port name list by list interface command"},{"line_number":303,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":304,"context_line":""},{"line_number":305,"context_line":"    def get_port_stats(self, port_name):"},{"line_number":306,"context_line":"        return self.db_get_val(\"Interface\", port_name, \"statistics\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_7a4b592c","line":303,"in_reply_to":"fa32b979_891a5dc5","updated":"2015-07-14 08:33:07.000000000","message":"thanks Gal, because the get_port_name_list is used to get interfaces actually in codes. I think the name of the method is also misleading.\n\nThe problem is that the caller will loop the interfaces list returned, but the method returns port list now.\n\nthe API is just for neutron get the port associated to a neutron port.","commit_id":"834c7ee797e6b4969061d3742641708e7808098b"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"d5218176b549146831542c96b13144f60f5d863d","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        return self.add_port(local_name, *attrs)"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"    def get_port_name_list(self):"},{"line_number":308,"context_line":"        # get the port name list by list interface command"},{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def get_port_stats(self, port_name):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_d9f8054c","line":308,"updated":"2015-07-14 10:07:36.000000000","message":"Thanks for changing the implementations (native and CLI)\n\nI think that its important to also change it here, have another method that is \"get_face_name_list\".\n\nIn another patch you could change the code calling this, if you want me to do it, please let me know and i will gladly take this task","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"4056998e36f3922f45957da6f6bf4d38b676323b","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        return self.add_port(local_name, *attrs)"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"    def get_port_name_list(self):"},{"line_number":308,"context_line":"        # get the port name list by list interface command"},{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def get_port_stats(self, port_name):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_9f7e9817","line":308,"in_reply_to":"9a41bdd9_d9f8054c","updated":"2015-07-17 12:05:30.000000000","message":"thanks Gal! \n\nThanks for reminding. You can add a new one, and if that take you too much time, I can continue it.","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f5a92a16128b8174ffade739c5f789792e031920","unresolved":false,"context_lines":[{"line_number":304,"context_line":"                 (\u0027options\u0027, {\u0027peer\u0027: remote_name})]"},{"line_number":305,"context_line":"        return self.add_port(local_name, *attrs)"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"    def get_port_name_list(self):"},{"line_number":308,"context_line":"        # get the port name list by list interface command"},{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_0d8e6878","line":307,"updated":"2015-07-20 19:59:49.000000000","message":"method now returns an interface list not a port list, i would prefer we update method name to avoid any confusion","commit_id":"bac466fdb6f2d25a98eed6acef7d6acd9fcd4bb3"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"01e61fe42c399b236a8dc25c7388e748fa8a76ec","unresolved":false,"context_lines":[{"line_number":304,"context_line":"                 (\u0027options\u0027, {\u0027peer\u0027: remote_name})]"},{"line_number":305,"context_line":"        return self.add_port(local_name, *attrs)"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"    def get_port_name_list(self):"},{"line_number":308,"context_line":"        # get the port name list by list interface command"},{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_eee8cb7e","line":307,"in_reply_to":"3a50d1a3_0d8e6878","updated":"2015-07-21 01:48:08.000000000","message":"Thanks Brandily, I will update the name.\nAnd as Gal adviced, I will divide this patch into two part. one for adding a new API, one for replacing the caller.","commit_id":"bac466fdb6f2d25a98eed6acef7d6acd9fcd4bb3"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"4b19eb2ba9028545abb3f9739c2b616b53aaf86c","unresolved":false,"context_lines":[{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def get_port_name_list(self):"},{"line_number":312,"context_line":"        # get the port name list by list interface command"},{"line_number":313,"context_line":"        return self.ovsdb.list_ports(self.br_name).execute(check_error\u003dTrue)"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"    def get_port_stats(self, port_name):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_e0ac4f37","line":312,"updated":"2015-07-21 06:49:57.000000000","message":"The comment confuses me. What do you mean about \"by list interface command\"?","commit_id":"19a97847e361f48c4a65b82a53fac830804e9d78"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"93112f2bcd09020408b9fc3a61abd9a59bfa02b5","unresolved":false,"context_lines":[{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def get_port_name_list(self):"},{"line_number":312,"context_line":"        # get the port name list by list interface command"},{"line_number":313,"context_line":"        return self.ovsdb.list_ports(self.br_name).execute(check_error\u003dTrue)"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"    def get_port_stats(self, port_name):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a50d1a3_c6292c39","line":312,"in_reply_to":"3a50d1a3_e0ac4f37","updated":"2015-07-21 06:57:41.000000000","message":"oops, thanks Ichihara.","commit_id":"19a97847e361f48c4a65b82a53fac830804e9d78"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"417c3cdf02162428e5252ed428a1b14af5e63de4","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        return self.add_port(local_name, *attrs)"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"    def get_iface_name_list(self):"},{"line_number":308,"context_line":"        # get the interface name list by list interface command"},{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def get_port_name_list(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_c9010608","line":308,"updated":"2015-07-22 03:41:54.000000000","message":"don\u0027t document implementation here.\n\nhow about \"get the interface name list for this bridge\"","commit_id":"8b22f622cdce054862ae9c469e842c5dd3e8c276"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"453ce8d8a2da1e090fcfaae05cf41f9109bd5a4c","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        return self.add_port(local_name, *attrs)"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"    def get_iface_name_list(self):"},{"line_number":308,"context_line":"        # get the interface name list by list interface command"},{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def get_port_name_list(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_3dcf802a","line":308,"in_reply_to":"3a50d1a3_c9010608","updated":"2015-07-22 05:50:04.000000000","message":"Done","commit_id":"8b22f622cdce054862ae9c469e842c5dd3e8c276"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"417c3cdf02162428e5252ed428a1b14af5e63de4","unresolved":false,"context_lines":[{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def get_port_name_list(self):"},{"line_number":312,"context_line":"        # get the port name list by list port command"},{"line_number":313,"context_line":"        return self.ovsdb.list_ports(self.br_name).execute(check_error\u003dTrue)"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"    def get_port_stats(self, port_name):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_4c0c243b","line":312,"updated":"2015-07-22 03:41:54.000000000","message":"ditto","commit_id":"8b22f622cdce054862ae9c469e842c5dd3e8c276"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"453ce8d8a2da1e090fcfaae05cf41f9109bd5a4c","unresolved":false,"context_lines":[{"line_number":309,"context_line":"        return self.ovsdb.list_ifaces(self.br_name).execute(check_error\u003dTrue)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"    def get_port_name_list(self):"},{"line_number":312,"context_line":"        # get the port name list by list port command"},{"line_number":313,"context_line":"        return self.ovsdb.list_ports(self.br_name).execute(check_error\u003dTrue)"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"    def get_port_stats(self, port_name):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_5dd4ccbb","line":312,"in_reply_to":"3a50d1a3_4c0c243b","updated":"2015-07-22 05:50:04.000000000","message":"Done","commit_id":"8b22f622cdce054862ae9c469e842c5dd3e8c276"}],"neutron/agent/ovsdb/api.py":[{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"65653da772ae872a6a13e00539c9dea8153abed4","unresolved":false,"context_lines":[{"line_number":316,"context_line":"        \"\"\""},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"    @abc.abstractmethod"},{"line_number":319,"context_line":"    def list_ifaces(self, bridge):"},{"line_number":320,"context_line":"        \"\"\"Create a command to list the names of interfaces on a bridge"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"        :param bridge: The name of the bridge"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_64b53e7c","line":319,"updated":"2015-06-18 06:13:41.000000000","message":"How about renaming  to def list_interface(self, bridge).","commit_id":"396f898458ec87710c6e6f6788416e40de7b871c"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"faeb5c7c8fe7b5465a2a4db8e3dcd10c8693173b","unresolved":false,"context_lines":[{"line_number":316,"context_line":"        \"\"\""},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"    @abc.abstractmethod"},{"line_number":319,"context_line":"    def list_ifaces(self, bridge):"},{"line_number":320,"context_line":"        \"\"\"Create a command to list the names of interfaces on a bridge"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"        :param bridge: The name of the bridge"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_c13f03b4","line":319,"in_reply_to":"fa32b979_64b53e7c","updated":"2015-07-14 08:33:51.000000000","message":"Thanks Gupta, I use iface because I find it\u0027s used in elsewhere.\nIf you insist, I will update it.","commit_id":"396f898458ec87710c6e6f6788416e40de7b871c"}],"neutron/agent/ovsdb/impl_idl.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"214d9724e2a3625ab6377d0fbcb91ae5d8f3c1e7","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        return cmd.PortToBridgeCommand(self, name)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def iface_to_br(self, name):"},{"line_number":157,"context_line":"        # For our purposes, ports and interfaces always have the same name"},{"line_number":158,"context_line":"        return cmd.PortToBridgeCommand(self, name)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def list_br(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3afb71cf_ea3278f1","line":157,"updated":"2015-06-09 12:11:42.000000000","message":"this needs to be sorted out if you want to distinguish interfaces and port.","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"cbbb6953c6efa3f9371e800a4f9069d11bbedb94","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        return cmd.PortToBridgeCommand(self, name)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"    def iface_to_br(self, name):"},{"line_number":157,"context_line":"        # For our purposes, ports and interfaces always have the same name"},{"line_number":158,"context_line":"        return cmd.PortToBridgeCommand(self, name)"},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    def list_br(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_04de566d","line":157,"in_reply_to":"3afb71cf_ea3278f1","updated":"2015-06-15 07:39:29.000000000","message":"Thanks for reminder!","commit_id":"58db3f979e0f4d15e18c34366bf5e6e7b1340728"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"500602023e32d7a784c0a65c395b68b1ce70471b","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        return cmd.ListPortsCommand(self, bridge)"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    def list_ifaces(self, bridge):"},{"line_number":205,"context_line":"        return cmd.ListPortsCommand(self, bridge)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_6976f907","line":205,"updated":"2015-06-27 08:45:01.000000000","message":"thats again misleading, you have two API\u0027s returning the same result.\n\nWe need to think that this OVS library is not only going to be used for the L2 OVS agent, and when it will be decomposed it also used by others.\n\nSo i believe we need two different methods here one for list interfaces and one for listing the ports","commit_id":"834c7ee797e6b4969061d3742641708e7808098b"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"b103d43365634941ad9420017ce19d8d56c920e8","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        return cmd.ListPortsCommand(self, bridge)"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    def list_ifaces(self, bridge):"},{"line_number":205,"context_line":"        return cmd.ListPortsCommand(self, bridge)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a41bdd9_e5c0c42c","line":205,"in_reply_to":"9a41bdd9_baaa1c6f","updated":"2015-07-14 08:33:07.000000000","message":"Thanks all, I will update the patch.","commit_id":"834c7ee797e6b4969061d3742641708e7808098b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"8bb1f65ab8940016e61ec72aece230957cbb2339","unresolved":false,"context_lines":[{"line_number":202,"context_line":"        return cmd.ListPortsCommand(self, bridge)"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    def list_ifaces(self, bridge):"},{"line_number":205,"context_line":"        return cmd.ListPortsCommand(self, bridge)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a41bdd9_baaa1c6f","line":205,"in_reply_to":"fa32b979_6976f907","updated":"2015-07-13 03:13:34.000000000","message":"+1\n\nit should match vsctl impl counterpart.","commit_id":"834c7ee797e6b4969061d3742641708e7808098b"}],"neutron/agent/ovsdb/native/commands.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"4264f94c839434e7d44687ce419831b74f436bc2","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [p.name for p in br.interfaces if p.name !\u003d self.bridge]"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_5a7143df","line":342,"range":{"start_line":342,"start_character":42,"end_line":342,"end_character":52},"updated":"2015-07-14 11:16:00.000000000","message":"i don\u0027t think there\u0027s \"interfaces\" column in the table.\ni think you need to iterate ports and their interfaces.","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"af7a7dae1f0d205207a3a06f04a99765bcd2fc3c","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [p.name for p in br.interfaces if p.name !\u003d self.bridge]"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_a2893377","line":342,"in_reply_to":"9a41bdd9_4f065d87","updated":"2015-07-14 17:34:45.000000000","message":"isn\u0027t that iteration going to hurt under scale?","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"4056998e36f3922f45957da6f6bf4d38b676323b","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [p.name for p in br.interfaces if p.name !\u003d self.bridge]"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_d6a014a8","line":342,"in_reply_to":"9a41bdd9_5a7143df","updated":"2015-07-17 12:05:30.000000000","message":"Thanks Takashi\tfor point this out, I will rework it.","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"9a376a3f6b91be8d804513ac19414262dc061a68","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [p.name for p in br.interfaces if p.name !\u003d self.bridge]"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_4f065d87","line":342,"in_reply_to":"9a41bdd9_5a7143df","updated":"2015-07-14 13:55:43.000000000","message":"good point, there isn\u0027t","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bd6e06f878ee80cb93dacbb1d67da94343f1b913","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [p.name for p in br.interfaces if p.name !\u003d self.bridge]"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_8a29a139","line":342,"in_reply_to":"9a41bdd9_82066f84","updated":"2015-07-14 19:17:54.000000000","message":"We really just need to have neutron start adding an interface external_id like neutron_bridge_name\u003d$bridge, then we could just do a db_find(\"Interface\", (\u0027external_ids\u0027\u003d{\u0027neutron-bridge-name\u0027: bridge})) or something like that.","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"4056998e36f3922f45957da6f6bf4d38b676323b","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [p.name for p in br.interfaces if p.name !\u003d self.bridge]"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_50cacc50","line":342,"in_reply_to":"9a41bdd9_8a29a139","updated":"2015-07-17 12:05:30.000000000","message":"Thanks Terry for your advice, I am not sure if we could update the content.\n\n@Gal, how do you think about it?","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"eabc7f340aaba144fe951bd9a67e323e0c11b1f4","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [p.name for p in br.interfaces if p.name !\u003d self.bridge]"},{"line_number":343,"context_line":""},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_82066f84","line":342,"in_reply_to":"9a41bdd9_a2893377","updated":"2015-07-14 17:45:33.000000000","message":"probably not, this is only for the local ports, lets say we have 1000 or even 5K per hypervisor.\nThats basically just iterating a dictionary with 5K entires, i don\u0027t think its that problematic (unless it happens a lot)","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"d5218176b549146831542c96b13144f60f5d863d","unresolved":false,"context_lines":[{"line_number":370,"context_line":"        pname \u003d next("},{"line_number":371,"context_line":"                port.name for port in ports if interface in port.interfaces)"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"        port \u003d idlutils.row_by_value(self.api.idl, \u0027Port\u0027, \u0027name\u0027, pname)"},{"line_number":374,"context_line":"        bridges \u003d self.api._tables[\u0027Bridge\u0027].rows.values()"},{"line_number":375,"context_line":"        self.result \u003d next(br.name for br in bridges if port in br.ports)"},{"line_number":376,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_f9270910","line":373,"updated":"2015-07-14 10:07:36.000000000","message":"You could avoid this line, if instead of finding pname above you would just return the port row itself","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"4056998e36f3922f45957da6f6bf4d38b676323b","unresolved":false,"context_lines":[{"line_number":370,"context_line":"        pname \u003d next("},{"line_number":371,"context_line":"                port.name for port in ports if interface in port.interfaces)"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"        port \u003d idlutils.row_by_value(self.api.idl, \u0027Port\u0027, \u0027name\u0027, pname)"},{"line_number":374,"context_line":"        bridges \u003d self.api._tables[\u0027Bridge\u0027].rows.values()"},{"line_number":375,"context_line":"        self.result \u003d next(br.name for br in bridges if port in br.ports)"},{"line_number":376,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_ddc91a5c","line":373,"in_reply_to":"9a41bdd9_f9270910","updated":"2015-07-17 12:05:30.000000000","message":"Thanks Gal! right!","commit_id":"6a7e1714cc7c04eea490d21d1bb9e28f3c45dc4f"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f5a92a16128b8174ffade739c5f789792e031920","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        for p in br.ports:"},{"line_number":344,"context_line":"            if p.name !\u003d self.bridge:"},{"line_number":345,"context_line":"                ifs.extend(p.interfaces)"},{"line_number":346,"context_line":"        self.result \u003d [p.name for p in ifs]"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":""},{"line_number":349,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_cd2ba081","line":346,"updated":"2015-07-20 19:59:49.000000000","message":"You can inline it:\n\n self.result \u003d [i.name for p in br.ports for i in p.interfaces if p.name !\u003d self.bridge]","commit_id":"bac466fdb6f2d25a98eed6acef7d6acd9fcd4bb3"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"01e61fe42c399b236a8dc25c7388e748fa8a76ec","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        for p in br.ports:"},{"line_number":344,"context_line":"            if p.name !\u003d self.bridge:"},{"line_number":345,"context_line":"                ifs.extend(p.interfaces)"},{"line_number":346,"context_line":"        self.result \u003d [p.name for p in ifs]"},{"line_number":347,"context_line":""},{"line_number":348,"context_line":""},{"line_number":349,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a50d1a3_0eb417cf","line":346,"in_reply_to":"3a50d1a3_cd2ba081","updated":"2015-07-21 01:48:08.000000000","message":"Thanks, Done","commit_id":"bac466fdb6f2d25a98eed6acef7d6acd9fcd4bb3"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"417c3cdf02162428e5252ed428a1b14af5e63de4","unresolved":false,"context_lines":[{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [i.name for p in br.ports for i in p.interfaces"},{"line_number":343,"context_line":"                       if p.name !\u003d self.bridge]"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":""},{"line_number":346,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_0977eed3","line":343,"updated":"2015-07-22 03:41:54.000000000","message":"[i.name for p in br.ports if p.name !\u003d self.bridge for i in p.interfaces]","commit_id":"8b22f622cdce054862ae9c469e842c5dd3e8c276"},{"author":{"_account_id":11114,"name":"yalei wang","email":"yalei.wang@intel.com","username":"yalie"},"change_message_id":"453ce8d8a2da1e090fcfaae05cf41f9109bd5a4c","unresolved":false,"context_lines":[{"line_number":340,"context_line":"    def run_idl(self, txn):"},{"line_number":341,"context_line":"        br \u003d idlutils.row_by_value(self.api.idl, \u0027Bridge\u0027, \u0027name\u0027, self.bridge)"},{"line_number":342,"context_line":"        self.result \u003d [i.name for p in br.ports for i in p.interfaces"},{"line_number":343,"context_line":"                       if p.name !\u003d self.bridge]"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":""},{"line_number":346,"context_line":"class PortToBridgeCommand(BaseCommand):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_fd04b84a","line":343,"in_reply_to":"3a50d1a3_0977eed3","updated":"2015-07-22 05:50:04.000000000","message":"Done","commit_id":"8b22f622cdce054862ae9c469e842c5dd3e8c276"}]}
