)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f171b14c5edd43eb65027abc462f5548463ca65a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix static strings with labels for DVR"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"There are couple of static strings"},{"line_number":10,"context_line":"introduced for DVR such as the"},{"line_number":11,"context_line":"L3 agent mode and the distributed key."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_97f3989e","line":9,"updated":"2014-12-30 08:21:13.000000000","message":"nit: probably there are better values for line wrapping (like 70 or 72 chars).","commit_id":"c73afa6c15f06c48a1d930614eca6bb65311a353"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"a5f0b8b012ccffa6c4d3453bdfc8a115e0ddc2db","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix static strings with labels for DVR"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"There are couple of static strings"},{"line_number":10,"context_line":"introduced for DVR such as the"},{"line_number":11,"context_line":"L3 agent mode and the distributed key."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_9f2c474c","line":9,"in_reply_to":"3a961159_97f3989e","updated":"2015-01-05 18:53:30.000000000","message":"will fix this.","commit_id":"c73afa6c15f06c48a1d930614eca6bb65311a353"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"416964d0d0f1d8cf5674cd213146e089bda60b23","unresolved":false,"context_lines":[{"line_number":10,"context_line":"DVR configuration such as the L3 agent mode."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This patch would clean up the static strings with"},{"line_number":13,"context_line":"the labels."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I143262e62ee994e6c01d63e4ea7d5f6292de8286"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a961159_f462be14","line":13,"updated":"2015-01-14 22:04:42.000000000","message":"This is not a trivial change and therefore a bug needs to be associated to this commit.","commit_id":"9d72151089fc3dc91e2b56cf876703ed216325ef"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"8a5981f9632f4e41b7b489a561b2d2a8e5724076","unresolved":false,"context_lines":[{"line_number":10,"context_line":"DVR configuration such as the L3 agent mode."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This patch would clean up the static strings with"},{"line_number":13,"context_line":"the labels."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I143262e62ee994e6c01d63e4ea7d5f6292de8286"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a961159_f95c524e","line":13,"in_reply_to":"3a961159_f462be14","updated":"2015-01-15 17:53:02.000000000","message":"Done","commit_id":"9d72151089fc3dc91e2b56cf876703ed216325ef"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"051abdd06df0768beb0dabb022570c9456dd0c43","unresolved":false,"context_lines":[{"line_number":995,"context_line":"            # DVR handling code for SNAT"},{"line_number":996,"context_line":"            self._snat_redirect_remove(ri, port, interface_name)"},{"line_number":997,"context_line":"            if (self.conf.agent_mode \u003d\u003d l3_constants.L3_AGENT_MODE_DVR_SNAT"},{"line_number":998,"context_line":"                and (ri.ex_gw_port[\u0027binding:host_id\u0027] \u003d\u003d self.host)):"},{"line_number":999,"context_line":"                snat_port \u003d self._map_internal_interfaces(ri, port,"},{"line_number":1000,"context_line":"                                                          ri.snat_ports)"},{"line_number":1001,"context_line":"                if snat_port:"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_8e38bb3c","line":998,"updated":"2015-01-13 19:01:41.000000000","message":"inner parenthesis are not required","commit_id":"499b520c175367da54654ba740011b7900bf510f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"efc866bd2432c458e125d3eae61aba49c1383d19","unresolved":false,"context_lines":[{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    @common_utils.exception_logger()"},{"line_number":532,"context_line":"    def process_router(self, ri):"},{"line_number":533,"context_line":"        # TODO(mrsmith) - we shouldn\u0027t need to check here"},{"line_number":534,"context_line":"        if l3_constants.ROUTER_DISTRIBUTED not in ri.router:"},{"line_number":535,"context_line":"            ri.router[\u0027distributed\u0027] \u003d False"},{"line_number":536,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_be19be7b","line":533,"updated":"2015-01-16 03:11:30.000000000","message":"I think here we should address Michael\u0027s TODO so that this is not necessary at all.","commit_id":"fd433c9f9a07e2fffadd1eee192eec9000a0cf10"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"72b7459d27b62092ba1b3ece82ff1da0a13079ad","unresolved":false,"context_lines":[{"line_number":530,"context_line":""},{"line_number":531,"context_line":"    @common_utils.exception_logger()"},{"line_number":532,"context_line":"    def process_router(self, ri):"},{"line_number":533,"context_line":"        # TODO(mrsmith) - we shouldn\u0027t need to check here"},{"line_number":534,"context_line":"        if l3_constants.ROUTER_DISTRIBUTED not in ri.router:"},{"line_number":535,"context_line":"            ri.router[\u0027distributed\u0027] \u003d False"},{"line_number":536,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_5b96134a","line":533,"in_reply_to":"3a961159_be19be7b","updated":"2015-01-16 18:03:22.000000000","message":"I am not sure if this is still within the scope of this patch.","commit_id":"fd433c9f9a07e2fffadd1eee192eec9000a0cf10"}],"neutron/common/constants.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f171b14c5edd43eb65027abc462f5548463ca65a","unresolved":false,"context_lines":[{"line_number":42,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":43,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":44,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":45,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"},{"line_number":46,"context_line":"L3_AGENT_MODE \u003d \u0027agent_mode\u0027"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"DEVICE_ID_RESERVED_DHCP_PORT \u003d \"reserved_dhcp_port\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_b7f09492","line":45,"updated":"2014-12-30 08:21:13.000000000","message":"I don\u0027t see a lot of value in adding this constant. Can you elaborate on why it needs that new level of indirection?","commit_id":"c73afa6c15f06c48a1d930614eca6bb65311a353"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"a5f0b8b012ccffa6c4d3453bdfc8a115e0ddc2db","unresolved":false,"context_lines":[{"line_number":42,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":43,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":44,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":45,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"},{"line_number":46,"context_line":"L3_AGENT_MODE \u003d \u0027agent_mode\u0027"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"DEVICE_ID_RESERVED_DHCP_PORT \u003d \"reserved_dhcp_port\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_ff10eb01","line":45,"in_reply_to":"3a961159_b7f09492","updated":"2015-01-05 18:53:30.000000000","message":"I am not sure what you mean by \"this\" constant. \nIf you mean the \"distributed\" and the \"agent_mode\". These constants are used widely in the code base and we wanted to make sure that we get rid of the static strings with labels.","commit_id":"c73afa6c15f06c48a1d930614eca6bb65311a353"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"7a0b7fa8049b1d3c096542e3f8a4155d7c6c18e7","unresolved":false,"context_lines":[{"line_number":42,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":43,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":44,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":45,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"},{"line_number":46,"context_line":"L3_AGENT_MODE \u003d \u0027agent_mode\u0027"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"DEVICE_ID_RESERVED_DHCP_PORT \u003d \"reserved_dhcp_port\""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_43a11645","line":45,"in_reply_to":"3a961159_ff10eb01","updated":"2015-01-06 09:16:59.000000000","message":"There are a lot of other strings that we use as dict keys for a lot of objects. So why are those special?","commit_id":"c73afa6c15f06c48a1d930614eca6bb65311a353"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f171b14c5edd43eb65027abc462f5548463ca65a","unresolved":false,"context_lines":[{"line_number":43,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":44,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":45,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"},{"line_number":46,"context_line":"L3_AGENT_MODE \u003d \u0027agent_mode\u0027"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"DEVICE_ID_RESERVED_DHCP_PORT \u003d \"reserved_dhcp_port\""},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_d7ed20b9","line":46,"updated":"2014-12-30 08:21:13.000000000","message":"Same as above.","commit_id":"c73afa6c15f06c48a1d930614eca6bb65311a353"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"21eb75a0378b8286c493be46e5acb60514be59d7","unresolved":false,"context_lines":[{"line_number":46,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":47,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":48,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":49,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"},{"line_number":50,"context_line":"L3_AGENT_MODE \u003d \u0027agent_mode\u0027"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"DEVICE_ID_RESERVED_DHCP_PORT \u003d \"reserved_dhcp_port\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_403525f5","line":49,"updated":"2015-01-09 11:04:58.000000000","message":"It\u0027s still not clear to me what\u0027s the benefit of replacing dict keys with labels. I get why we may be interested in labels for values (modes in this case).","commit_id":"0f33d8172ea41dedc2982b0446a0121d69aedbcd"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"cdbf86b1e785401003ff9de8b5d4820ab2c8a4cc","unresolved":false,"context_lines":[{"line_number":46,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":47,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":48,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":49,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"},{"line_number":50,"context_line":"L3_AGENT_MODE \u003d \u0027agent_mode\u0027"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"DEVICE_ID_RESERVED_DHCP_PORT \u003d \"reserved_dhcp_port\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_27b3c14e","line":49,"in_reply_to":"3a961159_403525f5","updated":"2015-01-09 20:49:25.000000000","message":"Ok, I have addressed your comments in the next patch. I have not replaced the dict keys with the LABELS.","commit_id":"0f33d8172ea41dedc2982b0446a0121d69aedbcd"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"051abdd06df0768beb0dabb022570c9456dd0c43","unresolved":false,"context_lines":[{"line_number":43,"context_line":"# DEVICE_OWNER_ROUTER_HA_INTF is a special case and so is not included."},{"line_number":44,"context_line":"ROUTER_INTERFACE_OWNERS \u003d (DEVICE_OWNER_ROUTER_INTF,"},{"line_number":45,"context_line":"                           DEVICE_OWNER_DVR_INTERFACE)"},{"line_number":46,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":47,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":48,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":49,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_4e5c137e","line":46,"updated":"2015-01-13 19:01:41.000000000","message":"is it the right place to define such constants? as they concern only L3","commit_id":"499b520c175367da54654ba740011b7900bf510f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ff31a458fbef9891928988930f2f413d0b3cb368","unresolved":false,"context_lines":[{"line_number":43,"context_line":"# DEVICE_OWNER_ROUTER_HA_INTF is a special case and so is not included."},{"line_number":44,"context_line":"ROUTER_INTERFACE_OWNERS \u003d (DEVICE_OWNER_ROUTER_INTF,"},{"line_number":45,"context_line":"                           DEVICE_OWNER_DVR_INTERFACE)"},{"line_number":46,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":47,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":48,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":49,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_0e2bbd82","line":46,"in_reply_to":"3a961159_4e5c137e","updated":"2015-01-15 17:53:48.000000000","message":"This is the right place to define the constants.","commit_id":"499b520c175367da54654ba740011b7900bf510f"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"866b9db845ce9cf3f5bc8658bd0856e920f4dfe0","unresolved":false,"context_lines":[{"line_number":46,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":47,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":48,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":49,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"},{"line_number":50,"context_line":"L3_AGENT_MODE \u003d \u0027agent_mode\u0027"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"DEVICE_ID_RESERVED_DHCP_PORT \u003d \"reserved_dhcp_port\""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_443ef2ba","line":49,"updated":"2015-01-12 10:15:33.000000000","message":"You still use ROUTER_DISTRIBUTED and L3_AGENT_MODE. So you haven\u0027t addressed my question: what\u0027s the point of replacing *this particular* dict keys with labels while other code actively uses strings to specify dict keys without that level of indirection?","commit_id":"499b520c175367da54654ba740011b7900bf510f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"923437afa5df405d0083992d03dc8d0e5dc1bf41","unresolved":false,"context_lines":[{"line_number":46,"context_line":"L3_AGENT_MODE_DVR \u003d \u0027dvr\u0027"},{"line_number":47,"context_line":"L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027"},{"line_number":48,"context_line":"L3_AGENT_MODE_LEGACY \u003d \u0027legacy\u0027"},{"line_number":49,"context_line":"ROUTER_DISTRIBUTED \u003d \u0027distributed\u0027"},{"line_number":50,"context_line":"L3_AGENT_MODE \u003d \u0027agent_mode\u0027"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"DEVICE_ID_RESERVED_DHCP_PORT \u003d \"reserved_dhcp_port\""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a961159_4a9fbf65","line":49,"in_reply_to":"3a961159_443ef2ba","updated":"2015-01-13 00:49:07.000000000","message":"I think you have not looked at other files.\nI am not using it anymore to substitute for the dictionary key.\nI would recommend you to take a look at the other files where I am using these variables.","commit_id":"499b520c175367da54654ba740011b7900bf510f"}],"neutron/db/l3_agentschedulers_db.py":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"e79356f62e67787c5680a5ef499bcb401d3efd42","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        if is_agent_router_types_incompatible:"},{"line_number":167,"context_line":"            router_type \u003d ("},{"line_number":168,"context_line":"                constants.ROUTER_DISTRIBUTED if is_distributed else"},{"line_number":169,"context_line":"                constants.L3_AGENT_MODE_LEGACY)"},{"line_number":170,"context_line":"            raise l3agentscheduler.RouterL3AgentMismatch("},{"line_number":171,"context_line":"                router_type\u003drouter_type, router_id\u003drouter[\u0027id\u0027],"},{"line_number":172,"context_line":"                agent_mode\u003dagent_mode, agent_id\u003dagent[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_fae9877f","line":169,"updated":"2014-12-23 08:43:17.000000000","message":"\u0027centralized\u0027 -\u003e \u0027legacy\u0027 - is it a valid change?","commit_id":"526bb57b5f3a94049f824a66a18a921c57f06b85"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"02c55ded7f3d5a93514c33c5ad09d6275e50c1e1","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        if is_agent_router_types_incompatible:"},{"line_number":167,"context_line":"            router_type \u003d ("},{"line_number":168,"context_line":"                constants.ROUTER_DISTRIBUTED if is_distributed else"},{"line_number":169,"context_line":"                constants.L3_AGENT_MODE_LEGACY)"},{"line_number":170,"context_line":"            raise l3agentscheduler.RouterL3AgentMismatch("},{"line_number":171,"context_line":"                router_type\u003drouter_type, router_id\u003drouter[\u0027id\u0027],"},{"line_number":172,"context_line":"                agent_mode\u003dagent_mode, agent_id\u003dagent[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_2dc74946","line":169,"in_reply_to":"3a961159_ba361f01","updated":"2014-12-23 20:25:49.000000000","message":"Hi Oleg/salvatore,\nYes here \"centralized\" means \"legacy\". This variable was just added to pop up in the exception message. So not a problem and we can be aligned with \"legacy\" to be more generic.","commit_id":"526bb57b5f3a94049f824a66a18a921c57f06b85"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"c4b02d5ab55ec9e41fa83b609883dda8c5418088","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        if is_agent_router_types_incompatible:"},{"line_number":167,"context_line":"            router_type \u003d ("},{"line_number":168,"context_line":"                constants.ROUTER_DISTRIBUTED if is_distributed else"},{"line_number":169,"context_line":"                constants.L3_AGENT_MODE_LEGACY)"},{"line_number":170,"context_line":"            raise l3agentscheduler.RouterL3AgentMismatch("},{"line_number":171,"context_line":"                router_type\u003drouter_type, router_id\u003drouter[\u0027id\u0027],"},{"line_number":172,"context_line":"                agent_mode\u003dagent_mode, agent_id\u003dagent[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_76b1fd00","line":169,"in_reply_to":"3a961159_fae9877f","updated":"2015-01-09 19:25:34.000000000","message":"Hi Oleg,\n\"centralized\" is same as \"legacy\". We have been using \"legacy\" in all places and so I replaced the \"legacy\" with centralized.\n\nI don\u0027t think this will affect any unit tests as you have mentioned in your comment in PS5.","commit_id":"526bb57b5f3a94049f824a66a18a921c57f06b85"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"fb3ff832c8c8ac31bd5520c28d17f0694d14761d","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        if is_agent_router_types_incompatible:"},{"line_number":167,"context_line":"            router_type \u003d ("},{"line_number":168,"context_line":"                constants.ROUTER_DISTRIBUTED if is_distributed else"},{"line_number":169,"context_line":"                constants.L3_AGENT_MODE_LEGACY)"},{"line_number":170,"context_line":"            raise l3agentscheduler.RouterL3AgentMismatch("},{"line_number":171,"context_line":"                router_type\u003drouter_type, router_id\u003drouter[\u0027id\u0027],"},{"line_number":172,"context_line":"                agent_mode\u003dagent_mode, agent_id\u003dagent[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a961159_ba361f01","line":169,"in_reply_to":"3a961159_fae9877f","updated":"2014-12-23 08:49:13.000000000","message":"I agree. it seems like the wrong constants was put here.","commit_id":"526bb57b5f3a94049f824a66a18a921c57f06b85"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"efc866bd2432c458e125d3eae61aba49c1383d19","unresolved":false,"context_lines":[{"line_number":203,"context_line":"            if binding.l3_agent_id \u003d\u003d agent_id:"},{"line_number":204,"context_line":"                # router already bound to the agent we need"},{"line_number":205,"context_line":"                return False"},{"line_number":206,"context_line":"        if router.get(constants.ROUTER_DISTRIBUTED):"},{"line_number":207,"context_line":"            return False"},{"line_number":208,"context_line":"        # non-dvr case: centralized router is already bound to some agent"},{"line_number":209,"context_line":"        raise l3agentscheduler.RouterHostedByL3Agent("}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_5e57fa00","line":206,"updated":"2015-01-16 03:11:30.000000000","message":"so are we using labels or not? I saw that in most cases you don\u0027t.","commit_id":"fd433c9f9a07e2fffadd1eee192eec9000a0cf10"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"72b7459d27b62092ba1b3ece82ff1da0a13079ad","unresolved":false,"context_lines":[{"line_number":203,"context_line":"            if binding.l3_agent_id \u003d\u003d agent_id:"},{"line_number":204,"context_line":"                # router already bound to the agent we need"},{"line_number":205,"context_line":"                return False"},{"line_number":206,"context_line":"        if router.get(constants.ROUTER_DISTRIBUTED):"},{"line_number":207,"context_line":"            return False"},{"line_number":208,"context_line":"        # non-dvr case: centralized router is already bound to some agent"},{"line_number":209,"context_line":"        raise l3agentscheduler.RouterHostedByL3Agent("}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_bba7f7ba","line":206,"in_reply_to":"3a961159_5e57fa00","updated":"2015-01-16 18:03:22.000000000","message":"Yes here I should not use, I will fix it.","commit_id":"fd433c9f9a07e2fffadd1eee192eec9000a0cf10"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"8b0508c53fb67354da68703b460cff6ccb5ec01d","unresolved":false,"context_lines":[{"line_number":421,"context_line":"    def get_snat_candidates(self, sync_router, l3_agents):"},{"line_number":422,"context_line":"        \"\"\"Get the valid snat enabled l3 agents for the distributed router.\"\"\""},{"line_number":423,"context_line":"        candidates \u003d []"},{"line_number":424,"context_line":"        is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":425,"context_line":"        if not is_router_distributed:"},{"line_number":426,"context_line":"            return candidates"},{"line_number":427,"context_line":"        for l3_agent in l3_agents:"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_e69e4db7","line":424,"updated":"2015-01-16 15:46:13.000000000","message":"constant here?","commit_id":"fd433c9f9a07e2fffadd1eee192eec9000a0cf10"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"72b7459d27b62092ba1b3ece82ff1da0a13079ad","unresolved":false,"context_lines":[{"line_number":421,"context_line":"    def get_snat_candidates(self, sync_router, l3_agents):"},{"line_number":422,"context_line":"        \"\"\"Get the valid snat enabled l3 agents for the distributed router.\"\"\""},{"line_number":423,"context_line":"        candidates \u003d []"},{"line_number":424,"context_line":"        is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":425,"context_line":"        if not is_router_distributed:"},{"line_number":426,"context_line":"            return candidates"},{"line_number":427,"context_line":"        for l3_agent in l3_agents:"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_fbcdff86","line":424,"in_reply_to":"3a961159_e69e4db7","updated":"2015-01-16 18:03:22.000000000","message":"Based on the previous feedback I am not added or substituting labels for the dictionary \"keys\".","commit_id":"fd433c9f9a07e2fffadd1eee192eec9000a0cf10"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"8b0508c53fb67354da68703b460cff6ccb5ec01d","unresolved":false,"context_lines":[{"line_number":476,"context_line":"                (ex_net_id and gateway_external_network_id and"},{"line_number":477,"context_line":"                 ex_net_id !\u003d gateway_external_network_id)):"},{"line_number":478,"context_line":"                continue"},{"line_number":479,"context_line":"            is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":480,"context_line":"            if agent_mode in ("},{"line_number":481,"context_line":"                constants.L3_AGENT_MODE_LEGACY,"},{"line_number":482,"context_line":"                constants.L3_AGENT_MODE_DVR_SNAT) and ("}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_46af21e3","line":479,"updated":"2015-01-16 15:46:13.000000000","message":"and here","commit_id":"fd433c9f9a07e2fffadd1eee192eec9000a0cf10"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"72b7459d27b62092ba1b3ece82ff1da0a13079ad","unresolved":false,"context_lines":[{"line_number":476,"context_line":"                (ex_net_id and gateway_external_network_id and"},{"line_number":477,"context_line":"                 ex_net_id !\u003d gateway_external_network_id)):"},{"line_number":478,"context_line":"                continue"},{"line_number":479,"context_line":"            is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":480,"context_line":"            if agent_mode in ("},{"line_number":481,"context_line":"                constants.L3_AGENT_MODE_LEGACY,"},{"line_number":482,"context_line":"                constants.L3_AGENT_MODE_DVR_SNAT) and ("}],"source_content_type":"text/x-python","patch_set":7,"id":"3a961159_3bc4e75e","line":479,"in_reply_to":"3a961159_46af21e3","updated":"2015-01-16 18:03:22.000000000","message":"Same as above.","commit_id":"fd433c9f9a07e2fffadd1eee192eec9000a0cf10"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f2629ef940c5784bd55f74a30fb98dff783c313d","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                    constants.L3_AGENT_MODE_LEGACY)"},{"line_number":164,"context_line":"        router_type \u003d ("},{"line_number":165,"context_line":"            constants.ROUTER_DISTRIBUTED if is_distributed else"},{"line_number":166,"context_line":"            constants.L3_AGENT_MODE_LEGACY)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        is_agent_router_types_incompatible \u003d ("},{"line_number":169,"context_line":"            agent_mode \u003d\u003d constants.L3_AGENT_MODE_DVR and not is_distributed"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a930d6b_7613905c","line":166,"updated":"2015-01-22 05:45:36.000000000","message":"using a same constant for router type and agent mode is confusing.","commit_id":"95145c5e54c237b4f18a8742e3018db1bb7139db"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"6ec2d51109eee29ec2f49f36e27cb294c0643904","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                    constants.L3_AGENT_MODE_LEGACY)"},{"line_number":164,"context_line":"        router_type \u003d ("},{"line_number":165,"context_line":"            constants.ROUTER_DISTRIBUTED if is_distributed else"},{"line_number":166,"context_line":"            constants.L3_AGENT_MODE_LEGACY)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        is_agent_router_types_incompatible \u003d ("},{"line_number":169,"context_line":"            agent_mode \u003d\u003d constants.L3_AGENT_MODE_DVR and not is_distributed"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a930d6b_b3002003","line":166,"in_reply_to":"1a930d6b_7613905c","updated":"2015-01-26 21:57:33.000000000","message":"Done","commit_id":"95145c5e54c237b4f18a8742e3018db1bb7139db"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"41d2b285e3ae5c9b3f82fae8d3888b453d8a22ac","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                    constants.L3_AGENT_MODE_LEGACY)"},{"line_number":164,"context_line":"        router_type \u003d ("},{"line_number":165,"context_line":"            constants.ROUTER_DISTRIBUTED if is_distributed else"},{"line_number":166,"context_line":"            constants.L3_AGENT_MODE_LEGACY)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        is_agent_router_types_incompatible \u003d ("},{"line_number":169,"context_line":"            agent_mode \u003d\u003d constants.L3_AGENT_MODE_DVR and not is_distributed"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a930d6b_ae335c60","line":166,"in_reply_to":"1a930d6b_7613905c","updated":"2015-01-26 19:51:59.000000000","message":"Yes in this case the router_type is ends up as \"legacy\". \nso I am just re-using the constant that was declared for \"legacy\".\nDo you want me to just define another variable for this single instance such as \"L3_ROUTER_TYPE_LEGACY\".","commit_id":"95145c5e54c237b4f18a8742e3018db1bb7139db"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a5ed4892ff4d461383f385ac4fd1df5774fffa33","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                    constants.L3_AGENT_MODE_LEGACY)"},{"line_number":164,"context_line":"        router_type \u003d ("},{"line_number":165,"context_line":"            \u0027distributed\u0027 if is_distributed else"},{"line_number":166,"context_line":"            \u0027legacy\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        is_agent_router_types_incompatible \u003d ("},{"line_number":169,"context_line":"            agent_mode \u003d\u003d constants.L3_AGENT_MODE_DVR and not is_distributed"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa81d914_dfa46e59","line":166,"updated":"2015-01-28 06:13:59.000000000","message":"i\u0027m not sure if this message change (from \u0027centralized\u0027 to \u0027legacy\u0027) is intended or not.","commit_id":"7e7e4ab722d5fde475416fd7b3eb8c00c989e5fa"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"cd39461c0662d6a949e3398ef882e6041322f901","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                    constants.L3_AGENT_MODE_LEGACY)"},{"line_number":164,"context_line":"        router_type \u003d ("},{"line_number":165,"context_line":"            \u0027distributed\u0027 if is_distributed else"},{"line_number":166,"context_line":"            \u0027legacy\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        is_agent_router_types_incompatible \u003d ("},{"line_number":169,"context_line":"            agent_mode \u003d\u003d constants.L3_AGENT_MODE_DVR and not is_distributed"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa81d914_352acc7e","line":166,"in_reply_to":"fa81d914_4f7c2821","updated":"2015-01-29 07:51:39.000000000","message":"then please mention it in the commit message.","commit_id":"7e7e4ab722d5fde475416fd7b3eb8c00c989e5fa"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"2faf2c577c05ffa0f01754a6ee49ac7fd876cde2","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                    constants.L3_AGENT_MODE_LEGACY)"},{"line_number":164,"context_line":"        router_type \u003d ("},{"line_number":165,"context_line":"            \u0027distributed\u0027 if is_distributed else"},{"line_number":166,"context_line":"            \u0027legacy\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        is_agent_router_types_incompatible \u003d ("},{"line_number":169,"context_line":"            agent_mode \u003d\u003d constants.L3_AGENT_MODE_DVR and not is_distributed"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa81d914_4f7c2821","line":166,"in_reply_to":"fa81d914_dfa46e59","updated":"2015-01-28 19:52:16.000000000","message":"Hi Yamamoto, I have responded to previous comments on this change.\nCentralized and Legacy mean the same. In order to be consistent with other options I have changed it to \"legacy\".","commit_id":"7e7e4ab722d5fde475416fd7b3eb8c00c989e5fa"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"440a882ce2b7b90cb6af6546760a7e0c8bb0f50e","unresolved":false,"context_lines":[{"line_number":483,"context_line":"                not is_router_distributed):"},{"line_number":484,"context_line":"                candidates.append(l3_agent)"},{"line_number":485,"context_line":"            elif is_router_distributed and agent_mode.startswith("},{"line_number":486,"context_line":"                constants.L3_AGENT_MODE_DVR) and ("},{"line_number":487,"context_line":"                self.check_ports_exist_on_l3agent("},{"line_number":488,"context_line":"                    context, l3_agent, sync_router[\u0027id\u0027])):"},{"line_number":489,"context_line":"                candidates.append(l3_agent)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa81d914_42db411b","line":486,"updated":"2015-01-28 06:33:52.000000000","message":"agent_mode in (L3_AGENT_MODE_DVR, L3_AGENT_MODE_DVR_SNAT)","commit_id":"7e7e4ab722d5fde475416fd7b3eb8c00c989e5fa"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"2faf2c577c05ffa0f01754a6ee49ac7fd876cde2","unresolved":false,"context_lines":[{"line_number":483,"context_line":"                not is_router_distributed):"},{"line_number":484,"context_line":"                candidates.append(l3_agent)"},{"line_number":485,"context_line":"            elif is_router_distributed and agent_mode.startswith("},{"line_number":486,"context_line":"                constants.L3_AGENT_MODE_DVR) and ("},{"line_number":487,"context_line":"                self.check_ports_exist_on_l3agent("},{"line_number":488,"context_line":"                    context, l3_agent, sync_router[\u0027id\u0027])):"},{"line_number":489,"context_line":"                candidates.append(l3_agent)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa81d914_cf8f3822","line":486,"in_reply_to":"fa81d914_42db411b","updated":"2015-01-28 19:52:16.000000000","message":"I don\u0027t think I wanted to change this.","commit_id":"7e7e4ab722d5fde475416fd7b3eb8c00c989e5fa"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"cd39461c0662d6a949e3398ef882e6041322f901","unresolved":false,"context_lines":[{"line_number":483,"context_line":"                not is_router_distributed):"},{"line_number":484,"context_line":"                candidates.append(l3_agent)"},{"line_number":485,"context_line":"            elif is_router_distributed and agent_mode.startswith("},{"line_number":486,"context_line":"                constants.L3_AGENT_MODE_DVR) and ("},{"line_number":487,"context_line":"                self.check_ports_exist_on_l3agent("},{"line_number":488,"context_line":"                    context, l3_agent, sync_router[\u0027id\u0027])):"},{"line_number":489,"context_line":"                candidates.append(l3_agent)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa81d914_7a16f356","line":486,"in_reply_to":"fa81d914_cf8f3822","updated":"2015-01-29 07:51:39.000000000","message":"why not?\nthe use of startswith() seems contradicting to the use of labels.","commit_id":"7e7e4ab722d5fde475416fd7b3eb8c00c989e5fa"},{"author":{"_account_id":9380,"name":"Sayaji Patil","email":"sayaji15@gmail.com","username":"Sayaji"},"change_message_id":"8eb5206f038d346f5dc5314ff683f02916bb88c6","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                    constants.L3_AGENT_MODE_LEGACY)"},{"line_number":164,"context_line":"        router_type \u003d ("},{"line_number":165,"context_line":"            \u0027distributed\u0027 if is_distributed else"},{"line_number":166,"context_line":"            \u0027legacy\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        is_agent_router_types_incompatible \u003d ("},{"line_number":169,"context_line":"            agent_mode \u003d\u003d constants.L3_AGENT_MODE_DVR and not is_distributed"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_39f2d8d2","line":166,"updated":"2015-01-28 23:33:53.000000000","message":"\u0027centralized\u0027 -\u003e \u0027legacy\u0027, is this intentional ?","commit_id":"3aa23f727c26a81143fc766133a59c5e31135f31"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"eef64af359a442d8a890555d1496022b0854fc83","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                                    constants.L3_AGENT_MODE_LEGACY)"},{"line_number":164,"context_line":"        router_type \u003d ("},{"line_number":165,"context_line":"            \u0027distributed\u0027 if is_distributed else"},{"line_number":166,"context_line":"            \u0027legacy\u0027)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        is_agent_router_types_incompatible \u003d ("},{"line_number":169,"context_line":"            agent_mode \u003d\u003d constants.L3_AGENT_MODE_DVR and not is_distributed"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_9a20074b","line":166,"in_reply_to":"fa81d914_39f2d8d2","updated":"2015-01-29 07:15:49.000000000","message":"This change is referred in previous patch set. But I don\u0027t think that \"Not distributed\" is \"Legacy\" in router_type. It\u0027s better to keep \u0027centralized\u0027 in order to prevent someone from confusing.","commit_id":"3aa23f727c26a81143fc766133a59c5e31135f31"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"27ac44d0bffe60b88335f4ac9d1dc307bab94810","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                not is_router_distributed):"},{"line_number":459,"context_line":"                candidates.append(l3_agent)"},{"line_number":460,"context_line":"            elif is_router_distributed and agent_mode.startswith("},{"line_number":461,"context_line":"                constants.L3_AGENT_MODE_DVR) and ("},{"line_number":462,"context_line":"                self.check_ports_exist_on_l3agent("},{"line_number":463,"context_line":"                    context, l3_agent, sync_router[\u0027id\u0027])):"},{"line_number":464,"context_line":"                candidates.append(l3_agent)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_d5298df3","line":461,"updated":"2015-02-16 06:19:57.000000000","message":"i still do not understand why you want to keep using startswith here.","commit_id":"666b63c2e69f4e2868ef0379bddd6a0d91a4d3ff"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"57588b0656a8b6a8bd74268224e6f4b030b7523d","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                not is_router_distributed):"},{"line_number":459,"context_line":"                candidates.append(l3_agent)"},{"line_number":460,"context_line":"            elif is_router_distributed and agent_mode.startswith("},{"line_number":461,"context_line":"                constants.L3_AGENT_MODE_DVR) and ("},{"line_number":462,"context_line":"                self.check_ports_exist_on_l3agent("},{"line_number":463,"context_line":"                    context, l3_agent, sync_router[\u0027id\u0027])):"},{"line_number":464,"context_line":"                candidates.append(l3_agent)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_c33b2136","line":461,"in_reply_to":"da86d52c_18dcfa73","updated":"2015-02-18 17:24:40.000000000","message":"For now, I think this change is appropriate here.  Keep it like it is.  I agree with @Swami that this is out of the scope of this patch.\n\nHowever, I would prefer not to use startswith here like @Yamamoto has pointed out in the long run.  It should be changed to use agent_mode in (...).  \n\nIncidentally, @Ed Bak and I found what I believe is a bug here.  We will post a patch and I will add @Swami as a reviewer.","commit_id":"666b63c2e69f4e2868ef0379bddd6a0d91a4d3ff"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"4b84acdb44a19bf969be36e6a04c3933d114cf61","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                not is_router_distributed):"},{"line_number":459,"context_line":"                candidates.append(l3_agent)"},{"line_number":460,"context_line":"            elif is_router_distributed and agent_mode.startswith("},{"line_number":461,"context_line":"                constants.L3_AGENT_MODE_DVR) and ("},{"line_number":462,"context_line":"                self.check_ports_exist_on_l3agent("},{"line_number":463,"context_line":"                    context, l3_agent, sync_router[\u0027id\u0027])):"},{"line_number":464,"context_line":"                candidates.append(l3_agent)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_1793b2a3","line":461,"in_reply_to":"da86d52c_c33b2136","updated":"2015-02-18 18:58:15.000000000","message":"thanks, I agree.","commit_id":"666b63c2e69f4e2868ef0379bddd6a0d91a4d3ff"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"ef4c4ec91101e601d4f987d5f64017a48acf2a71","unresolved":false,"context_lines":[{"line_number":458,"context_line":"                not is_router_distributed):"},{"line_number":459,"context_line":"                candidates.append(l3_agent)"},{"line_number":460,"context_line":"            elif is_router_distributed and agent_mode.startswith("},{"line_number":461,"context_line":"                constants.L3_AGENT_MODE_DVR) and ("},{"line_number":462,"context_line":"                self.check_ports_exist_on_l3agent("},{"line_number":463,"context_line":"                    context, l3_agent, sync_router[\u0027id\u0027])):"},{"line_number":464,"context_line":"                candidates.append(l3_agent)"}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_18dcfa73","line":461,"in_reply_to":"da86d52c_d5298df3","updated":"2015-02-17 17:12:06.000000000","message":"Yamamoto, the intent of this patch is to replace the static variables with constants. \nThere are two agent mode \"dvr\" and \"dvr_snat\". If we plan to address both these cases it makes sense to say \"startswith\".\n\nHope this helps.","commit_id":"666b63c2e69f4e2868ef0379bddd6a0d91a4d3ff"}],"neutron/db/l3_dvr_db.py":[{"author":{"_account_id":9380,"name":"Sayaji Patil","email":"sayaji15@gmail.com","username":"Sayaji"},"change_message_id":"8eb5206f038d346f5dc5314ff683f02916bb88c6","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    extra_attributes \u003d ("},{"line_number":60,"context_line":"        l3_attrs_db.ExtraAttributesMixin.extra_attributes + [{"},{"line_number":61,"context_line":"            \u0027name\u0027: \u0027distributed\u0027,"},{"line_number":62,"context_line":"            \u0027default\u0027: cfg.CONF.router_distributed"},{"line_number":63,"context_line":"        }])"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa81d914_b9ac08a2","line":61,"updated":"2015-01-28 23:33:53.000000000","message":"Should this be replaced with a label ?","commit_id":"3aa23f727c26a81143fc766133a59c5e31135f31"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"57588b0656a8b6a8bd74268224e6f4b030b7523d","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    extra_attributes \u003d ("},{"line_number":60,"context_line":"        l3_attrs_db.ExtraAttributesMixin.extra_attributes + [{"},{"line_number":61,"context_line":"            \u0027name\u0027: \u0027distributed\u0027,"},{"line_number":62,"context_line":"            \u0027default\u0027: cfg.CONF.router_distributed"},{"line_number":63,"context_line":"        }])"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_a388edc6","line":61,"updated":"2015-02-18 17:24:40.000000000","message":"This is a totally orthogonal change.  Please revert it.  Work it in to another patch possibly that replaces these hard-coded strings.","commit_id":"666b63c2e69f4e2868ef0379bddd6a0d91a4d3ff"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"4b84acdb44a19bf969be36e6a04c3933d114cf61","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    extra_attributes \u003d ("},{"line_number":60,"context_line":"        l3_attrs_db.ExtraAttributesMixin.extra_attributes + [{"},{"line_number":61,"context_line":"            \u0027name\u0027: \u0027distributed\u0027,"},{"line_number":62,"context_line":"            \u0027default\u0027: cfg.CONF.router_distributed"},{"line_number":63,"context_line":"        }])"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"da86d52c_57b28a49","line":61,"in_reply_to":"da86d52c_a388edc6","updated":"2015-02-18 18:58:15.000000000","message":"Will fix it.","commit_id":"666b63c2e69f4e2868ef0379bddd6a0d91a4d3ff"}],"neutron/extensions/dvr.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"440a882ce2b7b90cb6af6546760a7e0c8bb0f50e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"            \u0027default\u0027: attributes.ATTR_NOT_SPECIFIED,"},{"line_number":31,"context_line":"            \u0027convert_to\u0027: attributes.convert_to_boolean_if_not_none,"},{"line_number":32,"context_line":"            \u0027enforce_policy\u0027: True"},{"line_number":33,"context_line":"        },"},{"line_number":34,"context_line":"    }"},{"line_number":35,"context_line":"}"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"fa81d914_22f56d83","line":33,"updated":"2015-01-28 06:33:52.000000000","message":"unrelated change","commit_id":"7e7e4ab722d5fde475416fd7b3eb8c00c989e5fa"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"2faf2c577c05ffa0f01754a6ee49ac7fd876cde2","unresolved":false,"context_lines":[{"line_number":30,"context_line":"            \u0027default\u0027: attributes.ATTR_NOT_SPECIFIED,"},{"line_number":31,"context_line":"            \u0027convert_to\u0027: attributes.convert_to_boolean_if_not_none,"},{"line_number":32,"context_line":"            \u0027enforce_policy\u0027: True"},{"line_number":33,"context_line":"        },"},{"line_number":34,"context_line":"    }"},{"line_number":35,"context_line":"}"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"fa81d914_4fca6850","line":33,"in_reply_to":"fa81d914_22f56d83","updated":"2015-01-28 19:52:16.000000000","message":"will fix this. It was due to a previous change and fix in my patch.","commit_id":"7e7e4ab722d5fde475416fd7b3eb8c00c989e5fa"}]}
