)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"956a40633ae42acd13663f74dda97a2bdc08c262","unresolved":false,"context_lines":[{"line_number":10,"context_line":"the router is configured on all the Compute Nodes and on the Network Node."},{"line_number":11,"context_line":"To overcome this problem we look for L3 Agent that is running on the Network Node,"},{"line_number":12,"context_line":"resolve the hostname of the Network Node to get its IP address and use it to"},{"line_number":13,"context_line":"configure the destination IP needed for neutron port location information."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-Bug: 1463784"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"9abb7d3a_5a9585e2","line":13,"updated":"2016-05-27 19:02:47.000000000","message":"So are you saying that the traffic between VM and bare metal node is hairpinned to the network node? How do you make the bare metal node default gateway route traffic over to Neutron?","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bbccf702d922d5917ac1b2284184993a93a00a5b","unresolved":false,"context_lines":[{"line_number":10,"context_line":"the router is configured on all the Compute Nodes and on the Network Node."},{"line_number":11,"context_line":"To overcome this problem we look for L3 Agent that is running on the Network Node,"},{"line_number":12,"context_line":"resolve the hostname of the Network Node to get its IP address and use it to"},{"line_number":13,"context_line":"configure the destination IP needed for neutron port location information."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-Bug: 1463784"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"9abb7d3a_9671fc78","line":13,"in_reply_to":"9abb7d3a_50526f14","updated":"2016-06-01 01:32:11.000000000","message":"\u003e First of all I would like to state that the proper way to do routing from the bare metal side if to implement L3 in the L2GW. given the fact that this will take long time to agree upon, I offer this solution. \n\nI never doubted you didn\u0027t know what you were doing and kudos for stepping up!\n\nMy invitation would be to try and tackle this from the right angle. I appreciate that lately I have not been involved in the project as much as I wanted to, but if you feel you can gather more resources, Sukhdev and I are figuring out how to expand the core team so that we can increase the review/merge bandwidth.","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"},{"author":{"_account_id":16853,"name":"Ofer Ben-Yacov","email":"ofer.benyacov@gmail.com","username":"ofer.benyacov"},"change_message_id":"8a4f12b6d6f523448c27e6a0952ab5db9f05c48d","unresolved":false,"context_lines":[{"line_number":10,"context_line":"the router is configured on all the Compute Nodes and on the Network Node."},{"line_number":11,"context_line":"To overcome this problem we look for L3 Agent that is running on the Network Node,"},{"line_number":12,"context_line":"resolve the hostname of the Network Node to get its IP address and use it to"},{"line_number":13,"context_line":"configure the destination IP needed for neutron port location information."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-Bug: 1463784"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"9abb7d3a_50526f14","line":13,"in_reply_to":"9abb7d3a_5a9585e2","updated":"2016-05-30 06:48:36.000000000","message":"First of all I would like to state that the proper way to do routing from the bare metal side if to implement L3 in the L2GW. given the fact that this will take long time to agree upon, I offer this solution. \n\nto answer your questions:\n\nOnly cross subnet traffic and only in the direction from the bare metal to the VMs will be hair-pinned to the Network Node.\n\nFor your second question, I guess you are not referring to the mechanism of setting the default gateway (whether manually or using DHCP) on the bare metal node, but to what would be configured on it.\n\nAt the risk of explaining things that you understand well, I would like to clarify that in DVR there are 2 kinds of routers that are created (with two distinct IP addresses). One in the Network Node (DVR_SNAT) and the other is in each Compute Node (DVR). The VMs is using the one in the Compute Node to send traffic to the bare metal. \n\nTraffic from the bare metal to the VMs can be sent to either routers (NN or CN). It will work anyway you will configure it. \n\nThe best option is to send the traffic to the router in the Network Node for few reasons (one of them is that we don\u0027t know where the VM is so we can\u0027t tell which local router to send the traffic to). \n\nTo configure the bare metal to use the router on the NN, you only need to use the router\u0027s IP address as the default gateway. Admin can tell the IP by looking for the centralized router\u0027s IP address in Horizon (network:router_centralized_snat).\n\nLet me know if this answered you question.","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"760b2845187585006d63d9512a679e5f9d6aec0c","unresolved":false,"context_lines":[{"line_number":10,"context_line":"the router is configured on all the Compute Nodes and on the Network Node."},{"line_number":11,"context_line":"To overcome this problem we look for L3 Agent that is running on the Network Node,"},{"line_number":12,"context_line":"resolve the hostname of the Network Node to get its IP address and use it to"},{"line_number":13,"context_line":"configure the destination IP needed for neutron port location information."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-Bug: 1463784"},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"7aa08908_1e1f12b8","line":13,"in_reply_to":"9abb7d3a_9671fc78","updated":"2016-06-07 17:29:17.000000000","message":"The alternate approach is to add in a new agent type to transfer the calls to router interface between the L2 gateway and the DVR routers. \nI think this approach is simpler. It is still doing East-West routing, but we kind of hop on to the network node router-namespace to achieve this.\nMight have to validate all the use cases with this model.\n\nIn both these models, the packet has to hit a single node and then get redirected to the right compute node.\n\nThe advantage of using the centralized network node is we also get the High availability for free. But we need to test it.","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"}],"networking_l2gw/services/l2gateway/common/constants.py":[{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"43e2e138219330dc46fb2cb43cb953bc96bc87ad","unresolved":false,"context_lines":[{"line_number":45,"context_line":"VXLAN \u003d \"vxlan\""},{"line_number":46,"context_line":"CREATE \u003d \"CREATE\""},{"line_number":47,"context_line":"DELETE \u003d \"DELETE\""},{"line_number":48,"context_line":"L3_DVR_AGENT \u003d \u0027network:router_interface_distributed\u0027"},{"line_number":49,"context_line":"DVR_SNAT \u003d \u0027dvr_snat\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aa08908_6d167f56","line":48,"updated":"2016-06-07 13:27:51.000000000","message":"Maybe use DEVICE_OWNER_DVR_INTERFACE from Neutron lib","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"43e2e138219330dc46fb2cb43cb953bc96bc87ad","unresolved":false,"context_lines":[{"line_number":46,"context_line":"CREATE \u003d \"CREATE\""},{"line_number":47,"context_line":"DELETE \u003d \"DELETE\""},{"line_number":48,"context_line":"L3_DVR_AGENT \u003d \u0027network:router_interface_distributed\u0027"},{"line_number":49,"context_line":"DVR_SNAT \u003d \u0027dvr_snat\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aa08908_ff4cd671","line":49,"updated":"2016-06-07 13:27:51.000000000","message":"DVR_SNAT is not present in neutron-lib, probably need to add it and then use it from there, or L3_DISTRIBUTED_EXT_ALIAS\n\nIt is defined in Neutron as L3_AGENT_MODE_DVR_SNAT \u003d \u0027dvr_snat\u0027","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"63c1b3e029c7384b08acfdc27bacd4699597b8df","unresolved":false,"context_lines":[{"line_number":46,"context_line":"CREATE \u003d \"CREATE\""},{"line_number":47,"context_line":"DELETE \u003d \"DELETE\""},{"line_number":48,"context_line":"L3_DVR_AGENT \u003d \u0027network:router_interface_distributed\u0027"},{"line_number":49,"context_line":"DVR_SNAT \u003d \u0027dvr_snat\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aa08908_1ee6f243","line":49,"in_reply_to":"7aa08908_ff4cd671","updated":"2016-06-07 17:22:27.000000000","message":"Yes L3_AGENT_MODE_DVR_SNAT is defined in neutron/common/constants.py","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"}],"networking_l2gw/services/l2gateway/service_drivers/rpc_l2gw.py":[{"author":{"_account_id":11447,"name":"vikas","email":"vikas.d-m@hpe.com","username":"vikas"},"change_message_id":"76502c99badc6911000e475b1e2bb4c8f05c7597","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        agents \u003d self.service_plugin._core_plugin.get_agents("},{"line_number":506,"context_line":"                context,"},{"line_number":507,"context_line":"                filters\u003d{\u0027agent_type\u0027: [n_const.AGENT_TYPE_L3]})"},{"line_number":508,"context_line":"        for agent in agents:"},{"line_number":509,"context_line":"            conf_dict \u003d agent.get(\"configurations\")"},{"line_number":510,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d \u0027dvr_snat\u0027:"},{"line_number":511,"context_line":"                fixed_ip_list \u003d port.get(\u0027fixed_ips\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_91aca789","line":508,"range":{"start_line":508,"start_character":0,"end_line":508,"end_character":28},"updated":"2016-05-05 03:51:59.000000000","message":"dvr agent is a running on all the compute nodes. so in query we get multiple dvr agents(since dvr agent is a version of l3 agent). is there is a single instance of dvr_snat l3 agent?","commit_id":"e5ebef1a04742a9c994c40aab81c14126177b90f"},{"author":{"_account_id":16853,"name":"Ofer Ben-Yacov","email":"ofer.benyacov@gmail.com","username":"ofer.benyacov"},"change_message_id":"4a960db03e5ec14a5df532bb9c0b40e588c052db","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        agents \u003d self.service_plugin._core_plugin.get_agents("},{"line_number":506,"context_line":"                context,"},{"line_number":507,"context_line":"                filters\u003d{\u0027agent_type\u0027: [n_const.AGENT_TYPE_L3]})"},{"line_number":508,"context_line":"        for agent in agents:"},{"line_number":509,"context_line":"            conf_dict \u003d agent.get(\"configurations\")"},{"line_number":510,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d \u0027dvr_snat\u0027:"},{"line_number":511,"context_line":"                fixed_ip_list \u003d port.get(\u0027fixed_ips\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_be0ecb3a","line":508,"range":{"start_line":508,"start_character":0,"end_line":508,"end_character":28},"in_reply_to":"1a122d0e_91aca789","updated":"2016-05-05 07:09:27.000000000","message":"dvr agent that runs on the Compute Node is running in \u0027dvr\u0027 mode, not \u0027dvr_snat\u0027 so it will not be chosen when we loop through all agent.\nMultiple Network Nodes can be used (for high availability) but the loop returns the first one found that is alive, so we have no duplication problem.","commit_id":"e5ebef1a04742a9c994c40aab81c14126177b90f"},{"author":{"_account_id":11447,"name":"vikas","email":"vikas.d-m@hpe.com","username":"vikas"},"change_message_id":"76502c99badc6911000e475b1e2bb4c8f05c7597","unresolved":false,"context_lines":[{"line_number":507,"context_line":"                filters\u003d{\u0027agent_type\u0027: [n_const.AGENT_TYPE_L3]})"},{"line_number":508,"context_line":"        for agent in agents:"},{"line_number":509,"context_line":"            conf_dict \u003d agent.get(\"configurations\")"},{"line_number":510,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d \u0027dvr_snat\u0027:"},{"line_number":511,"context_line":"                fixed_ip_list \u003d port.get(\u0027fixed_ips\u0027)"},{"line_number":512,"context_line":"                fixed_ip \u003d fixed_ip_list[0].get(\u0027ip_address\u0027)"},{"line_number":513,"context_line":"                hostname \u003d agent.get(\u0027host\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_568fa522","line":510,"updated":"2016-05-05 03:51:59.000000000","message":"include dvr_snat to constants would be better.","commit_id":"e5ebef1a04742a9c994c40aab81c14126177b90f"},{"author":{"_account_id":16853,"name":"Ofer Ben-Yacov","email":"ofer.benyacov@gmail.com","username":"ofer.benyacov"},"change_message_id":"4a960db03e5ec14a5df532bb9c0b40e588c052db","unresolved":false,"context_lines":[{"line_number":507,"context_line":"                filters\u003d{\u0027agent_type\u0027: [n_const.AGENT_TYPE_L3]})"},{"line_number":508,"context_line":"        for agent in agents:"},{"line_number":509,"context_line":"            conf_dict \u003d agent.get(\"configurations\")"},{"line_number":510,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d \u0027dvr_snat\u0027:"},{"line_number":511,"context_line":"                fixed_ip_list \u003d port.get(\u0027fixed_ips\u0027)"},{"line_number":512,"context_line":"                fixed_ip \u003d fixed_ip_list[0].get(\u0027ip_address\u0027)"},{"line_number":513,"context_line":"                hostname \u003d agent.get(\u0027host\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a122d0e_def58783","line":510,"in_reply_to":"1a122d0e_568fa522","updated":"2016-05-05 07:09:27.000000000","message":"Done","commit_id":"e5ebef1a04742a9c994c40aab81c14126177b90f"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"43e2e138219330dc46fb2cb43cb953bc96bc87ad","unresolved":false,"context_lines":[{"line_number":463,"context_line":""},{"line_number":464,"context_line":"    def _get_ip_details(self, context, port):"},{"line_number":465,"context_line":"        host \u003d port[portbindings.HOST_ID]"},{"line_number":466,"context_line":"        if not host and port[\u0027device_owner\u0027] \u003d\u003d constants.L3_DVR_AGENT:"},{"line_number":467,"context_line":"            return self._get_l3_dvr_agent_details(context, port)"},{"line_number":468,"context_line":"        agent \u003d self._get_agent_details(context, host)"},{"line_number":469,"context_line":"        conf_dict \u003d agent.get(\"configurations\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aa08908_bfe88ee3","line":466,"updated":"2016-06-07 13:27:51.000000000","message":"should probably use neutron-lib DEVICE_OWNER_DVR_INTERFACE, look at recent code in neutron and neutron-lib","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"43e2e138219330dc46fb2cb43cb953bc96bc87ad","unresolved":false,"context_lines":[{"line_number":507,"context_line":"        endpoints \u003d self.type_manager.drivers.get(\u0027vxlan\u0027).obj.get_endpoints()"},{"line_number":508,"context_line":"        agents \u003d self.service_plugin._core_plugin.get_agents("},{"line_number":509,"context_line":"            context,"},{"line_number":510,"context_line":"            filters\u003d{\u0027agent_type\u0027: [n_const.AGENT_TYPE_L3]})"},{"line_number":511,"context_line":"        for agent in agents:"},{"line_number":512,"context_line":"            conf_dict \u003d agent.get(\"configurations\")"},{"line_number":513,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d constants.DVR_SNAT:"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aa08908_1fba82c0","line":510,"updated":"2016-06-07 13:27:51.000000000","message":"neutron-lib : AGENT_TYPE_L3  (neutron-lib/constants.py)","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"43e2e138219330dc46fb2cb43cb953bc96bc87ad","unresolved":false,"context_lines":[{"line_number":510,"context_line":"            filters\u003d{\u0027agent_type\u0027: [n_const.AGENT_TYPE_L3]})"},{"line_number":511,"context_line":"        for agent in agents:"},{"line_number":512,"context_line":"            conf_dict \u003d agent.get(\"configurations\")"},{"line_number":513,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d constants.DVR_SNAT:"},{"line_number":514,"context_line":"                fixed_ip_list \u003d port.get(\u0027fixed_ips\u0027)"},{"line_number":515,"context_line":"                fixed_ip \u003d fixed_ip_list[0].get(\u0027ip_address\u0027)"},{"line_number":516,"context_line":"                hostname \u003d agent.get(\u0027host\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aa08908_bfd24efe","line":513,"updated":"2016-06-07 13:27:51.000000000","message":"l3_constants.L3_AGENT_MODE_DVR_SNAT, but probably going to be added in neutron-lib soon","commit_id":"7a5ea3bca2ae6e3f2bc9ffd9fbfd979a79bcf59f"},{"author":{"_account_id":13070,"name":"Eran Gampel","email":"eran@gampel.net","username":"Gampel"},"change_message_id":"cd2c28e013d8c3226737df3b5c8808646e0aaa77","unresolved":false,"context_lines":[{"line_number":464,"context_line":""},{"line_number":465,"context_line":"    def _get_ip_details(self, context, port):"},{"line_number":466,"context_line":"        host \u003d port[portbindings.HOST_ID]"},{"line_number":467,"context_line":"        is_dvr \u003d port[\u0027device_owner\u0027] \u003d\u003d n_const.DEVICE_OWNER_DVR_INTERFACE"},{"line_number":468,"context_line":"        if not host and is_dvr:"},{"line_number":469,"context_line":"            return self._get_l3_dvr_agent_details(context, port)"},{"line_number":470,"context_line":"        agent \u003d self._get_agent_details(context, host)"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_6ed704ee","line":467,"range":{"start_line":467,"start_character":6,"end_line":467,"end_character":38},"updated":"2016-06-09 13:09:56.000000000","message":"it seem that  device_owner is not always there","commit_id":"4a095d6fd6c22d921ebaccaa54da88c56273ca26"},{"author":{"_account_id":16853,"name":"Ofer Ben-Yacov","email":"ofer.benyacov@gmail.com","username":"ofer.benyacov"},"change_message_id":"331d8988c5ac02d6834b518ff11823d90ddd987e","unresolved":false,"context_lines":[{"line_number":464,"context_line":""},{"line_number":465,"context_line":"    def _get_ip_details(self, context, port):"},{"line_number":466,"context_line":"        host \u003d port[portbindings.HOST_ID]"},{"line_number":467,"context_line":"        is_dvr \u003d port[\u0027device_owner\u0027] \u003d\u003d n_const.DEVICE_OWNER_DVR_INTERFACE"},{"line_number":468,"context_line":"        if not host and is_dvr:"},{"line_number":469,"context_line":"            return self._get_l3_dvr_agent_details(context, port)"},{"line_number":470,"context_line":"        agent \u003d self._get_agent_details(context, host)"}],"source_content_type":"text/x-python","patch_set":7,"id":"7aa08908_26ed98b7","line":467,"range":{"start_line":467,"start_character":6,"end_line":467,"end_character":38},"in_reply_to":"7aa08908_6ed704ee","updated":"2016-06-13 12:06:29.000000000","message":"Done","commit_id":"4a095d6fd6c22d921ebaccaa54da88c56273ca26"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"db489b690d7bf8b09682e87b7a4da3ec7e10b848","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import abc"},{"line_number":17,"context_line":"from neutron.common import constants as nc_const"},{"line_number":18,"context_line":"from neutron.common import rpc as n_rpc"},{"line_number":19,"context_line":"from neutron.db import agents_db"},{"line_number":20,"context_line":"from neutron.extensions import portbindings"}],"source_content_type":"text/x-python","patch_set":9,"id":"7aa08908_8953bc16","line":17,"updated":"2016-06-13 12:35:49.000000000","message":"The same constants (at least the ones in use) also appear in n_const. Consider using only that.","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":11343,"name":"Gal Sagie","email":"gal.sagie@gmail.com","username":"GalSagie"},"change_message_id":"6df21d89f7ed2143995d020ba5aea97935914a05","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import abc"},{"line_number":17,"context_line":"from neutron.common import constants as nc_const"},{"line_number":18,"context_line":"from neutron.common import rpc as n_rpc"},{"line_number":19,"context_line":"from neutron.db import agents_db"},{"line_number":20,"context_line":"from neutron.extensions import portbindings"}],"source_content_type":"text/x-python","patch_set":9,"id":"7aa08908_c9a14448","line":17,"in_reply_to":"7aa08908_8953bc16","updated":"2016-06-13 12:56:01.000000000","message":"He cant use that right now, this is a new patch that i added and is not yet published with the lib.\nIt will have to wait.","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"994d17c92bd020151e3def37ff6b6e565153b226","unresolved":false,"context_lines":[{"line_number":502,"context_line":"        \"\"\"Getting host IP for router port in DVR mode"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":"        in case of DVR, the router port will not have host information as"},{"line_number":505,"context_line":"        there is router in each Compute Node and in the Compute Node."},{"line_number":506,"context_line":"        Here we look for the L3 Agent in the Network Node, get its hostname and"},{"line_number":507,"context_line":"        resolve its hostname to IP address to be used as destination IP."},{"line_number":508,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":9,"id":"3aaa91ec_9d7f04ab","line":505,"range":{"start_line":505,"start_character":27,"end_line":505,"end_character":68},"updated":"2016-07-01 18:30:29.000000000","message":"I think you mean \"and in the *Network* Node.\"","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":16853,"name":"Ofer Ben-Yacov","email":"ofer.benyacov@gmail.com","username":"ofer.benyacov"},"change_message_id":"9d25d09fc9bab23876b02009841c1dbefe617e8b","unresolved":false,"context_lines":[{"line_number":502,"context_line":"        \"\"\"Getting host IP for router port in DVR mode"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":"        in case of DVR, the router port will not have host information as"},{"line_number":505,"context_line":"        there is router in each Compute Node and in the Compute Node."},{"line_number":506,"context_line":"        Here we look for the L3 Agent in the Network Node, get its hostname and"},{"line_number":507,"context_line":"        resolve its hostname to IP address to be used as destination IP."},{"line_number":508,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":9,"id":"1aa78d24_f14c6e78","line":505,"range":{"start_line":505,"start_character":27,"end_line":505,"end_character":68},"in_reply_to":"3aaa91ec_9d7f04ab","updated":"2016-07-03 10:41:32.000000000","message":"right.\nfixed.","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"994d17c92bd020151e3def37ff6b6e565153b226","unresolved":false,"context_lines":[{"line_number":516,"context_line":"        for agent in agents:"},{"line_number":517,"context_line":"            conf_dict \u003d agent.get(\"configurations\")"},{"line_number":518,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d nc_const.L3_AGENT_MODE_DVR_SNAT:"},{"line_number":519,"context_line":"                fixed_ip_list \u003d port.get(\u0027fixed_ips\u0027)"},{"line_number":520,"context_line":"                fixed_ip \u003d fixed_ip_list[0].get(\u0027ip_address\u0027)"},{"line_number":521,"context_line":"                hostname \u003d agent.get(\u0027host\u0027)"},{"line_number":522,"context_line":"                dst_ip \u003d None"},{"line_number":523,"context_line":"                for endpoint in endpoints:"}],"source_content_type":"text/x-python","patch_set":9,"id":"3aaa91ec_b8ebee11","line":520,"range":{"start_line":519,"start_character":0,"end_line":520,"end_character":61},"updated":"2016-07-01 18:30:29.000000000","message":"Nit:  I think this method would read a bit smoother if these lines moved to after L528.","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":16853,"name":"Ofer Ben-Yacov","email":"ofer.benyacov@gmail.com","username":"ofer.benyacov"},"change_message_id":"9d25d09fc9bab23876b02009841c1dbefe617e8b","unresolved":false,"context_lines":[{"line_number":516,"context_line":"        for agent in agents:"},{"line_number":517,"context_line":"            conf_dict \u003d agent.get(\"configurations\")"},{"line_number":518,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d nc_const.L3_AGENT_MODE_DVR_SNAT:"},{"line_number":519,"context_line":"                fixed_ip_list \u003d port.get(\u0027fixed_ips\u0027)"},{"line_number":520,"context_line":"                fixed_ip \u003d fixed_ip_list[0].get(\u0027ip_address\u0027)"},{"line_number":521,"context_line":"                hostname \u003d agent.get(\u0027host\u0027)"},{"line_number":522,"context_line":"                dst_ip \u003d None"},{"line_number":523,"context_line":"                for endpoint in endpoints:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1aa78d24_d1785292","line":520,"range":{"start_line":519,"start_character":0,"end_line":520,"end_character":61},"in_reply_to":"3aaa91ec_b8ebee11","updated":"2016-07-03 10:41:32.000000000","message":"yep.","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":20229,"name":"Omer Anson","email":"omer.anson@toganetworks.com","username":"oanson"},"change_message_id":"db489b690d7bf8b09682e87b7a4da3ec7e10b848","unresolved":false,"context_lines":[{"line_number":521,"context_line":"                hostname \u003d agent.get(\u0027host\u0027)"},{"line_number":522,"context_line":"                dst_ip \u003d None"},{"line_number":523,"context_line":"                for endpoint in endpoints:"},{"line_number":524,"context_line":"                    if endpoint.get(\u0027host\u0027) \u003d\u003d hostname:"},{"line_number":525,"context_line":"                        dst_ip \u003d endpoint.get(\u0027ip_address\u0027)"},{"line_number":526,"context_line":"                        break"},{"line_number":527,"context_line":"                if not dst_ip:"}],"source_content_type":"text/x-python","patch_set":9,"id":"7aa08908_c97024a7","line":524,"range":{"start_line":524,"start_character":0,"end_line":524,"end_character":56},"updated":"2016-06-13 12:35:49.000000000","message":"Can\u0027t this test be added to the filters? e.g. adding \u0027host\u0027:[endpoint.get(\u0027host\u0027) for endpoint in endpoints] to filters when fetching agents (Possibly in a future patch)?","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"994d17c92bd020151e3def37ff6b6e565153b226","unresolved":false,"context_lines":[{"line_number":523,"context_line":"                for endpoint in endpoints:"},{"line_number":524,"context_line":"                    if endpoint.get(\u0027host\u0027) \u003d\u003d hostname:"},{"line_number":525,"context_line":"                        dst_ip \u003d endpoint.get(\u0027ip_address\u0027)"},{"line_number":526,"context_line":"                        break"},{"line_number":527,"context_line":"                if not dst_ip:"},{"line_number":528,"context_line":"                    raise l2gw_exc.DvrAgentHostnameNotFound(host\u003dhostname)"},{"line_number":529,"context_line":"                LOG.debug("}],"source_content_type":"text/x-python","patch_set":9,"id":"3aaa91ec_188162c4","line":526,"range":{"start_line":526,"start_character":24,"end_line":526,"end_character":29},"updated":"2016-07-01 18:30:29.000000000","message":"nit:  Instead of a break here, you might consider moving L529 - L532 to under this if condition.\n\n          hostname \u003d agent.get(\u0027host\u0027)\n          for endpoint in endpoints:\n              if endpoint.get(\u0027host\u0027) \u003d\u003d hostname:\n                  dst_ip \u003d endpoint.get(\u0027ip_address\u0027)\n                  LOG.debug(...)\n                  return dst_ip, fixed_ip\n          raise l2gw_exc.DvrAgentHostnameNotFound(host\u003dhostname)\n  raise l2gw_exc.L3DvrAgentNotFound()\n\nTo me, it\u0027d be a little bit easier to follow even though it would increase the overall indentation slightly.","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":16853,"name":"Ofer Ben-Yacov","email":"ofer.benyacov@gmail.com","username":"ofer.benyacov"},"change_message_id":"9d25d09fc9bab23876b02009841c1dbefe617e8b","unresolved":false,"context_lines":[{"line_number":523,"context_line":"                for endpoint in endpoints:"},{"line_number":524,"context_line":"                    if endpoint.get(\u0027host\u0027) \u003d\u003d hostname:"},{"line_number":525,"context_line":"                        dst_ip \u003d endpoint.get(\u0027ip_address\u0027)"},{"line_number":526,"context_line":"                        break"},{"line_number":527,"context_line":"                if not dst_ip:"},{"line_number":528,"context_line":"                    raise l2gw_exc.DvrAgentHostnameNotFound(host\u003dhostname)"},{"line_number":529,"context_line":"                LOG.debug("}],"source_content_type":"text/x-python","patch_set":9,"id":"1aa78d24_31a55604","line":526,"range":{"start_line":526,"start_character":24,"end_line":526,"end_character":29},"in_reply_to":"3aaa91ec_188162c4","updated":"2016-07-03 10:41:32.000000000","message":"Done","commit_id":"64265dc1c89ed6a8fd3bbdd9d68a42b960218053"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"65b8ea79b29e7376a7e6e41dfd8a9c3ac4b26225","unresolved":false,"context_lines":[{"line_number":506,"context_line":"        Here we look for the L3 Agent in the Network Node, get its hostname and"},{"line_number":507,"context_line":"        resolve its hostname to IP address to be used as destination IP."},{"line_number":508,"context_line":"        \"\"\""},{"line_number":509,"context_line":"        endpoints \u003d self.type_manager.drivers.get(\u0027vxlan\u0027).obj.get_endpoints()"},{"line_number":510,"context_line":"        agents \u003d self.service_plugin._core_plugin.get_agents("},{"line_number":511,"context_line":"            context,"},{"line_number":512,"context_line":"            filters\u003d{"}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_58e2a004","line":509,"range":{"start_line":509,"start_character":8,"end_line":509,"end_character":17},"updated":"2016-07-18 17:33:02.000000000","message":"What does the endpoints contain? Does it contain all the host info for all available nodes?","commit_id":"1ec28c68dddbd8479b2eb016fb9c80b63af0d604"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"65b8ea79b29e7376a7e6e41dfd8a9c3ac4b26225","unresolved":false,"context_lines":[{"line_number":518,"context_line":"            if conf_dict.get(\"agent_mode\") \u003d\u003d nc_const.L3_AGENT_MODE_DVR_SNAT:"},{"line_number":519,"context_line":"                hostname \u003d agent.get(\u0027host\u0027)"},{"line_number":520,"context_line":"                for endpoint in endpoints:"},{"line_number":521,"context_line":"                    if endpoint.get(\u0027host\u0027) \u003d\u003d hostname:"},{"line_number":522,"context_line":"                        dst_ip \u003d endpoint.get(\u0027ip_address\u0027)"},{"line_number":523,"context_line":"                        fixed_ip_list \u003d port.get(\u0027fixed_ips\u0027)"},{"line_number":524,"context_line":"                        fixed_ip \u003d fixed_ip_list[0].get(\u0027ip_address\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_b8ce3c81","line":521,"updated":"2016-07-18 17:33:02.000000000","message":"If you are matching with the host name of the endpoint, how do you find out if this is the right network_node, if HA is enabled?","commit_id":"1ec28c68dddbd8479b2eb016fb9c80b63af0d604"}]}
