)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This patch creates an abstract class to define the"},{"line_number":10,"context_line":"requirements for a Router implementation to communicate"},{"line_number":11,"context_line":"with the L3-agent."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ic75c2a054d622127376223152443952fd44bcff8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f7c97a3_76e6ce15","line":12,"updated":"2018-07-06 21:07:16.000000000","message":"I am new to the l3 agent domain and I am a bit struggling to understand the context of this patch. I think it would be helpful to link to a bug/BP (if there is one) that contains more background information, such as what is the motivation and the goal and what is the approach to achieve it.\n\nHowever, the change itself looks good to me in general.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":9,"context_line":"This patch creates an abstract class to define the"},{"line_number":10,"context_line":"requirements for a Router implementation to communicate"},{"line_number":11,"context_line":"with the L3-agent."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ic75c2a054d622127376223152443952fd44bcff8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f7c97a3_fb00d0b3","line":12,"in_reply_to":"5f7c97a3_76e6ce15","updated":"2018-07-19 16:48:18.000000000","message":"this patch is a precursor for this feature:\nhttps://bugs.launchpad.net/neutron/+bug/1705536\nI will link this bug in the next patch","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ee08e36f96b092e900419045fb9f4a4d9ed804f7","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch creates an abstract class to define the"},{"line_number":10,"context_line":"requirements for a Router implementation to communicate"},{"line_number":11,"context_line":"with the L3-agent."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ic75c2a054d622127376223152443952fd44bcff8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"3f79a3b5_fa236104","line":11,"updated":"2018-08-03 19:08:48.000000000","message":"There was a bug/rfe you can add, right?","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"5972b68f2c494e5b4cd805715984c1c024825484","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch creates an abstract class to define the"},{"line_number":10,"context_line":"requirements for a Router implementation to communicate"},{"line_number":11,"context_line":"with the L3-agent."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ic75c2a054d622127376223152443952fd44bcff8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"3f79a3b5_274d0b72","line":11,"in_reply_to":"3f79a3b5_fa236104","updated":"2018-08-07 17:40:53.000000000","message":"yes. The is a prework for:\nhttps://bugs.launchpad.net/neutron/+bug/1705536","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"f9e30a89ec0c4fb14c829ed39e3494b7f3005960","unresolved":false,"context_lines":[{"line_number":10,"context_line":"requirements for a Router implementation to communicate"},{"line_number":11,"context_line":"with the L3-agent."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This is prepwork for fixing:"},{"line_number":14,"context_line":"https://bugs.launchpad.net/neutron/+bug/1705536"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Ic75c2a054d622127376223152443952fd44bcff8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"3f79a3b5_d41a46ca","line":14,"range":{"start_line":13,"start_character":0,"end_line":14,"end_character":47},"updated":"2018-08-13 17:14:26.000000000","message":"use Related-Bug: #1705536\n\nand Closes-Bug can be used for last patch of this work.","commit_id":"68cfc0d5f126c98b828792dd5b3fd54a4a435eda"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"efc7ed8817e6334ee2e717064f78c1f9b945bd13","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"The only implementation as of this patch is the one we already know,"},{"line_number":13,"context_line":"powered by the Linux kernel IP stack and iptables, in RouterInfo class."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Related-Bug: #1705536"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Co-Authored-By: Xubo Zhang \u003cxubo.zhang@intel.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":31,"id":"5fc1f717_866b5bb5","line":14,"updated":"2019-03-12 14:35:51.000000000","message":"\u003e Please add following tag then we can trace all the patch with right\n \u003e BP:\n \u003e Partially-Implements: blueprint openflow-based-dvr","commit_id":"9a486f1c44d42a5c5e390bf6438d665df9c59290"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ee08e36f96b092e900419045fb9f4a4d9ed804f7","unresolved":false,"context_lines":[{"line_number":464,"context_line":"    def _process_router_if_compatible(self, router):"},{"line_number":465,"context_line":"        if (self.conf.external_network_bridge and"},{"line_number":466,"context_line":"                not self.router_base.external_bridge_exists("},{"line_number":467,"context_line":"                self.conf.external_network_bridge)):"},{"line_number":468,"context_line":"            LOG.error(\"The external network bridge \u0027%s\u0027 does not exist\","},{"line_number":469,"context_line":"                      self.conf.external_network_bridge)"},{"line_number":470,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_5a2a95e7","line":467,"updated":"2018-08-03 19:08:48.000000000","message":"This config option is going away, probably early Stein at this point, so you might need a rebase eventually.","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ca87d0c9a5d6eb4cf500b3a43c396a928a54f7e7","unresolved":false,"context_lines":[{"line_number":464,"context_line":"    def _process_router_if_compatible(self, router):"},{"line_number":465,"context_line":"        if (self.conf.external_network_bridge and"},{"line_number":466,"context_line":"                not self.router_base.external_bridge_exists("},{"line_number":467,"context_line":"                self.conf.external_network_bridge)):"},{"line_number":468,"context_line":"            LOG.error(\"The external network bridge \u0027%s\u0027 does not exist\","},{"line_number":469,"context_line":"                      self.conf.external_network_bridge)"},{"line_number":470,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_0809e52f","line":467,"in_reply_to":"3f79a3b5_14835b55","updated":"2018-08-08 18:11:31.000000000","message":"https://review.openstack.org/567369","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"5972b68f2c494e5b4cd805715984c1c024825484","unresolved":false,"context_lines":[{"line_number":464,"context_line":"    def _process_router_if_compatible(self, router):"},{"line_number":465,"context_line":"        if (self.conf.external_network_bridge and"},{"line_number":466,"context_line":"                not self.router_base.external_bridge_exists("},{"line_number":467,"context_line":"                self.conf.external_network_bridge)):"},{"line_number":468,"context_line":"            LOG.error(\"The external network bridge \u0027%s\u0027 does not exist\","},{"line_number":469,"context_line":"                      self.conf.external_network_bridge)"},{"line_number":470,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_14835b55","line":467,"in_reply_to":"3f79a3b5_5a2a95e7","updated":"2018-08-07 17:40:53.000000000","message":"Do you have the link to the patch that removes the option?","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":9396,"name":"igordcard","email":"igordcard@gmail.com","username":"igordcard"},"change_message_id":"6db92dbc9bbb21f2225d66598ce9ed1b83de334a","unresolved":false,"context_lines":[{"line_number":201,"context_line":"              after the external network is removed"},{"line_number":202,"context_line":"              Needed by the L3 service when dealing with DVR"},{"line_number":203,"context_line":"        1.4 - support network_update to get MTU updates"},{"line_number":204,"context_line":"    \"\"\""},{"line_number":205,"context_line":"    target \u003d oslo_messaging.Target(version\u003d\u00271.4\u0027)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    def __init__(self, host, conf\u003dNone):"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_bad0fe2a","line":204,"range":{"start_line":204,"start_character":4,"end_line":204,"end_character":7},"updated":"2019-01-16 22:47:13.000000000","message":"re-revision this","commit_id":"90bb38fedc0b302490e0554ff28f5b684a14ce01"}],"neutron/agent/l3/router_info.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ce5a5fc6cd4b04c3f2bb444267c544eebcaedc91","unresolved":false,"context_lines":[{"line_number":375,"context_line":"            elif fip_statuses[fip[\u0027id\u0027]] \u003d\u003d fip[\u0027status\u0027]:"},{"line_number":376,"context_line":"                # mark the status as not changed. we can\u0027t remove it because"},{"line_number":377,"context_line":"                # that\u0027s how the caller determines that it was removed"},{"line_number":378,"context_line":"                fip_statuses[fip[\u0027id\u0027]] \u003d router_info_base. \\"},{"line_number":379,"context_line":"                                          FLOATINGIP_STATUS_NOCHANGE"},{"line_number":380,"context_line":"        fips_to_remove \u003d ("},{"line_number":381,"context_line":"            ip_cidr for ip_cidr in existing_cidrs - new_cidrs - gw_cidrs"}],"source_content_type":"text/x-python","patch_set":1,"id":"df87a7cf_75d15557","line":378,"updated":"2017-12-15 22:34:13.000000000","message":"Can you remove the \\ and put this in parens?  Surprised pep8 didn\u0027t complain.","commit_id":"9eea5f626fcc5a8a3ff8a49121ee3a2ba5b78160"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ce5a5fc6cd4b04c3f2bb444267c544eebcaedc91","unresolved":false,"context_lines":[{"line_number":1162,"context_line":"                              fip[\u0027fixed_ip_address\u0027])"},{"line_number":1163,"context_line":"                             for fip in self.get_floating_ips()])"},{"line_number":1164,"context_line":""},{"line_number":1165,"context_line":"    # These methods are static as they will be consumed by the metadata driver"},{"line_number":1166,"context_line":"    @staticmethod"},{"line_number":1167,"context_line":"    def external_bridge_exists(ext_net):"},{"line_number":1168,"context_line":"        # By having this check internal to the router it can be changed"}],"source_content_type":"text/x-python","patch_set":1,"id":"df87a7cf_b5011db2","line":1165,"updated":"2017-12-15 22:34:13.000000000","message":"When I moved the mangle rule I was trying to think of why you need to move the below, maybe you can just refresh my memory, thanks.","commit_id":"9eea5f626fcc5a8a3ff8a49121ee3a2ba5b78160"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":1173,"context_line":""},{"line_number":1174,"context_line":"    # These methods are static as they will be consumed by the metadata driver"},{"line_number":1175,"context_line":"    @staticmethod"},{"line_number":1176,"context_line":"    def external_bridge_exists(ext_net):"},{"line_number":1177,"context_line":"        # By having this check internal to the router it can be changed"},{"line_number":1178,"context_line":"        # depending on the backend implementation the router is"},{"line_number":1179,"context_line":"        # implemented in without updating the l3-Agent."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_c1635adc","line":1176,"range":{"start_line":1176,"start_character":31,"end_line":1176,"end_character":38},"updated":"2018-07-06 21:07:16.000000000","message":"Nit: if this is an ID (not an object), better to rename it to ext_net_id","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":1173,"context_line":""},{"line_number":1174,"context_line":"    # These methods are static as they will be consumed by the metadata driver"},{"line_number":1175,"context_line":"    @staticmethod"},{"line_number":1176,"context_line":"    def external_bridge_exists(ext_net):"},{"line_number":1177,"context_line":"        # By having this check internal to the router it can be changed"},{"line_number":1178,"context_line":"        # depending on the backend implementation the router is"},{"line_number":1179,"context_line":"        # implemented in without updating the l3-Agent."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_9804421b","line":1176,"range":{"start_line":1176,"start_character":31,"end_line":1176,"end_character":38},"in_reply_to":"5f7c97a3_c1635adc","updated":"2018-07-19 16:48:18.000000000","message":"Done","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"58373f57424e7f62dd568c353cb2e66b268da4d4","unresolved":false,"context_lines":[{"line_number":1173,"context_line":""},{"line_number":1174,"context_line":"    # These methods are static as they will be consumed by the metadata driver"},{"line_number":1175,"context_line":"    @staticmethod"},{"line_number":1176,"context_line":"    def external_bridge_exists(ext_net):"},{"line_number":1177,"context_line":"        # By having this check internal to the router it can be changed"},{"line_number":1178,"context_line":"        # depending on the backend implementation the router is"},{"line_number":1179,"context_line":"        # implemented in without updating the l3-Agent."},{"line_number":1180,"context_line":"        return ip_lib.device_exists(ext_net)"},{"line_number":1181,"context_line":""},{"line_number":1182,"context_line":"    @staticmethod"},{"line_number":1183,"context_line":"    def after_router_added(resource, event, l3_agent, **kwargs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_9ca477a5","line":1180,"range":{"start_line":1176,"start_character":4,"end_line":1180,"end_character":44},"updated":"2018-07-12 17:47:34.000000000","message":"IMO, some sort of testcase should be added for this to make sure ip_lib.device_exists is called upon calling external_brige_exists.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7d1fcc6e0c6026ad4a06a6293fb0f94ebcd8682d","unresolved":false,"context_lines":[{"line_number":1173,"context_line":""},{"line_number":1174,"context_line":"    # These methods are static as they will be consumed by the metadata driver"},{"line_number":1175,"context_line":"    @staticmethod"},{"line_number":1176,"context_line":"    def external_bridge_exists(ext_net):"},{"line_number":1177,"context_line":"        # By having this check internal to the router it can be changed"},{"line_number":1178,"context_line":"        # depending on the backend implementation the router is"},{"line_number":1179,"context_line":"        # implemented in without updating the l3-Agent."},{"line_number":1180,"context_line":"        return ip_lib.device_exists(ext_net)"},{"line_number":1181,"context_line":""},{"line_number":1182,"context_line":"    @staticmethod"},{"line_number":1183,"context_line":"    def after_router_added(resource, event, l3_agent, **kwargs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_b900a504","line":1180,"range":{"start_line":1176,"start_character":4,"end_line":1180,"end_character":44},"in_reply_to":"5f7c97a3_2df26f70","updated":"2018-07-20 20:00:06.000000000","message":"method external_bridge_exists was used in agent.py L3NATAgent._process_router_if_compatible, which is unit-tested in test_agent.py","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"79fb1c3f0c57f512a3bdc241bd0139d9d138552f","unresolved":false,"context_lines":[{"line_number":1173,"context_line":""},{"line_number":1174,"context_line":"    # These methods are static as they will be consumed by the metadata driver"},{"line_number":1175,"context_line":"    @staticmethod"},{"line_number":1176,"context_line":"    def external_bridge_exists(ext_net):"},{"line_number":1177,"context_line":"        # By having this check internal to the router it can be changed"},{"line_number":1178,"context_line":"        # depending on the backend implementation the router is"},{"line_number":1179,"context_line":"        # implemented in without updating the l3-Agent."},{"line_number":1180,"context_line":"        return ip_lib.device_exists(ext_net)"},{"line_number":1181,"context_line":""},{"line_number":1182,"context_line":"    @staticmethod"},{"line_number":1183,"context_line":"    def after_router_added(resource, event, l3_agent, **kwargs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_2df26f70","line":1180,"range":{"start_line":1176,"start_character":4,"end_line":1180,"end_character":44},"in_reply_to":"5f7c97a3_9ca477a5","updated":"2018-07-17 16:01:47.000000000","message":"This comment is unaddressed ?","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":1173,"context_line":""},{"line_number":1174,"context_line":"    # These methods are static as they will be consumed by the metadata driver"},{"line_number":1175,"context_line":"    @staticmethod"},{"line_number":1176,"context_line":"    def external_bridge_exists(ext_net):"},{"line_number":1177,"context_line":"        # By having this check internal to the router it can be changed"},{"line_number":1178,"context_line":"        # depending on the backend implementation the router is"},{"line_number":1179,"context_line":"        # implemented in without updating the l3-Agent."},{"line_number":1180,"context_line":"        return ip_lib.device_exists(ext_net)"},{"line_number":1181,"context_line":""},{"line_number":1182,"context_line":"    @staticmethod"},{"line_number":1183,"context_line":"    def after_router_added(resource, event, l3_agent, **kwargs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_9b375cdc","line":1180,"range":{"start_line":1176,"start_character":4,"end_line":1180,"end_character":44},"in_reply_to":"5f7c97a3_9ca477a5","updated":"2018-07-19 16:48:18.000000000","message":"ip_lib.device_exists is the only function called in this function. there should be no scenario where it wont be called.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":1190,"context_line":"            router.iptables_manager.ipv4[\u0027nat\u0027].add_rule(c, r)"},{"line_number":1191,"context_line":"        router.iptables_manager.apply()"},{"line_number":1192,"context_line":""},{"line_number":1193,"context_line":"        # Removed isinstance(router, HaRouter)"},{"line_number":1194,"context_line":"        # HaRouter inherits from this class so it can\u0027t be imported here."},{"line_number":1195,"context_line":"        # Checking \u0027ha\u0027 is used to determine if a router uses"},{"line_number":1196,"context_line":"        # HaRouter or DvrEdgeHaRouter (which derives from HaRouter)"},{"line_number":1197,"context_line":"        # in the L3-Agent"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_d6fa4275","line":1194,"range":{"start_line":1193,"start_character":0,"end_line":1194,"end_character":73},"updated":"2018-07-06 21:07:16.000000000","message":"I somehow feel this comment is unnecessary, however, it is not a big deal.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":1190,"context_line":"            router.iptables_manager.ipv4[\u0027nat\u0027].add_rule(c, r)"},{"line_number":1191,"context_line":"        router.iptables_manager.apply()"},{"line_number":1192,"context_line":""},{"line_number":1193,"context_line":"        # Removed isinstance(router, HaRouter)"},{"line_number":1194,"context_line":"        # HaRouter inherits from this class so it can\u0027t be imported here."},{"line_number":1195,"context_line":"        # Checking \u0027ha\u0027 is used to determine if a router uses"},{"line_number":1196,"context_line":"        # HaRouter or DvrEdgeHaRouter (which derives from HaRouter)"},{"line_number":1197,"context_line":"        # in the L3-Agent"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_58254abe","line":1194,"range":{"start_line":1193,"start_character":0,"end_line":1194,"end_character":73},"in_reply_to":"5f7c97a3_d6fa4275","updated":"2018-07-19 16:48:18.000000000","message":"Done","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":1207,"context_line":"    def after_router_updated(resource, event, l3_agent, **kwargs):"},{"line_number":1208,"context_line":"        router \u003d kwargs[\u0027router\u0027]"},{"line_number":1209,"context_line":"        proxy \u003d l3_agent.metadata_driver"},{"line_number":1210,"context_line":"        # Ditto"},{"line_number":1211,"context_line":"        if (not proxy.monitors.get(router.router_id) and"},{"line_number":1212,"context_line":"                not router.router.get(\u0027ha\u0027)):"},{"line_number":1213,"context_line":"            proxy.spawn_monitored_metadata_proxy("}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_56ee32b5","line":1210,"range":{"start_line":1210,"start_character":8,"end_line":1210,"end_character":15},"updated":"2018-07-06 21:07:16.000000000","message":"This is a bit confusing.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":1207,"context_line":"    def after_router_updated(resource, event, l3_agent, **kwargs):"},{"line_number":1208,"context_line":"        router \u003d kwargs[\u0027router\u0027]"},{"line_number":1209,"context_line":"        proxy \u003d l3_agent.metadata_driver"},{"line_number":1210,"context_line":"        # Ditto"},{"line_number":1211,"context_line":"        if (not proxy.monitors.get(router.router_id) and"},{"line_number":1212,"context_line":"                not router.router.get(\u0027ha\u0027)):"},{"line_number":1213,"context_line":"            proxy.spawn_monitored_metadata_proxy("}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_f815364d","line":1210,"range":{"start_line":1210,"start_character":8,"end_line":1210,"end_character":15},"in_reply_to":"5f7c97a3_56ee32b5","updated":"2018-07-19 16:48:18.000000000","message":"Done","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ee08e36f96b092e900419045fb9f4a4d9ed804f7","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from neutron._i18n import _"},{"line_number":23,"context_line":"from neutron.agent.l3 import namespaces"},{"line_number":24,"context_line":"from neutron.agent.l3 import router_info_base"},{"line_number":25,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":26,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":27,"context_line":"from neutron.agent.linux import ra"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_fa79212f","line":24,"updated":"2018-08-03 19:08:48.000000000","message":"nit: could import this \"as rib\" or l3_rib, then...","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"5972b68f2c494e5b4cd805715984c1c024825484","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from neutron._i18n import _"},{"line_number":23,"context_line":"from neutron.agent.l3 import namespaces"},{"line_number":24,"context_line":"from neutron.agent.l3 import router_info_base"},{"line_number":25,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":26,"context_line":"from neutron.agent.linux import iptables_manager"},{"line_number":27,"context_line":"from neutron.agent.linux import ra"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_14f83be3","line":24,"in_reply_to":"3f79a3b5_fa79212f","updated":"2018-08-07 17:40:53.000000000","message":"will change","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ee08e36f96b092e900419045fb9f4a4d9ed804f7","unresolved":false,"context_lines":[{"line_number":377,"context_line":"            elif fip_statuses[fip[\u0027id\u0027]] \u003d\u003d fip[\u0027status\u0027]:"},{"line_number":378,"context_line":"                # mark the status as not changed. we can\u0027t remove it because"},{"line_number":379,"context_line":"                # that\u0027s how the caller determines that it was removed"},{"line_number":380,"context_line":"                fip_statuses[fip[\u0027id\u0027]] \u003d router_info_base. \\"},{"line_number":381,"context_line":"                                          FLOATINGIP_STATUS_NOCHANGE"},{"line_number":382,"context_line":"        fips_to_remove \u003d ("},{"line_number":383,"context_line":"            ip_cidr"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_7a93d150","line":380,"range":{"start_line":380,"start_character":60,"end_line":380,"end_character":61},"updated":"2018-08-03 19:08:48.000000000","message":"... you wouldn\u0027t need the backslash, etc.","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"5972b68f2c494e5b4cd805715984c1c024825484","unresolved":false,"context_lines":[{"line_number":377,"context_line":"            elif fip_statuses[fip[\u0027id\u0027]] \u003d\u003d fip[\u0027status\u0027]:"},{"line_number":378,"context_line":"                # mark the status as not changed. we can\u0027t remove it because"},{"line_number":379,"context_line":"                # that\u0027s how the caller determines that it was removed"},{"line_number":380,"context_line":"                fip_statuses[fip[\u0027id\u0027]] \u003d router_info_base. \\"},{"line_number":381,"context_line":"                                          FLOATINGIP_STATUS_NOCHANGE"},{"line_number":382,"context_line":"        fips_to_remove \u003d ("},{"line_number":383,"context_line":"            ip_cidr"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_946a0b7e","line":380,"range":{"start_line":380,"start_character":60,"end_line":380,"end_character":61},"in_reply_to":"3f79a3b5_7a93d150","updated":"2018-08-07 17:40:53.000000000","message":"apologies. will remove it.","commit_id":"06701918e58190dfa50629caffa8c9a9e994488b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"62524f85b4119075b4a52ba4a08ae1e78384b8c5","unresolved":false,"context_lines":[{"line_number":128,"context_line":"        return self.get_external_device_name(ex_gw_port[\u0027id\u0027])"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def get_gw_ns_name(self):"},{"line_number":131,"context_line":"        return self.ns_name"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    def _update_routing_table(self, operation, route, namespace):"},{"line_number":134,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027route\u0027, operation, \u0027to\u0027, route[\u0027destination\u0027],"}],"source_content_type":"text/x-python","patch_set":14,"id":"3f79a3b5_55ece6f2","line":131,"updated":"2018-09-19 13:50:47.000000000","message":"Isn\u0027t this now duplicated in the parent class?  And some other things too?","commit_id":"313c8bd8997249f8e88057764f96758617bd4429"}],"neutron/agent/l3/router_info_base.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"58373f57424e7f62dd568c353cb2e66b268da4d4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2017 Intel Corporation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_c178c82d","line":1,"range":{"start_line":1,"start_character":16,"end_line":1,"end_character":20},"updated":"2018-07-12 17:47:34.000000000","message":"nit: 2018","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2017 Intel Corporation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_3bec08f3","line":1,"range":{"start_line":1,"start_character":16,"end_line":1,"end_character":20},"in_reply_to":"5f7c97a3_c178c82d","updated":"2018-07-19 16:48:18.000000000","message":"Done","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":26,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":27,"context_line":"class RouterInfoBase(object):"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_b6ab061c","line":29,"range":{"start_line":29,"start_character":8,"end_line":29,"end_character":16},"updated":"2018-07-06 21:07:16.000000000","message":"Question: it seems this constructor is not consumed by its derived class (RouterInfo). Is it the intention? Just want to confirm.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":26,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":27,"context_line":"class RouterInfoBase(object):"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_1b2a6ce5","line":29,"range":{"start_line":29,"start_character":8,"end_line":29,"end_character":16},"in_reply_to":"5f7c97a3_b6ab061c","updated":"2018-07-19 16:48:18.000000000","message":"the idea behind this class is if the agent were to instantiated the agent wont throw an error. In the future, router_info will be derived from this one.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    @property"},{"line_number":35,"context_line":"    def router(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_b670e6db","line":32,"range":{"start_line":32,"start_character":13,"end_line":32,"end_character":20},"updated":"2018-07-06 21:07:16.000000000","message":"It seems the value of this variable is computed differently comparing to its derived class (RouterInfo). Is it what you want?","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    @property"},{"line_number":35,"context_line":"    def router(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_f69c1e0e","line":32,"range":{"start_line":32,"start_character":25,"end_line":32,"end_character":33},"updated":"2018-07-06 21:07:16.000000000","message":"Nit: it seems there is a constant defined in other module (i.e. NS_PREFIX). Better to reuse this constant in here.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    @property"},{"line_number":35,"context_line":"    def router(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_9b351c46","line":32,"range":{"start_line":32,"start_character":13,"end_line":32,"end_character":20},"in_reply_to":"5f7c97a3_b670e6db","updated":"2018-07-19 16:48:18.000000000","message":"yes this is meant to be an abstract/mock class.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    @property"},{"line_number":35,"context_line":"    def router(self):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_6e939ca5","line":32,"range":{"start_line":32,"start_character":25,"end_line":32,"end_character":33},"in_reply_to":"5f7c97a3_f69c1e0e","updated":"2018-07-19 16:48:18.000000000","message":"the constant is in the part of the code base that we want to avoid importing.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    @router.setter"},{"line_number":39,"context_line":"    def router(self, value):"},{"line_number":40,"context_line":"        self._router \u003d value"},{"line_number":41,"context_line":"        if not self._router:"},{"line_number":42,"context_line":"            return"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def get_gw_ns_name(self):"},{"line_number":45,"context_line":"        return self.ns_name"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_41018a03","line":42,"range":{"start_line":41,"start_character":0,"end_line":42,"end_character":18},"updated":"2018-07-06 21:07:16.000000000","message":"Couldn\u0027t figure out what this code is trying to do.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    @router.setter"},{"line_number":39,"context_line":"    def router(self, value):"},{"line_number":40,"context_line":"        self._router \u003d value"},{"line_number":41,"context_line":"        if not self._router:"},{"line_number":42,"context_line":"            return"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def get_gw_ns_name(self):"},{"line_number":45,"context_line":"        return self.ns_name"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_2e5044d5","line":42,"range":{"start_line":41,"start_character":0,"end_line":42,"end_character":18},"in_reply_to":"5f7c97a3_41018a03","updated":"2018-07-19 16:48:18.000000000","message":"that\u0027s a mistake. fixed.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    @abc.abstractmethod"},{"line_number":82,"context_line":"    def external_bridge_exists(ext_net_id):"},{"line_number":83,"context_line":"        \"\"\"Should be a static method\"\"\""},{"line_number":84,"context_line":"        pass"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_017cf26e","line":83,"range":{"start_line":83,"start_character":11,"end_line":83,"end_character":36},"updated":"2018-07-06 21:07:16.000000000","message":"It is better to expand this comment to explain what this method is about and document the inputted parameter \u0027ext_net_id\u0027. This applies to all the methods below as well.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    @abc.abstractmethod"},{"line_number":82,"context_line":"    def external_bridge_exists(ext_net_id):"},{"line_number":83,"context_line":"        \"\"\"Should be a static method\"\"\""},{"line_number":84,"context_line":"        pass"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_cedbd04b","line":83,"range":{"start_line":83,"start_character":11,"end_line":83,"end_character":36},"in_reply_to":"5f7c97a3_017cf26e","updated":"2018-07-19 16:48:18.000000000","message":"Done","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"d2b7c58828d846ce4a696cbb8455e42491dbf2cc","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    @abc.abstractmethod"},{"line_number":82,"context_line":"    def external_bridge_exists(ext_net_id):"},{"line_number":83,"context_line":"        \"\"\"Should be a static method\"\"\""},{"line_number":84,"context_line":"        pass"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @abc.abstractmethod"},{"line_number":87,"context_line":"    def after_router_added(resource, event, l3_agent, **kwargs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_81400234","line":84,"range":{"start_line":84,"start_character":8,"end_line":84,"end_character":12},"updated":"2018-07-06 21:07:16.000000000","message":"Nit: the abstractmethod above doesn\u0027t have a \u0027pass\u0027, so I assume this \u0027pass\u0027 is unnecessary? Same question applies to all the methods below as well.","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"7f4cd2dd9652e58831546919da3eae973534983a","unresolved":false,"context_lines":[{"line_number":81,"context_line":"    @abc.abstractmethod"},{"line_number":82,"context_line":"    def external_bridge_exists(ext_net_id):"},{"line_number":83,"context_line":"        \"\"\"Should be a static method\"\"\""},{"line_number":84,"context_line":"        pass"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @abc.abstractmethod"},{"line_number":87,"context_line":"    def after_router_added(resource, event, l3_agent, **kwargs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_08b1b745","line":84,"range":{"start_line":84,"start_character":8,"end_line":84,"end_character":12},"in_reply_to":"5f7c97a3_81400234","updated":"2018-07-19 16:48:18.000000000","message":"done","commit_id":"713e24588beaa5c4d741401a86eac67ceec5bc25"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"e3b753819d4747ebd8c20c61523db1f6dff2690a","unresolved":false,"context_lines":[{"line_number":27,"context_line":"class RouterInfoBase(object):"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_c250052f","line":30,"updated":"2018-09-10 00:07:32.000000000","message":"nit: if \"router_id\" has to be always in kwargs, maybe You can define it explicit as parameter here?","commit_id":"6fc58cff9f63b7562786b0dad48cb56c0ea40b91"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"291b2583a7ee0df1c1beb5024df68a8fbce0e9ae","unresolved":false,"context_lines":[{"line_number":27,"context_line":"class RouterInfoBase(object):"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_fe0dea34","line":30,"in_reply_to":"3f79a3b5_c250052f","updated":"2018-09-18 21:44:46.000000000","message":"Done","commit_id":"6fc58cff9f63b7562786b0dad48cb56c0ea40b91"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"e3b753819d4747ebd8c20c61523db1f6dff2690a","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_6231f10a","line":31,"updated":"2018-09-10 00:07:32.000000000","message":"nit: and same for router, or if those parameters are optional, maybe use kwargs.get() to be safe if it\u0027s not provided","commit_id":"6fc58cff9f63b7562786b0dad48cb56c0ea40b91"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"291b2583a7ee0df1c1beb5024df68a8fbce0e9ae","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def __init__(self, agent, host, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d kwargs[\u0027router_id\u0027]"},{"line_number":31,"context_line":"        self._router \u003d kwargs[\u0027router\u0027]"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_9e16364a","line":31,"in_reply_to":"3f79a3b5_6231f10a","updated":"2018-09-18 21:44:46.000000000","message":"Done","commit_id":"6fc58cff9f63b7562786b0dad48cb56c0ea40b91"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"c0520de652f9db04da5b516e096dbffa80f942cf","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    def __init__(self, agent, host, router_id, router, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d router_id"},{"line_number":31,"context_line":"        self._router \u003d router"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    @property"},{"line_number":35,"context_line":"    def router(self):"}],"source_content_type":"text/x-python","patch_set":14,"id":"3f79a3b5_f0d187f9","line":32,"updated":"2018-09-19 09:19:30.000000000","message":"why this limitation to 14 chars only?","commit_id":"313c8bd8997249f8e88057764f96758617bd4429"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"62524f85b4119075b4a52ba4a08ae1e78384b8c5","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    def __init__(self, agent, host, router_id, router, *args, **kwargs):"},{"line_number":30,"context_line":"        self.router_id \u003d router_id"},{"line_number":31,"context_line":"        self._router \u003d router"},{"line_number":32,"context_line":"        self.ns_name \u003d (\"qrouter-\" + self.router_id)[0:14]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    @property"},{"line_number":35,"context_line":"    def router(self):"}],"source_content_type":"text/x-python","patch_set":14,"id":"3f79a3b5_72a25841","line":32,"in_reply_to":"3f79a3b5_f0d187f9","updated":"2018-09-19 13:50:47.000000000","message":"Right, maybe there is some confusion with DEVICE_NAME_MAX_LEN (15) ?\n\nSince this is a namespace name it can be larger, plus we shouldn\u0027t be using \u0027qrouter\u0027 here but a constant like is done in the RouterNamespace class when it build is (see _get_ns_name()).\n\nI guess this shows this class is never really tested from what I can tell, for example, I couldn\u0027t find a call to Super() from the RouterInfo class.","commit_id":"313c8bd8997249f8e88057764f96758617bd4429"}],"neutron/agent/metadata/driver.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ce5a5fc6cd4b04c3f2bb444267c544eebcaedc91","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        registry.subscribe(l3_agent.router_base.after_router_updated,"},{"line_number":167,"context_line":"                           resources.ROUTER, events.AFTER_UPDATE)"},{"line_number":168,"context_line":"        registry.subscribe(l3_agent.router_base.before_router_removed,"},{"line_number":169,"context_line":"                           resources.ROUTER, events.BEFORE_DELETE)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    @classmethod"},{"line_number":172,"context_line":"    def metadata_filter_rules(cls, port, mark):"}],"source_content_type":"text/x-python","patch_set":1,"id":"df87a7cf_f549e531","line":169,"updated":"2017-12-15 22:34:13.000000000","message":"Seems strange to have this code here when the callbacks are over in router_info.","commit_id":"9eea5f626fcc5a8a3ff8a49121ee3a2ba5b78160"}],"neutron/tests/unit/agent/l3/test_agent.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"e3b753819d4747ebd8c20c61523db1f6dff2690a","unresolved":false,"context_lines":[{"line_number":42,"context_line":"from neutron.agent.l3 import namespace_manager"},{"line_number":43,"context_line":"from neutron.agent.l3 import namespaces"},{"line_number":44,"context_line":"from neutron.agent.l3 import router_info as l3router"},{"line_number":45,"context_line":"from neutron.agent.l3 import router_info_base as l3routerbase"},{"line_number":46,"context_line":"from neutron.agent.l3 import router_processing_queue"},{"line_number":47,"context_line":"from neutron.agent.linux import dibbler"},{"line_number":48,"context_line":"from neutron.agent.linux import interface"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_82344dfc","line":45,"updated":"2018-09-10 00:07:32.000000000","message":"Please be consequent with naming those imports. E.g. here You have \"as l3routerbase\" but in neutron/tests/unit/agent/l3/test_router_info.py You are using just \"router_info_base\". IMO would be easier to read code in the feature if it would be named in same way everywhere","commit_id":"6fc58cff9f63b7562786b0dad48cb56c0ea40b91"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"8a6967d0e6dbe22a082ce40e05bafd5801314abf","unresolved":false,"context_lines":[{"line_number":42,"context_line":"from neutron.agent.l3 import namespace_manager"},{"line_number":43,"context_line":"from neutron.agent.l3 import namespaces"},{"line_number":44,"context_line":"from neutron.agent.l3 import router_info as l3router"},{"line_number":45,"context_line":"from neutron.agent.l3 import router_info_base as l3routerbase"},{"line_number":46,"context_line":"from neutron.agent.l3 import router_processing_queue"},{"line_number":47,"context_line":"from neutron.agent.linux import dibbler"},{"line_number":48,"context_line":"from neutron.agent.linux import interface"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_72d8067e","line":45,"range":{"start_line":45,"start_character":45,"end_line":45,"end_character":61},"updated":"2018-09-07 02:39:26.000000000","message":"don\u0027t seem to need this to avoid a line too long below","commit_id":"6fc58cff9f63b7562786b0dad48cb56c0ea40b91"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"291b2583a7ee0df1c1beb5024df68a8fbce0e9ae","unresolved":false,"context_lines":[{"line_number":42,"context_line":"from neutron.agent.l3 import namespace_manager"},{"line_number":43,"context_line":"from neutron.agent.l3 import namespaces"},{"line_number":44,"context_line":"from neutron.agent.l3 import router_info as l3router"},{"line_number":45,"context_line":"from neutron.agent.l3 import router_info_base as l3routerbase"},{"line_number":46,"context_line":"from neutron.agent.l3 import router_processing_queue"},{"line_number":47,"context_line":"from neutron.agent.linux import dibbler"},{"line_number":48,"context_line":"from neutron.agent.linux import interface"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_e34f8e8f","line":45,"range":{"start_line":45,"start_character":45,"end_line":45,"end_character":61},"in_reply_to":"3f79a3b5_72d8067e","updated":"2018-09-18 21:44:46.000000000","message":"removed","commit_id":"6fc58cff9f63b7562786b0dad48cb56c0ea40b91"},{"author":{"_account_id":28059,"name":"Xubo Zhang","email":"xubo.zhang@intel.com","username":"xbzhang99"},"change_message_id":"291b2583a7ee0df1c1beb5024df68a8fbce0e9ae","unresolved":false,"context_lines":[{"line_number":42,"context_line":"from neutron.agent.l3 import namespace_manager"},{"line_number":43,"context_line":"from neutron.agent.l3 import namespaces"},{"line_number":44,"context_line":"from neutron.agent.l3 import router_info as l3router"},{"line_number":45,"context_line":"from neutron.agent.l3 import router_info_base as l3routerbase"},{"line_number":46,"context_line":"from neutron.agent.l3 import router_processing_queue"},{"line_number":47,"context_line":"from neutron.agent.linux import dibbler"},{"line_number":48,"context_line":"from neutron.agent.linux import interface"}],"source_content_type":"text/x-python","patch_set":13,"id":"3f79a3b5_635b7e53","line":45,"in_reply_to":"3f79a3b5_82344dfc","updated":"2018-09-18 21:44:46.000000000","message":"removed","commit_id":"6fc58cff9f63b7562786b0dad48cb56c0ea40b91"}],"neutron/tests/unit/agent/l3/test_dvr_local_router.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"ce5a5fc6cd4b04c3f2bb444267c544eebcaedc91","unresolved":false,"context_lines":[{"line_number":569,"context_line":"        state \u003d True"},{"line_number":570,"context_line":"        with mock.patch.object(l3_agent.router_base.ip_lib, \u0027IPDevice\u0027) as \\"},{"line_number":571,"context_line":"                rtrdev, mock.patch.object(ri, \u0027_cache_arp_entry\u0027) as \\"},{"line_number":572,"context_line":"                arp_cache:"},{"line_number":573,"context_line":"                rtrdev.return_value.exists.return_value \u003d False"},{"line_number":574,"context_line":"                state \u003d ri._update_arp_entry("},{"line_number":575,"context_line":"                    mock.ANY, mock.ANY, subnet_id, \u0027add\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"df87a7cf_555e9176","line":572,"updated":"2017-12-15 22:34:13.000000000","message":"Maybe this is cleaner:\n\nwith mock.patch.object(l3_agent.router_base.ip_lib,\n                       \u0027IPDevice\u0027) as rtrdev,\\\n    mock.patch.object(ri, \u0027_cache_arp_entry\u0027) as arp_cache:","commit_id":"9eea5f626fcc5a8a3ff8a49121ee3a2ba5b78160"}]}
