)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"0d0b4801ba98b7a605df5559ca22261f4b44a07b","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"If gateway IP rate limit was set, then under the same router,"},{"line_number":17,"context_line":"all the VMs without floating IP will share the bandwidth."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Partially-Implements blueprint: router-gateway-ip-qos"},{"line_number":20,"context_line":"Closes-Bug: #1757044"},{"line_number":21,"context_line":"Change-Id: Ie92ff0d4df0e85ce71c7d50f34ea6ff973812af8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3f79a3b5_6e0e053e","line":18,"updated":"2018-09-18 22:42:44.000000000","message":"Does this changes have DocImpact?","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"2230ef6eb75509d6f677442e4eab35f9ae6f6460","unresolved":false,"context_lines":[{"line_number":15,"context_line":""},{"line_number":16,"context_line":"If gateway IP rate limit was set, then under the same router,"},{"line_number":17,"context_line":"all the VMs without floating IP will share the bandwidth."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Partially-Implements blueprint: router-gateway-ip-qos"},{"line_number":20,"context_line":"Closes-Bug: #1757044"},{"line_number":21,"context_line":"Change-Id: Ie92ff0d4df0e85ce71c7d50f34ea6ff973812af8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3f79a3b5_ef1befc7","line":18,"in_reply_to":"3f79a3b5_6e0e053e","updated":"2018-09-19 02:16:37.000000000","message":"Seems such mark was not used for neutron anymore, but indeed we need doc works.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e66cf77a47200b80f7bdad256327360f5bd70c1","unresolved":false,"context_lines":[{"line_number":7,"context_line":"[L3][QoS] Agent side router gateway IP rate limit"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch implements the L3 agent side router gateway IP rate"},{"line_number":10,"context_line":"limit. For all router in centralized snat node (network node),"},{"line_number":11,"context_line":"the tc rules will be set on the corresponding device of router"},{"line_number":12,"context_line":"namespace:"},{"line_number":13,"context_line":"    1. Legacy and HA router, qrouter-namespace and qg-device"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"3f79a3b5_887252e3","line":10,"range":{"start_line":10,"start_character":11,"end_line":10,"end_character":21},"updated":"2018-11-09 11:21:21.000000000","message":"nit: \"for routers\" IMO","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"148933b09051e9604eafef904637d1a9828b9e0f","unresolved":false,"context_lines":[{"line_number":7,"context_line":"[L3][QoS] Agent side router gateway IP rate limit"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch implements the L3 agent side router gateway IP rate"},{"line_number":10,"context_line":"limit. For all router in centralized snat node (network node),"},{"line_number":11,"context_line":"the tc rules will be set on the corresponding device of router"},{"line_number":12,"context_line":"namespace:"},{"line_number":13,"context_line":"    1. Legacy and HA router, qrouter-namespace and qg-device"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"3f79a3b5_d71217fe","line":10,"range":{"start_line":10,"start_character":11,"end_line":10,"end_character":21},"in_reply_to":"3f79a3b5_887252e3","updated":"2018-11-10 08:33:11.000000000","message":"Done","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e66cf77a47200b80f7bdad256327360f5bd70c1","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch implements the L3 agent side router gateway IP rate"},{"line_number":10,"context_line":"limit. For all router in centralized snat node (network node),"},{"line_number":11,"context_line":"the tc rules will be set on the corresponding device of router"},{"line_number":12,"context_line":"namespace:"},{"line_number":13,"context_line":"    1. Legacy and HA router, qrouter-namespace and qg-device"},{"line_number":14,"context_line":"    2. Dvr (edge) router, snat namespace and qg-device"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"3f79a3b5_a86dce01","line":11,"range":{"start_line":11,"start_character":53,"end_line":11,"end_character":55},"updated":"2018-11-09 11:21:21.000000000","message":"nit: \"in\"","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"148933b09051e9604eafef904637d1a9828b9e0f","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch implements the L3 agent side router gateway IP rate"},{"line_number":10,"context_line":"limit. For all router in centralized snat node (network node),"},{"line_number":11,"context_line":"the tc rules will be set on the corresponding device of router"},{"line_number":12,"context_line":"namespace:"},{"line_number":13,"context_line":"    1. Legacy and HA router, qrouter-namespace and qg-device"},{"line_number":14,"context_line":"    2. Dvr (edge) router, snat namespace and qg-device"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"3f79a3b5_37182b1d","line":11,"range":{"start_line":11,"start_character":53,"end_line":11,"end_character":55},"in_reply_to":"3f79a3b5_a86dce01","updated":"2018-11-10 08:33:11.000000000","message":"Done","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e66cf77a47200b80f7bdad256327360f5bd70c1","unresolved":false,"context_lines":[{"line_number":13,"context_line":"    1. Legacy and HA router, qrouter-namespace and qg-device"},{"line_number":14,"context_line":"    2. Dvr (edge) router, snat namespace and qg-device"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"If gateway IP rate limit was set, then under the same router,"},{"line_number":17,"context_line":"all the VMs without floating IP will share the bandwidth."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Partially-Implements blueprint: router-gateway-ip-qos"},{"line_number":20,"context_line":"Closes-Bug: #1757044"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"3f79a3b5_4878bac0","line":17,"range":{"start_line":16,"start_character":0,"end_line":17,"end_character":57},"updated":"2018-11-09 11:21:21.000000000","message":"so this bandwidth limit will not apply to FIP, right?","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"148933b09051e9604eafef904637d1a9828b9e0f","unresolved":false,"context_lines":[{"line_number":13,"context_line":"    1. Legacy and HA router, qrouter-namespace and qg-device"},{"line_number":14,"context_line":"    2. Dvr (edge) router, snat namespace and qg-device"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"If gateway IP rate limit was set, then under the same router,"},{"line_number":17,"context_line":"all the VMs without floating IP will share the bandwidth."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Partially-Implements blueprint: router-gateway-ip-qos"},{"line_number":20,"context_line":"Closes-Bug: #1757044"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":22,"id":"3f79a3b5_77222355","line":17,"range":{"start_line":16,"start_character":0,"end_line":17,"end_character":57},"in_reply_to":"3f79a3b5_4878bac0","updated":"2018-11-10 08:33:11.000000000","message":"Yes, only the snat traffic.","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"}],"devstack/lib/qos":[{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"28d1a63221b0e0d9cb4bac96b80aa4b1c22be161","unresolved":false,"context_lines":[{"line_number":19,"context_line":"    configure_qos_l2_agent"},{"line_number":20,"context_line":"}"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"function configure_l3_agent_extension_fip_qos {"},{"line_number":23,"context_line":"    plugin_agent_add_l3_agent_extension \"fip_qos\""},{"line_number":24,"context_line":"}"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"function configure_l3_agent_extension_gateway_ip_qos {"},{"line_number":27,"context_line":"    plugin_agent_add_l3_agent_extension \"gateway_ip_qos\""},{"line_number":28,"context_line":"}"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"3f79a3b5_26dbf87d","line":28,"range":{"start_line":22,"start_character":0,"end_line":28,"end_character":1},"updated":"2018-08-17 04:01:12.000000000","message":"Can we move them in the same func with a \"l3-qos\" name, just like the above? Just a suggestion.","commit_id":"4731bef91b2048cdc32de6ad143602d6662f847b"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"79221d9c096e4f9dc850e8ea5317f41cb02cd36d","unresolved":false,"context_lines":[{"line_number":19,"context_line":"    configure_qos_l2_agent"},{"line_number":20,"context_line":"}"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"function configure_l3_agent_extension_fip_qos {"},{"line_number":23,"context_line":"    plugin_agent_add_l3_agent_extension \"fip_qos\""},{"line_number":24,"context_line":"}"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"function configure_l3_agent_extension_gateway_ip_qos {"},{"line_number":27,"context_line":"    plugin_agent_add_l3_agent_extension \"gateway_ip_qos\""},{"line_number":28,"context_line":"}"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"3f79a3b5_153a9ccc","line":28,"range":{"start_line":22,"start_character":0,"end_line":28,"end_character":1},"in_reply_to":"3f79a3b5_26dbf87d","updated":"2018-08-17 07:49:11.000000000","message":"Refactor all the name here may out of the scope of this patch. Now, let\u0027s just make the gateway IP qos consistent  with floating IP qos here. Maybe a new patch to do that refactor.","commit_id":"4731bef91b2048cdc32de6ad143602d6662f847b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"d240fd1bf53f939970078ca5739607080d4216f6","unresolved":false,"context_lines":[{"line_number":24,"context_line":"}"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"function configure_l3_agent_extension_gateway_ip_qos {"},{"line_number":27,"context_line":"    plugin_agent_add_l3_agent_extension \"gateway_ip_qos\""},{"line_number":28,"context_line":"}"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"3f79a3b5_51478c78","line":27,"updated":"2018-09-09 08:02:55.000000000","message":"IMO those changes are more related to server-side patch, no?","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"acf0923704200673c996f6cb32eb10d60ea47f8d","unresolved":false,"context_lines":[{"line_number":24,"context_line":"}"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"function configure_l3_agent_extension_gateway_ip_qos {"},{"line_number":27,"context_line":"    plugin_agent_add_l3_agent_extension \"gateway_ip_qos\""},{"line_number":28,"context_line":"}"}],"source_content_type":"application/octet-stream","patch_set":12,"id":"3f79a3b5_3d7d5a6c","line":27,"in_reply_to":"3f79a3b5_51478c78","updated":"2018-09-10 01:13:44.000000000","message":"This is adding L3 agent extension, right? : )","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"}],"neutron/agent/l3/extensions/qos/gateway_ip.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4ab4ded0b03d556e083c995b0464f4050ab6cfa1","unresolved":false,"context_lines":[{"line_number":132,"context_line":"                  \"the device is %(device)s.\","},{"line_number":133,"context_line":"                  {\"router_id\": router_info.router_id,"},{"line_number":134,"context_line":"                   \"namespace\": device.namespace,"},{"line_number":135,"context_line":"                   \"device\": device.name})"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":138,"context_line":"        # Clear all old gateway IP tc rules first."}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_689f0b50","line":135,"updated":"2018-06-08 14:36:09.000000000","message":"I\u0027m curious if you think we need this logging right after we logged something on L95.  I think if debug is set that the tc commands would be logged, right?  Then we probably wouldn\u0027t need this.","commit_id":"eb3446f32d77c1e3ec1b1d6555bd9239ba862ba2"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"405deac1d5452b458e2baa00c2167c8b2d24ac28","unresolved":false,"context_lines":[{"line_number":132,"context_line":"                  \"the device is %(device)s.\","},{"line_number":133,"context_line":"                  {\"router_id\": router_info.router_id,"},{"line_number":134,"context_line":"                   \"namespace\": device.namespace,"},{"line_number":135,"context_line":"                   \"device\": device.name})"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":138,"context_line":"        # Clear all old gateway IP tc rules first."}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_93d8417f","line":135,"in_reply_to":"5f7c97a3_689f0b50","updated":"2018-06-13 10:51:18.000000000","message":"Done, will remove","commit_id":"eb3446f32d77c1e3ec1b1d6555bd9239ba862ba2"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"b3888846a7935381d1518d8e27db89377f3ac15a","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        if not ex_gw_port:"},{"line_number":123,"context_line":"            return"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not router_info.is_snat_enabled():"},{"line_number":126,"context_line":"            return"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        interface_name \u003d router_info.get_external_device_name("},{"line_number":129,"context_line":"            ex_gw_port[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_9cb464f3","line":126,"range":{"start_line":125,"start_character":0,"end_line":126,"end_character":18},"updated":"2018-07-13 11:51:53.000000000","message":"even if snat is disabled, there can be traffic using the gateway ip.  eg. vpn","commit_id":"5fa44044decaa9d90fefb1787111eb79f52c196d"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"24939d25228bdd58ad3f121330e7fc7b8cc7eea6","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        if not ex_gw_port:"},{"line_number":123,"context_line":"            return"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not router_info.is_snat_enabled():"},{"line_number":126,"context_line":"            return"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        interface_name \u003d router_info.get_external_device_name("},{"line_number":129,"context_line":"            ex_gw_port[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_cfc93c51","line":126,"range":{"start_line":125,"start_character":0,"end_line":126,"end_character":18},"in_reply_to":"5f7c97a3_5b5eb779","updated":"2018-07-19 11:04:27.000000000","message":"Done","commit_id":"5fa44044decaa9d90fefb1787111eb79f52c196d"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"45962eacb91831cd18d47a427cd47dbe6015e109","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        if not ex_gw_port:"},{"line_number":123,"context_line":"            return"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        if not router_info.is_snat_enabled():"},{"line_number":126,"context_line":"            return"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        interface_name \u003d router_info.get_external_device_name("},{"line_number":129,"context_line":"            ex_gw_port[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_5b5eb779","line":126,"range":{"start_line":125,"start_character":0,"end_line":126,"end_character":18},"in_reply_to":"5f7c97a3_9cb464f3","updated":"2018-07-16 02:24:55.000000000","message":"Thank you for reviwing this, I will test this.","commit_id":"5fa44044decaa9d90fefb1787111eb79f52c196d"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"ea1753d113e599b94a4c8a30f0429ad3b2451075","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":168,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":169,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":170,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":171,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":172,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_0b438343","line":170,"range":{"start_line":170,"start_character":12,"end_line":170,"end_character":48},"updated":"2018-08-16 03:37:46.000000000","message":"Ask a question here, is there a plan to support ipv6?","commit_id":"44ec1ce8867f7e7c2b36ada0ca44878abceb6074"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"b80c9c1a9a3a3d9e5f1fcbc46de57d48519dd3fe","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":168,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":169,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":170,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":171,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":172,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_9767b04d","line":170,"range":{"start_line":170,"start_character":12,"end_line":170,"end_character":48},"in_reply_to":"3f79a3b5_0b438343","updated":"2018-08-16 08:43:59.000000000","message":"I don\u0027t familar with IPv6 support status in the neutron. Seems the NAT is not needed anymore for IPv6 ? So we should focus on the IPv6 public IP (floating IPv6) rate limit. That will be implemented someday.","commit_id":"44ec1ce8867f7e7c2b36ada0ca44878abceb6074"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"ad0b8dc9b78596f550435d46a47d16729769318b","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":168,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":169,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":170,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":171,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":172,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_976810f5","line":170,"range":{"start_line":170,"start_character":12,"end_line":170,"end_character":48},"in_reply_to":"3f79a3b5_9767b04d","updated":"2018-08-16 08:48:46.000000000","message":"Yeah, no need NAT, but if the network or routers are hosting ipv6 traffic, how to limit that rate as this RFE are willing to limit the gw port bandwidth, right?","commit_id":"44ec1ce8867f7e7c2b36ada0ca44878abceb6074"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"f47ba6ec8083f57e893f02a68d5c8eb6b37419c2","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":168,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":169,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":170,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":171,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":172,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_ac05c215","line":170,"range":{"start_line":170,"start_character":12,"end_line":170,"end_character":48},"in_reply_to":"3f79a3b5_976810f5","updated":"2018-08-16 10:33:16.000000000","message":"Acctually the gateway port bandwidth is already implemented. Users can add qos policy to the gateway port. But port is a L2 view resource. This RFE is aiming to limit the L3 IP rate limit. It\u0027s a little different.","commit_id":"44ec1ce8867f7e7c2b36ada0ca44878abceb6074"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"b3843ad38d9181570a3d6103ce3ce5adb6612c8c","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":168,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":169,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":170,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":171,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":172,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_e66180d5","line":170,"range":{"start_line":170,"start_character":12,"end_line":170,"end_character":48},"in_reply_to":"3f79a3b5_ac05c215","updated":"2018-08-17 03:40:31.000000000","message":"Hmmm, thanks for explain, this feature just care about the nat traffics, ipv4 nat. So may I said this feature is about shaping the specific traffic. For ipv6, there is only 1 way, apply the qos policy on the gw port directly. I\u0027m asking that, is there any plan to support shaping the ipv6 traffic with tc? Try to think about it, if there are some customers want to share the bandwidth towards some specific ipv6 subnets.","commit_id":"44ec1ce8867f7e7c2b36ada0ca44878abceb6074"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"79221d9c096e4f9dc850e8ea5317f41cb02cd36d","unresolved":false,"context_lines":[{"line_number":167,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":168,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":169,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":170,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":171,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":172,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":173,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_c0878461","line":170,"range":{"start_line":170,"start_character":12,"end_line":170,"end_character":48},"in_reply_to":"3f79a3b5_e66180d5","updated":"2018-08-17 07:49:11.000000000","message":"For now, the L3 TC lib only do policying for the traffic, it installs two tc filters for ingress and egress that only care about the maximum bandwidth. They do not sharp the traffic, do not average the bandwith, and do not ensure the minimum bandwith. Does this make sense to you? : )\nFor IPv6, the traffic control may rely on the neutron topology, such as centralized, distributed, HA, BGP etc. And, for tc sharping, more complex tc rules may be needed. That bandwidth share for subnets can be implemented in that way.\nWe do not have a plan to implement such feature currently, because the IPv6 does not widely used in our cloud deployments.","commit_id":"44ec1ce8867f7e7c2b36ada0ca44878abceb6074"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"d240fd1bf53f939970078ca5739607080d4216f6","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        old_qos_policy \u003d self.gateway_ip_qos_map.get_policy(qos_policy.id)"},{"line_number":51,"context_line":"        if old_qos_policy:"},{"line_number":52,"context_line":"            if self._policy_rules_modified(old_qos_policy, qos_policy):"},{"line_number":53,"context_line":"                for rid in self.gateway_ip_qos_map.get_resources(qos_policy):"},{"line_number":54,"context_line":"                    router_info \u003d self._get_router_info(rid)"},{"line_number":55,"context_line":"                    if not router_info:"},{"line_number":56,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_dc2c6f94","line":53,"range":{"start_line":53,"start_character":20,"end_line":53,"end_character":23},"updated":"2018-09-09 08:02:55.000000000","message":"what is \"rid\" exactly? Maybe some more clear name would be useful here?","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"39599c2b532d9b7676b14a12050fb9ebaac60829","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        old_qos_policy \u003d self.gateway_ip_qos_map.get_policy(qos_policy.id)"},{"line_number":51,"context_line":"        if old_qos_policy:"},{"line_number":52,"context_line":"            if self._policy_rules_modified(old_qos_policy, qos_policy):"},{"line_number":53,"context_line":"                for rid in self.gateway_ip_qos_map.get_resources(qos_policy):"},{"line_number":54,"context_line":"                    router_info \u003d self._get_router_info(rid)"},{"line_number":55,"context_line":"                    if not router_info:"},{"line_number":56,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_7e8f772d","line":53,"range":{"start_line":53,"start_character":20,"end_line":53,"end_character":23},"in_reply_to":"3f79a3b5_bd888a6a","updated":"2018-09-20 00:56:37.000000000","message":"done","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"acf0923704200673c996f6cb32eb10d60ea47f8d","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        old_qos_policy \u003d self.gateway_ip_qos_map.get_policy(qos_policy.id)"},{"line_number":51,"context_line":"        if old_qos_policy:"},{"line_number":52,"context_line":"            if self._policy_rules_modified(old_qos_policy, qos_policy):"},{"line_number":53,"context_line":"                for rid in self.gateway_ip_qos_map.get_resources(qos_policy):"},{"line_number":54,"context_line":"                    router_info \u003d self._get_router_info(rid)"},{"line_number":55,"context_line":"                    if not router_info:"},{"line_number":56,"context_line":"                        continue"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_bd888a6a","line":53,"range":{"start_line":53,"start_character":20,"end_line":53,"end_character":23},"in_reply_to":"3f79a3b5_dc2c6f94","updated":"2018-09-10 01:13:44.000000000","message":"Here is router id.\nDone, I will change this once I rebase this patch.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"b82b7892e099c8b8bd013b156d5cb9cd829ef541","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                    tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":67,"context_line":"                    # Clear all old gateway IP tc rules first."},{"line_number":68,"context_line":"                    self._empty_router_gateway_rate_limits("},{"line_number":69,"context_line":"                        router_info, tc_wrapper)"},{"line_number":70,"context_line":"                    rates \u003d self.get_policy_rates(qos_policy)"},{"line_number":71,"context_line":"                    self._set_gateway_tc_rules("},{"line_number":72,"context_line":"                        router_info, tc_wrapper,"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_896d8630","line":69,"updated":"2018-09-19 19:05:47.000000000","message":"Since you called _empty_router_gateway_rate_limits, the gateway_ip_qos_map will be clean up. I guess you need to re-populate the gateway_ip_qos_map in here?\n\n  self.gateway_ip_qos_map.set_resource_policy(\n      router_info.router_id, qos_policy)","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"d531187450a02a73f9298536b8a639e44c58a4b5","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                    tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":67,"context_line":"                    # Clear all old gateway IP tc rules first."},{"line_number":68,"context_line":"                    self._empty_router_gateway_rate_limits("},{"line_number":69,"context_line":"                        router_info, tc_wrapper)"},{"line_number":70,"context_line":"                    rates \u003d self.get_policy_rates(qos_policy)"},{"line_number":71,"context_line":"                    self._set_gateway_tc_rules("},{"line_number":72,"context_line":"                        router_info, tc_wrapper,"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_e113eab6","line":69,"in_reply_to":"3f79a3b5_896d8630","updated":"2018-09-20 02:17:13.000000000","message":"Done","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"2230ef6eb75509d6f677442e4eab35f9ae6f6460","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            self.process_gateway_rate_limit(context, router_info)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def delete_router(self, context, data):"},{"line_number":89,"context_line":"        pass"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def ha_state_change(self, context, data):"},{"line_number":92,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_4f5b0353","line":89,"range":{"start_line":89,"start_character":8,"end_line":89,"end_character":12},"updated":"2018-09-19 02:16:37.000000000","message":"Delete router should remove the gateway first, so it is clear during the router update, see line 114.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"0d0b4801ba98b7a605df5559ca22261f4b44a07b","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            self.process_gateway_rate_limit(context, router_info)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def delete_router(self, context, data):"},{"line_number":89,"context_line":"        pass"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def ha_state_change(self, context, data):"},{"line_number":92,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_8956fb04","line":89,"range":{"start_line":89,"start_character":8,"end_line":89,"end_character":12},"updated":"2018-09-18 22:42:44.000000000","message":"Does the gateway_ip_qos_map needs to be cleanup in this case?","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"39599c2b532d9b7676b14a12050fb9ebaac60829","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            self.process_gateway_rate_limit(context, router_info)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def delete_router(self, context, data):"},{"line_number":89,"context_line":"        pass"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def ha_state_change(self, context, data):"},{"line_number":92,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_1e9a036e","line":89,"range":{"start_line":89,"start_character":8,"end_line":89,"end_character":12},"in_reply_to":"3f79a3b5_4193d7a3","updated":"2018-09-20 00:56:37.000000000","message":"done","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"302f1132290be1d54fb05d95fa65981f9d474744","unresolved":false,"context_lines":[{"line_number":86,"context_line":"            self.process_gateway_rate_limit(context, router_info)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def delete_router(self, context, data):"},{"line_number":89,"context_line":"        pass"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def ha_state_change(self, context, data):"},{"line_number":92,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_4193d7a3","line":89,"range":{"start_line":89,"start_character":8,"end_line":89,"end_character":12},"in_reply_to":"3f79a3b5_4f5b0353","updated":"2018-09-19 02:47:57.000000000","message":"After check the code again, router can be deleted with gateway info, so here needs to delete the map key. Thanks.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7c6cf15174a3d20fe307948c124c72f962f0713f","unresolved":false,"context_lines":[{"line_number":126,"context_line":"            ex_gw_port[\u0027id\u0027])"},{"line_number":127,"context_line":"        device \u003d self._get_gateway_tc_rule_device(router_info, interface_name)"},{"line_number":128,"context_line":"        if not device.exists():"},{"line_number":129,"context_line":"            return"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":132,"context_line":"        # Clear all old gateway IP tc rules first."}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_8e6cc107","line":129,"updated":"2018-09-18 22:28:58.000000000","message":"In the case of router update, we can return earlier if there is no policy change?","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"2230ef6eb75509d6f677442e4eab35f9ae6f6460","unresolved":false,"context_lines":[{"line_number":126,"context_line":"            ex_gw_port[\u0027id\u0027])"},{"line_number":127,"context_line":"        device \u003d self._get_gateway_tc_rule_device(router_info, interface_name)"},{"line_number":128,"context_line":"        if not device.exists():"},{"line_number":129,"context_line":"            return"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":132,"context_line":"        # Clear all old gateway IP tc rules first."}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_af93b7ff","line":129,"in_reply_to":"3f79a3b5_8e6cc107","updated":"2018-09-19 02:16:37.000000000","message":"Policy is not change, but the gateway IP and gateway IP quantity can be changed. So it is not true to return by only check the qos_policy here.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"b82b7892e099c8b8bd013b156d5cb9cd829ef541","unresolved":false,"context_lines":[{"line_number":126,"context_line":"            ex_gw_port[\u0027id\u0027])"},{"line_number":127,"context_line":"        device \u003d self._get_gateway_tc_rule_device(router_info, interface_name)"},{"line_number":128,"context_line":"        if not device.exists():"},{"line_number":129,"context_line":"            return"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":132,"context_line":"        # Clear all old gateway IP tc rules first."}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_0c08a424","line":129,"in_reply_to":"3f79a3b5_af93b7ff","updated":"2018-09-19 19:05:47.000000000","message":"ACK","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7c6cf15174a3d20fe307948c124c72f962f0713f","unresolved":false,"context_lines":[{"line_number":129,"context_line":"            return"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":132,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":133,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_ae9f3d63","line":132,"range":{"start_line":132,"start_character":8,"end_line":132,"end_character":50},"updated":"2018-09-18 22:28:58.000000000","message":"It looks we delete and re-create all the tc rules for every events? Intuitively, such \"reset\" approach will work but might not be optimal. Do we have to do a complete \"reset\" in every cases?","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"b82b7892e099c8b8bd013b156d5cb9cd829ef541","unresolved":false,"context_lines":[{"line_number":129,"context_line":"            return"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":132,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":133,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_0c21849e","line":132,"range":{"start_line":132,"start_character":8,"end_line":132,"end_character":50},"in_reply_to":"3f79a3b5_0f6e6b2b","updated":"2018-09-19 19:05:47.000000000","message":"ACK","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"2230ef6eb75509d6f677442e4eab35f9ae6f6460","unresolved":false,"context_lines":[{"line_number":129,"context_line":"            return"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":132,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":133,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_0f6e6b2b","line":132,"range":{"start_line":132,"start_character":8,"end_line":132,"end_character":50},"in_reply_to":"3f79a3b5_ae9f3d63","updated":"2018-09-19 02:16:37.000000000","message":"Yes, here we clear all old gateway IPs tc rules, and re-install new IPs tc rules. This is the easy way to deal with the gateway IP or IP quantity change. We do not need to compare the old IP set with new IP set. We do not need to check which IP\u0027s TC rules is installed or not. Just make things simple.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7c6cf15174a3d20fe307948c124c72f962f0713f","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":133,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"},{"line_number":136,"context_line":"        if not rates:"},{"line_number":137,"context_line":"            return"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_2e5ecd44","line":135,"range":{"start_line":135,"start_character":8,"end_line":135,"end_character":13},"updated":"2018-09-18 22:28:58.000000000","message":"how about checking if the \"rates\" is changed and return if it is unchanged.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"2230ef6eb75509d6f677442e4eab35f9ae6f6460","unresolved":false,"context_lines":[{"line_number":132,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":133,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"},{"line_number":136,"context_line":"        if not rates:"},{"line_number":137,"context_line":"            return"},{"line_number":138,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_4fd6a3c5","line":135,"range":{"start_line":135,"start_character":8,"end_line":135,"end_character":13},"in_reply_to":"3f79a3b5_2e5ecd44","updated":"2018-09-19 02:16:37.000000000","message":"Let\u0027s make this simple. See may comments Line 132.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"7c6cf15174a3d20fe307948c124c72f962f0713f","unresolved":false,"context_lines":[{"line_number":176,"context_line":"            rate \u003d rates.get(direction)"},{"line_number":177,"context_line":"            if (rate[\u0027rate\u0027] \u003d\u003d qos_base.IP_DEFAULT_RATE and"},{"line_number":178,"context_line":"                    rate[\u0027burst\u0027] \u003d\u003d qos_base.IP_DEFAULT_BURST):"},{"line_number":179,"context_line":"                continue"},{"line_number":180,"context_line":"            tc_wrapper.set_ip_rate_limit(direction, ex_gw_ip,"},{"line_number":181,"context_line":"                                         rate[\u0027rate\u0027], rate[\u0027burst\u0027])"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_4e7229e5","line":179,"range":{"start_line":179,"start_character":16,"end_line":179,"end_character":24},"updated":"2018-09-18 22:28:58.000000000","message":"We can skip as well if both \u0027rate\u0027 and \u0027burst\u0027 are unchanged?","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"2230ef6eb75509d6f677442e4eab35f9ae6f6460","unresolved":false,"context_lines":[{"line_number":176,"context_line":"            rate \u003d rates.get(direction)"},{"line_number":177,"context_line":"            if (rate[\u0027rate\u0027] \u003d\u003d qos_base.IP_DEFAULT_RATE and"},{"line_number":178,"context_line":"                    rate[\u0027burst\u0027] \u003d\u003d qos_base.IP_DEFAULT_BURST):"},{"line_number":179,"context_line":"                continue"},{"line_number":180,"context_line":"            tc_wrapper.set_ip_rate_limit(direction, ex_gw_ip,"},{"line_number":181,"context_line":"                                         rate[\u0027rate\u0027], rate[\u0027burst\u0027])"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_ef70cf0b","line":179,"range":{"start_line":179,"start_character":16,"end_line":179,"end_character":24},"in_reply_to":"3f79a3b5_4e7229e5","updated":"2018-09-19 02:16:37.000000000","message":"Again, every time we process the qos gateway, we will clear all old gateway IPs rules, so if it is not changed, the install still needs to be done.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e66cf77a47200b80f7bdad256327360f5bd70c1","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron_lib import constants"},{"line_number":20,"context_line":"from oslo_concurrency import lockutils"},{"line_number":21,"context_line":"from oslo_log import log as logging"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from neutron.agent.l3.extensions.qos import base as qos_base"},{"line_number":25,"context_line":"from neutron.agent.linux import ip_lib"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_c83daae6","line":22,"updated":"2018-11-09 11:21:21.000000000","message":"nit: not necessary empty line","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"148933b09051e9604eafef904637d1a9828b9e0f","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron_lib import constants"},{"line_number":20,"context_line":"from oslo_concurrency import lockutils"},{"line_number":21,"context_line":"from oslo_log import log as logging"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from neutron.agent.l3.extensions.qos import base as qos_base"},{"line_number":25,"context_line":"from neutron.agent.linux import ip_lib"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_17cc0f60","line":22,"in_reply_to":"3f79a3b5_c83daae6","updated":"2018-11-10 08:33:11.000000000","message":"Done","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e66cf77a47200b80f7bdad256327360f5bd70c1","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        router_info.qos_gateway_ips.clear()"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def _handle_router_gateway_rate_limit(self, context, router_info):"},{"line_number":131,"context_line":"        ex_gw_port \u003d router_info.get_ex_gw_port()"},{"line_number":132,"context_line":"        if not ex_gw_port:"},{"line_number":133,"context_line":"            return"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        interface_name \u003d router_info.get_external_device_name("},{"line_number":136,"context_line":"            ex_gw_port[\u0027id\u0027])"},{"line_number":137,"context_line":"        device \u003d self._get_gateway_tc_rule_device(router_info, interface_name)"},{"line_number":138,"context_line":"        if not device.exists():"},{"line_number":139,"context_line":"            return"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":142,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":143,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"},{"line_number":146,"context_line":"        if not rates:"},{"line_number":147,"context_line":"            return"},{"line_number":148,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_db03320a","line":145,"range":{"start_line":131,"start_character":8,"end_line":145,"end_character":63},"updated":"2018-11-09 11:21:21.000000000","message":"all this code is exactly the same as in L54-56. Maybe You could somehow reuse same code in two places?","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"148933b09051e9604eafef904637d1a9828b9e0f","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        router_info.qos_gateway_ips.clear()"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def _handle_router_gateway_rate_limit(self, context, router_info):"},{"line_number":131,"context_line":"        ex_gw_port \u003d router_info.get_ex_gw_port()"},{"line_number":132,"context_line":"        if not ex_gw_port:"},{"line_number":133,"context_line":"            return"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"        interface_name \u003d router_info.get_external_device_name("},{"line_number":136,"context_line":"            ex_gw_port[\u0027id\u0027])"},{"line_number":137,"context_line":"        device \u003d self._get_gateway_tc_rule_device(router_info, interface_name)"},{"line_number":138,"context_line":"        if not device.exists():"},{"line_number":139,"context_line":"            return"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":142,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":143,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"},{"line_number":146,"context_line":"        if not rates:"},{"line_number":147,"context_line":"            return"},{"line_number":148,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_d750d72f","line":145,"range":{"start_line":131,"start_character":8,"end_line":145,"end_character":63},"in_reply_to":"3f79a3b5_db03320a","updated":"2018-11-10 08:33:11.000000000","message":"Code is a little mixing and difference, IMO, duplicated 3 lines is ok.","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"18ddfa2ea3a82a847c06a6cc95e3a0f58b4fe967","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def process_gateway_rate_limit(self, context, router_info):"},{"line_number":105,"context_line":"        is_distributed_router \u003d router_info.router.get(\u0027distributed\u0027)"},{"line_number":106,"context_line":"        agent_mode \u003d router_info.agent_conf.agent_mode"},{"line_number":107,"context_line":"        LOG.debug(\"Start processing gateway IP QoS for \""},{"line_number":108,"context_line":"                  \"router %(router_id)s, router \""},{"line_number":109,"context_line":"                  \"distributed: %(distributed)s, \""},{"line_number":110,"context_line":"                  \"agent mode: %(agent_mode)s\","}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_00bd7cd0","line":107,"updated":"2018-11-29 22:09:59.000000000","message":"Shouldn\u0027t this log statement come below the if statement at L114?  It seems odd to announce we\u0027re processing gateway QoS and then immediately return.","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"91ba27dbe42ce22738b10b508fb5f1e3e1a2018e","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def process_gateway_rate_limit(self, context, router_info):"},{"line_number":105,"context_line":"        is_distributed_router \u003d router_info.router.get(\u0027distributed\u0027)"},{"line_number":106,"context_line":"        agent_mode \u003d router_info.agent_conf.agent_mode"},{"line_number":107,"context_line":"        LOG.debug(\"Start processing gateway IP QoS for \""},{"line_number":108,"context_line":"                  \"router %(router_id)s, router \""},{"line_number":109,"context_line":"                  \"distributed: %(distributed)s, \""},{"line_number":110,"context_line":"                  \"agent mode: %(agent_mode)s\","}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_8d4d4472","line":107,"in_reply_to":"3f79a3b5_00bd7cd0","updated":"2018-11-29 23:52:30.000000000","message":"This is the entry function, see line 88 and 94, we use this debug not to notify cloud admin when start process qos gateway IPS, and they can findout why some router does not process gateway IP qos.","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"6fbcaaf7cc29bf85f9d7f2a104e1f79cd523f0c7","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def process_gateway_rate_limit(self, context, router_info):"},{"line_number":105,"context_line":"        is_distributed_router \u003d router_info.router.get(\u0027distributed\u0027)"},{"line_number":106,"context_line":"        agent_mode \u003d router_info.agent_conf.agent_mode"},{"line_number":107,"context_line":"        LOG.debug(\"Start processing gateway IP QoS for \""},{"line_number":108,"context_line":"                  \"router %(router_id)s, router \""},{"line_number":109,"context_line":"                  \"distributed: %(distributed)s, \""},{"line_number":110,"context_line":"                  \"agent mode: %(agent_mode)s\","}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_f1a81823","line":107,"in_reply_to":"3f79a3b5_8d4d4472","updated":"2018-12-03 23:07:52.000000000","message":"ok","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"18ddfa2ea3a82a847c06a6cc95e3a0f58b4fe967","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":142,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":143,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"},{"line_number":146,"context_line":"        if not rates:"},{"line_number":147,"context_line":"            return"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        self._set_gateway_tc_rules(router_info, tc_wrapper, ex_gw_port, rates)"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_80ad0c85","line":147,"range":{"start_line":143,"start_character":0,"end_line":147,"end_character":18},"updated":"2018-11-29 22:09:59.000000000","message":"If there is a possibility that the function will return (if None is returned from _get_rates_by_policy) then should we consider waiting to run _empty_router_gateway_rate_limits() until after?  Or is this how a rate deletion gets implicitly executed?","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"91ba27dbe42ce22738b10b508fb5f1e3e1a2018e","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":142,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":143,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"},{"line_number":146,"context_line":"        if not rates:"},{"line_number":147,"context_line":"            return"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        self._set_gateway_tc_rules(router_info, tc_wrapper, ex_gw_port, rates)"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_ada040f4","line":147,"range":{"start_line":143,"start_character":0,"end_line":147,"end_character":18},"in_reply_to":"3f79a3b5_80ad0c85","updated":"2018-11-29 23:52:30.000000000","message":"Line 137 will ensure your concern, if router removes the gateway, these two lines still not run.\n\nWhy empty the rate limits first, is because this is the simple way to handle the gateway IPs change with its qos policy bindings:\n(1) gateway IP changes but policy does not\n(2) gateway IP quantity changes but policy does not\n\nPolicy changes will be handle above line 80.","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"6fbcaaf7cc29bf85f9d7f2a104e1f79cd523f0c7","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        tc_wrapper \u003d self._get_tc_wrapper(device)"},{"line_number":142,"context_line":"        # Clear all old gateway IP tc rules first."},{"line_number":143,"context_line":"        self._empty_router_gateway_rate_limits(router_info, tc_wrapper)"},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"        rates \u003d self._get_rates_by_policy(context, router_info)"},{"line_number":146,"context_line":"        if not rates:"},{"line_number":147,"context_line":"            return"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        self._set_gateway_tc_rules(router_info, tc_wrapper, ex_gw_port, rates)"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_d19ddcfd","line":147,"range":{"start_line":143,"start_character":0,"end_line":147,"end_character":18},"in_reply_to":"3f79a3b5_ada040f4","updated":"2018-12-03 23:07:52.000000000","message":"Thank you for the explanation!","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"18ddfa2ea3a82a847c06a6cc95e3a0f58b4fe967","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":178,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":179,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":180,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":181,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":182,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":183,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_40c4d439","line":180,"updated":"2018-11-29 22:09:59.000000000","message":"Just curious, why don\u0027t we try to set tc rules for IPv6?","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"91ba27dbe42ce22738b10b508fb5f1e3e1a2018e","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":178,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":179,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":180,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":181,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":182,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":183,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_8dff84fe","line":180,"in_reply_to":"3f79a3b5_40c4d439","updated":"2018-11-29 23:52:30.000000000","message":"No NAT for IPv6, these IP v4 addresses are used for SNAT traffic.","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"6fbcaaf7cc29bf85f9d7f2a104e1f79cd523f0c7","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        for ip_addr in ex_gw_port[\u0027fixed_ips\u0027]:"},{"line_number":178,"context_line":"            ex_gw_ip \u003d ip_addr[\u0027ip_address\u0027]"},{"line_number":179,"context_line":"            ip_ver \u003d netaddr.IPAddress(ex_gw_ip).version"},{"line_number":180,"context_line":"            if ip_ver \u003d\u003d constants.IP_VERSION_4:"},{"line_number":181,"context_line":"                self._set_gateway_ip_rate_limit(tc_wrapper, ex_gw_ip, rates)"},{"line_number":182,"context_line":"                router_info.qos_gateway_ips.add(ex_gw_ip)"},{"line_number":183,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"3f79a3b5_915d2455","line":180,"in_reply_to":"3f79a3b5_8dff84fe","updated":"2018-12-03 23:07:52.000000000","message":"Thanks, yes.","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"}],"neutron/agent/l3/router_info.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4ab4ded0b03d556e083c995b0464f4050ab6cfa1","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        self.process_monitor \u003d None"},{"line_number":81,"context_line":"        # radvd is a neutron.agent.linux.ra.DaemonMonitor"},{"line_number":82,"context_line":"        self.radvd \u003d None"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        self.qos_gateway_ips \u003d set()"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def initialize(self, process_monitor):"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_c8365fb5","line":83,"updated":"2018-06-08 14:36:09.000000000","message":"nit: no need for an empty line here.","commit_id":"eb3446f32d77c1e3ec1b1d6555bd9239ba862ba2"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"405deac1d5452b458e2baa00c2167c8b2d24ac28","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        self.process_monitor \u003d None"},{"line_number":81,"context_line":"        # radvd is a neutron.agent.linux.ra.DaemonMonitor"},{"line_number":82,"context_line":"        self.radvd \u003d None"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        self.qos_gateway_ips \u003d set()"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def initialize(self, process_monitor):"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_d8133664","line":83,"in_reply_to":"5f7c97a3_c8365fb5","updated":"2018-06-13 10:51:18.000000000","message":"Done, I will remove this line if I resubmit the patch set.","commit_id":"eb3446f32d77c1e3ec1b1d6555bd9239ba862ba2"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"28d1a63221b0e0d9cb4bac96b80aa4b1c22be161","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # enable_snat by default if it wasn\u0027t specified by plugin"},{"line_number":121,"context_line":"        self._snat_enabled \u003d self._router.get(\u0027enable_snat\u0027, True)"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"    def is_snat_enabled(self):"},{"line_number":124,"context_line":"        return self._snat_enabled"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def is_router_master(self):"},{"line_number":127,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_06c59c5b","line":124,"range":{"start_line":123,"start_character":0,"end_line":124,"end_character":33},"updated":"2018-08-17 04:01:12.000000000","message":"where you use it? Not found yet","commit_id":"4731bef91b2048cdc32de6ad143602d6662f847b"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"79221d9c096e4f9dc850e8ea5317f41cb02cd36d","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # enable_snat by default if it wasn\u0027t specified by plugin"},{"line_number":121,"context_line":"        self._snat_enabled \u003d self._router.get(\u0027enable_snat\u0027, True)"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"    def is_snat_enabled(self):"},{"line_number":124,"context_line":"        return self._snat_enabled"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def is_router_master(self):"},{"line_number":127,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f79a3b5_b52ba880","line":124,"range":{"start_line":123,"start_character":0,"end_line":124,"end_character":33},"in_reply_to":"3f79a3b5_06c59c5b","updated":"2018-08-17 07:49:11.000000000","message":"Done, forget to remove this since patch set 7. ：）","commit_id":"4731bef91b2048cdc32de6ad143602d6662f847b"}],"neutron/tests/functional/agent/l3/extensions/test_gateway_ip_qos_extension.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4ab4ded0b03d556e083c995b0464f4050ab6cfa1","unresolved":false,"context_lines":[{"line_number":118,"context_line":"            try:"},{"line_number":119,"context_line":"                return tc_wrapper.get_filter_id_for_ip(rule.direction, ip)"},{"line_number":120,"context_line":"            except exceptions.FilterIDForIPNotFound:"},{"line_number":121,"context_line":"                pass"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        common_utils.wait_until_true(get_filter_id)"},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_e80a3b88","line":121,"updated":"2018-06-08 14:36:09.000000000","message":"If there is no filter present is that success?","commit_id":"eb3446f32d77c1e3ec1b1d6555bd9239ba862ba2"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"405deac1d5452b458e2baa00c2167c8b2d24ac28","unresolved":false,"context_lines":[{"line_number":118,"context_line":"            try:"},{"line_number":119,"context_line":"                return tc_wrapper.get_filter_id_for_ip(rule.direction, ip)"},{"line_number":120,"context_line":"            except exceptions.FilterIDForIPNotFound:"},{"line_number":121,"context_line":"                pass"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        common_utils.wait_until_true(get_filter_id)"},{"line_number":124,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_582646cd","line":121,"in_reply_to":"5f7c97a3_e80a3b88","updated":"2018-06-13 10:51:18.000000000","message":"If no filter, here the get_filter_id will return None. So None will be treated as False, wait_until_true will retry again.","commit_id":"eb3446f32d77c1e3ec1b1d6555bd9239ba862ba2"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5e66cf77a47200b80f7bdad256327360f5bd70c1","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _test_centralized_routers(self, enable_ha\u003dFalse,"},{"line_number":130,"context_line":"                                  ingress\u003dTrue, egress\u003dTrue):"},{"line_number":131,"context_line":"        qos_policy_id \u003d TEST_POLICY_ID1"},{"line_number":132,"context_line":"        if ingress and not egress:"},{"line_number":133,"context_line":"            qos_policy_id \u003d TEST_POLICY_ID2"},{"line_number":134,"context_line":"        elif egress and not ingress:"},{"line_number":135,"context_line":"            qos_policy_id \u003d TEST_POLICY_ID3"},{"line_number":136,"context_line":"        router_info \u003d self.generate_router_info("},{"line_number":137,"context_line":"            enable_ha\u003denable_ha,"},{"line_number":138,"context_line":"            qos_policy_id\u003dqos_policy_id)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_7b93fea4","line":135,"range":{"start_line":131,"start_character":0,"end_line":135,"end_character":43},"updated":"2018-11-09 11:21:21.000000000","message":"nit: it would be easier to read if You would name those policies like:\n\nINGRESS_EGRESS_POLICY\nINGRESS_POLICY\nEGRESS_POLICY\n\nor something like that :)","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"148933b09051e9604eafef904637d1a9828b9e0f","unresolved":false,"context_lines":[{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _test_centralized_routers(self, enable_ha\u003dFalse,"},{"line_number":130,"context_line":"                                  ingress\u003dTrue, egress\u003dTrue):"},{"line_number":131,"context_line":"        qos_policy_id \u003d TEST_POLICY_ID1"},{"line_number":132,"context_line":"        if ingress and not egress:"},{"line_number":133,"context_line":"            qos_policy_id \u003d TEST_POLICY_ID2"},{"line_number":134,"context_line":"        elif egress and not ingress:"},{"line_number":135,"context_line":"            qos_policy_id \u003d TEST_POLICY_ID3"},{"line_number":136,"context_line":"        router_info \u003d self.generate_router_info("},{"line_number":137,"context_line":"            enable_ha\u003denable_ha,"},{"line_number":138,"context_line":"            qos_policy_id\u003dqos_policy_id)"}],"source_content_type":"text/x-python","patch_set":22,"id":"3f79a3b5_7740e35e","line":135,"range":{"start_line":131,"start_character":0,"end_line":135,"end_character":43},"in_reply_to":"3f79a3b5_7b93fea4","updated":"2018-11-10 08:33:11.000000000","message":"Done","commit_id":"6c33e6753e30d3a7400ac5e5337283dd8d832264"}],"neutron/tests/unit/agent/l3/extensions/qos/test_gateway_ip.py":[{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"b82b7892e099c8b8bd013b156d5cb9cd829ef541","unresolved":false,"context_lines":[{"line_number":182,"context_line":"                           TEST_QOS_GW_IP, 1111, 2222),"},{"line_number":183,"context_line":"                 mock.call(lib_const.EGRESS_DIRECTION,"},{"line_number":184,"context_line":"                           TEST_QOS_GW_IP, 3333, 4444)],"},{"line_number":185,"context_line":"                any_order\u003dTrue)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def test_add_router(self):"},{"line_number":188,"context_line":"        self._test_gateway_ip_add(self.gw_ip_qos_ext.add_router)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_491d2e71","line":185,"updated":"2018-09-19 19:05:47.000000000","message":"IMO, it is better to add a few assertion to verify if self.gw_ip_qos_ext.gateway_ip_qos_map is populated as expected.","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"d531187450a02a73f9298536b8a639e44c58a4b5","unresolved":false,"context_lines":[{"line_number":182,"context_line":"                           TEST_QOS_GW_IP, 1111, 2222),"},{"line_number":183,"context_line":"                 mock.call(lib_const.EGRESS_DIRECTION,"},{"line_number":184,"context_line":"                           TEST_QOS_GW_IP, 3333, 4444)],"},{"line_number":185,"context_line":"                any_order\u003dTrue)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def test_add_router(self):"},{"line_number":188,"context_line":"        self._test_gateway_ip_add(self.gw_ip_qos_ext.add_router)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_8139d63f","line":185,"in_reply_to":"3f79a3b5_491d2e71","updated":"2018-09-20 02:17:13.000000000","message":"Done","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"b82b7892e099c8b8bd013b156d5cb9cd829ef541","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        self._test_gateway_ip_add(self.gw_ip_qos_ext.add_router)"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"    def test_update_router(self):"},{"line_number":191,"context_line":"        self._test_gateway_ip_add(self.gw_ip_qos_ext.update_router)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_e9419a64","line":191,"updated":"2018-09-19 19:05:47.000000000","message":"Want to add another test for _process_update_policy?","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"d531187450a02a73f9298536b8a639e44c58a4b5","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        self._test_gateway_ip_add(self.gw_ip_qos_ext.add_router)"},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"    def test_update_router(self):"},{"line_number":191,"context_line":"        self._test_gateway_ip_add(self.gw_ip_qos_ext.update_router)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_413f3e21","line":191,"in_reply_to":"3f79a3b5_e9419a64","updated":"2018-09-20 02:17:13.000000000","message":"Done","commit_id":"ace62ac2a3bdb3406a9b37c0d598a2e92e3f6547"}],"releasenotes/notes/gateway-ip-qos-agent-extension-dfb1d30f85cce18b.yaml":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"ae0dc107353a58bd935a75219496b385c111a068","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":26,"id":"3f79a3b5_03f903c5","line":8,"updated":"2018-11-30 02:29:08.000000000","message":"Seen from the point of view of the release notes reader, I think it is confusing to have this separate from the description of the feature as a whole. I propose to consolidate the release note here with the one in the server patch. Please see my note to https://review.openstack.org/#/c/424468/35/releasenotes/notes/gateway-rate-limit-905bee1ed60c6b8e.yaml. In other words, we don\u0027t need a separate note here.\n\nI am assuming there will be another patch to provide configuration guidelines in the OpenStack Networking Guide.","commit_id":"bfc749cc5dabba868a44bd054b99a2c613c19bc5"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"48f6cd369147f76f28bc3d3ba30af8b1686f82a0","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":26,"id":"3f79a3b5_a3a60fbf","line":8,"in_reply_to":"3f79a3b5_03f903c5","updated":"2018-11-30 02:37:39.000000000","message":"OK, make sense, will remove this.","commit_id":"bfc749cc5dabba868a44bd054b99a2c613c19bc5"}],"setup.cfg":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"bc93c930f53eeb8e5b503469d82d78bf27c37747","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    log \u003d neutron.services.logapi.agent.log_extension:LoggingExtension"},{"line_number":110,"context_line":"neutron.agent.l3.extensions \u003d"},{"line_number":111,"context_line":"    fip_qos \u003d neutron.agent.l3.extensions.qos.fip:FipQosAgentExtension"},{"line_number":112,"context_line":"    gateway_ip_qos \u003d neutron.agent.l3.extensions.qos.gateway_ip:RouterGatewayIPQosAgentExtension"},{"line_number":113,"context_line":"    port_forwarding \u003d neutron.agent.l3.extensions.port_forwarding:PortForwardingAgentExtension"},{"line_number":114,"context_line":"    snat_log \u003d neutron.agent.l3.extensions.snat_log:SNATLoggingExtension"},{"line_number":115,"context_line":"neutron.services.logapi.drivers \u003d"}],"source_content_type":"text/x-ttcn-cfg","patch_set":24,"id":"3f79a3b5_1bc2cd37","line":112,"range":{"start_line":112,"start_character":3,"end_line":112,"end_character":18},"updated":"2018-11-29 23:04:20.000000000","message":"This has to be configured in /etc/neutron/l3_agent.ini for the extension to work, right? So we need to indicate how to do it in a release note and ion the networking guide: https://docs.openstack.org/neutron/latest/admin/config-qos.html#configuration","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"91ba27dbe42ce22738b10b508fb5f1e3e1a2018e","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    log \u003d neutron.services.logapi.agent.log_extension:LoggingExtension"},{"line_number":110,"context_line":"neutron.agent.l3.extensions \u003d"},{"line_number":111,"context_line":"    fip_qos \u003d neutron.agent.l3.extensions.qos.fip:FipQosAgentExtension"},{"line_number":112,"context_line":"    gateway_ip_qos \u003d neutron.agent.l3.extensions.qos.gateway_ip:RouterGatewayIPQosAgentExtension"},{"line_number":113,"context_line":"    port_forwarding \u003d neutron.agent.l3.extensions.port_forwarding:PortForwardingAgentExtension"},{"line_number":114,"context_line":"    snat_log \u003d neutron.agent.l3.extensions.snat_log:SNATLoggingExtension"},{"line_number":115,"context_line":"neutron.services.logapi.drivers \u003d"}],"source_content_type":"text/x-ttcn-cfg","patch_set":24,"id":"3f79a3b5_0db61428","line":112,"range":{"start_line":112,"start_character":3,"end_line":112,"end_character":18},"in_reply_to":"3f79a3b5_1bc2cd37","updated":"2018-11-29 23:52:30.000000000","message":"Yes, doc work will be done in a separated patch. I will add a release note for this one.","commit_id":"7b0bdad382ac8484b97e1f07ec0c3f4718bd6a2f"}]}
