)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     lynnli \u003clynn.li@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-16 07:38:31 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Update device info for FIP paired port w/unbound"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound port gets associated with an FIP entry in DVR"},{"line_number":10,"context_line":"environment, this port needs to be identified as a DVR service port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_30163f56","line":7,"updated":"2015-07-16 23:59:19.000000000","message":"Can we have the heading something like this.\n\u0027Handle unbound allowed_address_pair FIP with DVR\u0027","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"ac297ce785841358be2d01651d67097a828bc96f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     lynnli \u003clynn.li@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-16 07:38:31 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Update device info for FIP paired port w/unbound"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound port gets associated with an FIP entry in DVR"},{"line_number":10,"context_line":"environment, this port needs to be identified as a DVR service port"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_44aa2087","line":7,"in_reply_to":"9a41bdd9_30163f56","updated":"2015-07-17 05:47:12.000000000","message":"Sure.  Also, all of your comments below will be addressed in the next patch..","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Update device info for FIP paired port w/unbound"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound port gets associated with an FIP entry in DVR"},{"line_number":10,"context_line":"environment, this port needs to be identified as a DVR service port"},{"line_number":11,"context_line":"in order for DVR schedulers to know it is serviceable by DVR routers."},{"line_number":12,"context_line":"If a FIP port is paired with a VM hosted port, which falls into the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_53fe6d06","line":9,"updated":"2015-07-16 23:59:19.000000000","message":"unbound allowed_address_pair port","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Update device info for FIP paired port w/unbound"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound port gets associated with an FIP entry in DVR"},{"line_number":10,"context_line":"environment, this port needs to be identified as a DVR service port"},{"line_number":11,"context_line":"in order for DVR schedulers to know it is serviceable by DVR routers."},{"line_number":12,"context_line":"If a FIP port is paired with a VM hosted port, which falls into the"},{"line_number":13,"context_line":"unbound port case, its host and device info needs to get updated."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_b33019ea","line":10,"updated":"2015-07-16 23:59:19.000000000","message":"remove the \"environment\" here.","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound port gets associated with an FIP entry in DVR"},{"line_number":10,"context_line":"environment, this port needs to be identified as a DVR service port"},{"line_number":11,"context_line":"in order for DVR schedulers to know it is serviceable by DVR routers."},{"line_number":12,"context_line":"If a FIP port is paired with a VM hosted port, which falls into the"},{"line_number":13,"context_line":"unbound port case, its host and device info needs to get updated."},{"line_number":14,"context_line":"Once the paired port\u0027s host and device info get updated, it is tagged"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_3372c9ae","line":11,"updated":"2015-07-16 23:59:19.000000000","message":"Basically in this patch, you are binding that unbound port to a known host. ( So you don\u0027t need to mention about the schedulers etc.,","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":9,"context_line":"When an unbound port gets associated with an FIP entry in DVR"},{"line_number":10,"context_line":"environment, this port needs to be identified as a DVR service port"},{"line_number":11,"context_line":"in order for DVR schedulers to know it is serviceable by DVR routers."},{"line_number":12,"context_line":"If a FIP port is paired with a VM hosted port, which falls into the"},{"line_number":13,"context_line":"unbound port case, its host and device info needs to get updated."},{"line_number":14,"context_line":"Once the paired port\u0027s host and device info get updated, it is tagged"},{"line_number":15,"context_line":"as a DVR service port. There are use cases the tenant will use the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_733b719d","line":12,"updated":"2015-07-16 23:59:19.000000000","message":"If an allowed-address-pair port associated with a FloatingIP is configured to a VM port, then the allowed-address-pair port will adopt the VM ports host binding.","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Without this fix, there is a chance that FIP agent gateway port will"},{"line_number":19,"context_line":"get deleted on the DVR host as the system would think there is no"},{"line_number":20,"context_line":"DVR service port presented, because this port is not tagged as DVR"},{"line_number":21,"context_line":"serviceable. This would happen when a port is disassociated from"},{"line_number":22,"context_line":"floating IP entry. At that point, system performs the check if FIP"},{"line_number":23,"context_line":"agent gateway port is DVR serviceable on the host based on the device"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_d3f83dc7","line":20,"updated":"2015-07-16 23:59:19.000000000","message":"The above sentence can be removed.","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":19,"context_line":"get deleted on the DVR host as the system would think there is no"},{"line_number":20,"context_line":"DVR service port presented, because this port is not tagged as DVR"},{"line_number":21,"context_line":"serviceable. This would happen when a port is disassociated from"},{"line_number":22,"context_line":"floating IP entry. At that point, system performs the check if FIP"},{"line_number":23,"context_line":"agent gateway port is DVR serviceable on the host based on the device"},{"line_number":24,"context_line":"owner type. If it is not, the port get deleted. However, in reality,"},{"line_number":25,"context_line":"this port should not get deleted."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"9a41bdd9_7330519f","line":22,"updated":"2015-07-16 23:59:19.000000000","message":"Once you bind the port with a host and with the same device_owner as the VM host port, then you are fine.","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"a519bfada1c965cffc83dd1050f7a1e0317c558e","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Handle unbound allowed_address_pair FIP with DVR"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound allowed_address_pair port gets associated with an FIP"},{"line_number":10,"context_line":"entry in DVR, this port needs to be identified as a DVR service port."},{"line_number":11,"context_line":"If an allowed-address-pair port associated with a Floating IP is"},{"line_number":12,"context_line":"configured to a VM port, the allowed-address-pair port will need to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_99e2a62e","line":9,"updated":"2015-07-17 18:56:40.000000000","message":"with \"a\u0027 FIP","commit_id":"0d423ea19aa9d906a4fc39ef9535cb8a8dc98ef7"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"5031e96771c2d662b1d7e3aa270cecab914e98f6","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Handle unbound allowed_address_pair FIP with DVR"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound allowed_address_pair port gets associated with an FIP"},{"line_number":10,"context_line":"entry in DVR, this port needs to be identified as a DVR service port."},{"line_number":11,"context_line":"If an allowed-address-pair port associated with a Floating IP is"},{"line_number":12,"context_line":"configured to a VM port, the allowed-address-pair port will need to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_c984db0c","line":9,"in_reply_to":"9a41bdd9_99e2a62e","updated":"2015-07-17 22:06:31.000000000","message":"will correct it. thanks.","commit_id":"0d423ea19aa9d906a4fc39ef9535cb8a8dc98ef7"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"a519bfada1c965cffc83dd1050f7a1e0317c558e","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Handle unbound allowed_address_pair FIP with DVR"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound allowed_address_pair port gets associated with an FIP"},{"line_number":10,"context_line":"entry in DVR, this port needs to be identified as a DVR service port."},{"line_number":11,"context_line":"If an allowed-address-pair port associated with a Floating IP is"},{"line_number":12,"context_line":"configured to a VM port, the allowed-address-pair port will need to"},{"line_number":13,"context_line":"adopt the VM port\u0027s host binding to be DVR serviceable."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_d946ee20","line":10,"updated":"2015-07-17 18:56:40.000000000","message":"This first sentence can be removed.","commit_id":"0d423ea19aa9d906a4fc39ef9535cb8a8dc98ef7"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"5031e96771c2d662b1d7e3aa270cecab914e98f6","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Handle unbound allowed_address_pair FIP with DVR"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When an unbound allowed_address_pair port gets associated with an FIP"},{"line_number":10,"context_line":"entry in DVR, this port needs to be identified as a DVR service port."},{"line_number":11,"context_line":"If an allowed-address-pair port associated with a Floating IP is"},{"line_number":12,"context_line":"configured to a VM port, the allowed-address-pair port will need to"},{"line_number":13,"context_line":"adopt the VM port\u0027s host binding to be DVR serviceable."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_a98157fd","line":10,"in_reply_to":"9a41bdd9_d946ee20","updated":"2015-07-17 22:06:31.000000000","message":"okay","commit_id":"0d423ea19aa9d906a4fc39ef9535cb8a8dc98ef7"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"a519bfada1c965cffc83dd1050f7a1e0317c558e","unresolved":false,"context_lines":[{"line_number":11,"context_line":"If an allowed-address-pair port associated with a Floating IP is"},{"line_number":12,"context_line":"configured to a VM port, the allowed-address-pair port will need to"},{"line_number":13,"context_line":"adopt the VM port\u0027s host binding to be DVR serviceable."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"When a port get disassociated from floating IP entry, system would"},{"line_number":16,"context_line":"perform the check whether this FIP agent gateway port is DVR"},{"line_number":17,"context_line":"serviceable on the host based on the device owner type. If it is not,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_996706b7","line":14,"updated":"2015-07-17 18:56:40.000000000","message":"Again we don\u0027t need to mention about the \"delete\"  part here.","commit_id":"0d423ea19aa9d906a4fc39ef9535cb8a8dc98ef7"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"5031e96771c2d662b1d7e3aa270cecab914e98f6","unresolved":false,"context_lines":[{"line_number":11,"context_line":"If an allowed-address-pair port associated with a Floating IP is"},{"line_number":12,"context_line":"configured to a VM port, the allowed-address-pair port will need to"},{"line_number":13,"context_line":"adopt the VM port\u0027s host binding to be DVR serviceable."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"When a port get disassociated from floating IP entry, system would"},{"line_number":16,"context_line":"perform the check whether this FIP agent gateway port is DVR"},{"line_number":17,"context_line":"serviceable on the host based on the device owner type. If it is not,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_2cc8f573","line":14,"in_reply_to":"9a41bdd9_996706b7","updated":"2015-07-17 22:06:31.000000000","message":"ok","commit_id":"0d423ea19aa9d906a4fc39ef9535cb8a8dc98ef7"}],"neutron/db/l3_dvr_db.py":[{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":740,"context_line":"                    if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":741,"context_line":"                        try:"},{"line_number":742,"context_line":"                            portd \u003d self._core_plugin.get_port("},{"line_number":743,"context_line":"                                context, port_dict[\u0027id\u0027])"},{"line_number":744,"context_line":"                            hostId \u003d portd[\u0027binding:host_id\u0027]"},{"line_number":745,"context_line":"                            devOwner \u003d portd[\u0027device_owner\u0027]"},{"line_number":746,"context_line":"                            devId \u003d portd[\u0027device_id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_90570b26","line":743,"updated":"2015-07-16 23:59:19.000000000","message":"Do you still need to do a call to get_port in this case? Does the passed \"port\" data does not have all these information.","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"ac297ce785841358be2d01651d67097a828bc96f","unresolved":false,"context_lines":[{"line_number":740,"context_line":"                    if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":741,"context_line":"                        try:"},{"line_number":742,"context_line":"                            portd \u003d self._core_plugin.get_port("},{"line_number":743,"context_line":"                                context, port_dict[\u0027id\u0027])"},{"line_number":744,"context_line":"                            hostId \u003d portd[\u0027binding:host_id\u0027]"},{"line_number":745,"context_line":"                            devOwner \u003d portd[\u0027device_owner\u0027]"},{"line_number":746,"context_line":"                            devId \u003d portd[\u0027device_id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_649de458","line":743,"in_reply_to":"9a41bdd9_90570b26","updated":"2015-07-17 05:47:12.000000000","message":"Yes. This call wasn\u0027t in the first patch.   The host information is missing in the port_dict.  port_dict may not guarantee having all port info from port update event. Thus, the get port call is needed here.  Currently, port_dict would have device downer and device ID, but no host info.","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7279c51756eeac5a3ecdd383c17ae5f48885515e","unresolved":false,"context_lines":[{"line_number":723,"context_line":"        And, its paired port should get updated accordingly as well."},{"line_number":724,"context_line":"        \"\"\""},{"line_number":725,"context_line":"        portPairs \u003d port_dict[\u0027allowed_address_pairs\u0027]"},{"line_number":726,"context_line":"        address_pair_ip \u003d portPairs[0][\u0027ip_address\u0027]"},{"line_number":727,"context_line":"        LOG.debug(\"allowed address pair IP\u003d%s \", address_pair_ip)"},{"line_number":728,"context_line":""},{"line_number":729,"context_line":"        filters \u003d {\u0027fixed_ips\u0027: {\u0027ip_address\u0027: [address_pair_ip]}}"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_b6b3380a","line":726,"updated":"2015-07-19 08:14:41.000000000","message":"why only first allowed address pair?","commit_id":"e018e083402498c372c81c0ef279690d2935ab11"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"df3428699c9720bcea53142f19466c27ce46ec1b","unresolved":false,"context_lines":[{"line_number":723,"context_line":"        And, its paired port should get updated accordingly as well."},{"line_number":724,"context_line":"        \"\"\""},{"line_number":725,"context_line":"        portPairs \u003d port_dict[\u0027allowed_address_pairs\u0027]"},{"line_number":726,"context_line":"        address_pair_ip \u003d portPairs[0][\u0027ip_address\u0027]"},{"line_number":727,"context_line":"        LOG.debug(\"allowed address pair IP\u003d%s \", address_pair_ip)"},{"line_number":728,"context_line":""},{"line_number":729,"context_line":"        filters \u003d {\u0027fixed_ips\u0027: {\u0027ip_address\u0027: [address_pair_ip]}}"}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_a3fadcbb","line":726,"in_reply_to":"3a50d1a3_b6b3380a","updated":"2015-07-21 01:25:23.000000000","message":"Even data structure is an array, only one paired port is allowed.","commit_id":"e018e083402498c372c81c0ef279690d2935ab11"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7279c51756eeac5a3ecdd383c17ae5f48885515e","unresolved":false,"context_lines":[{"line_number":734,"context_line":"            fip \u003d self._get_floatingip_on_port(context,"},{"line_number":735,"context_line":"                                               port_id\u003dport[\u0027id\u0027])"},{"line_number":736,"context_line":"            if fip:"},{"line_number":737,"context_line":"                port_ip \u003d port[\u0027fixed_ips\u0027][0][\u0027ip_address\u0027]"},{"line_number":738,"context_line":"                if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":739,"context_line":"                    try:"},{"line_number":740,"context_line":"                        portd \u003d self._core_plugin.get_port("}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_56c51459","line":737,"updated":"2015-07-19 08:14:41.000000000","message":"why only first port on interface?","commit_id":"e018e083402498c372c81c0ef279690d2935ab11"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"df3428699c9720bcea53142f19466c27ce46ec1b","unresolved":false,"context_lines":[{"line_number":734,"context_line":"            fip \u003d self._get_floatingip_on_port(context,"},{"line_number":735,"context_line":"                                               port_id\u003dport[\u0027id\u0027])"},{"line_number":736,"context_line":"            if fip:"},{"line_number":737,"context_line":"                port_ip \u003d port[\u0027fixed_ips\u0027][0][\u0027ip_address\u0027]"},{"line_number":738,"context_line":"                if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":739,"context_line":"                    try:"},{"line_number":740,"context_line":"                        portd \u003d self._core_plugin.get_port("}],"source_content_type":"text/x-python","patch_set":7,"id":"3a50d1a3_4e08df91","line":737,"in_reply_to":"3a50d1a3_56c51459","updated":"2015-07-21 01:25:23.000000000","message":"Valid point.  I will change the logic by iterating through all fixed IPs instead.","commit_id":"e018e083402498c372c81c0ef279690d2935ab11"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"45fca234f256af5edf65800b6ee72fdc8aca995d","unresolved":false,"context_lines":[{"line_number":739,"context_line":"                    if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":740,"context_line":"                        try:"},{"line_number":741,"context_line":"                            portd \u003d self._core_plugin.get_port("},{"line_number":742,"context_line":"                                context, port_dict[\u0027id\u0027])"},{"line_number":743,"context_line":"                            hostId \u003d portd[\u0027binding:host_id\u0027]"},{"line_number":744,"context_line":"                            devOwner \u003d portd[\u0027device_owner\u0027]"},{"line_number":745,"context_line":"                            devId \u003d portd[\u0027device_id\u0027]"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_b3e5d109","line":742,"updated":"2015-07-28 20:30:31.000000000","message":"that bothers me - I\u0027d think that we should be ensuring that the port_dict has all port info.","commit_id":"7c47a6f7e50c75ac97fc5e8b3536c0b8443c028b"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"8f67a31b024e6556708d4a2654ca4bf7835c9b42","unresolved":false,"context_lines":[{"line_number":739,"context_line":"                    if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":740,"context_line":"                        try:"},{"line_number":741,"context_line":"                            portd \u003d self._core_plugin.get_port("},{"line_number":742,"context_line":"                                context, port_dict[\u0027id\u0027])"},{"line_number":743,"context_line":"                            hostId \u003d portd[\u0027binding:host_id\u0027]"},{"line_number":744,"context_line":"                            devOwner \u003d portd[\u0027device_owner\u0027]"},{"line_number":745,"context_line":"                            devId \u003d portd[\u0027device_id\u0027]"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_8eb504ee","line":742,"in_reply_to":"3a50d1a3_64130266","updated":"2015-07-29 02:11:11.000000000","message":"yes, and I\u0027m saying that we should be ensuring that the port update event fills in the port_dict before sending it.","commit_id":"7c47a6f7e50c75ac97fc5e8b3536c0b8443c028b"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"12b5556597df162b9a8f7223160e6831b5d0d9bd","unresolved":false,"context_lines":[{"line_number":739,"context_line":"                    if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":740,"context_line":"                        try:"},{"line_number":741,"context_line":"                            portd \u003d self._core_plugin.get_port("},{"line_number":742,"context_line":"                                context, port_dict[\u0027id\u0027])"},{"line_number":743,"context_line":"                            hostId \u003d portd[\u0027binding:host_id\u0027]"},{"line_number":744,"context_line":"                            devOwner \u003d portd[\u0027device_owner\u0027]"},{"line_number":745,"context_line":"                            devId \u003d portd[\u0027device_id\u0027]"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_a509c486","line":742,"in_reply_to":"3a50d1a3_8eb504ee","updated":"2015-07-30 00:30:10.000000000","message":"In this case, port_dict attribute list is defined in common db models area.  Any change on the common db area may cause regression as it is used wildly.  However, I found another way to pass host name without making the extra get_port request.\n\nBasically, in rpc.py, which this port update event triggered, already has host information, we can add that into kwargs list and event receiver will get it automatically without API change.","commit_id":"7c47a6f7e50c75ac97fc5e8b3536c0b8443c028b"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"63d80be4c2358d3de10b80906771df305573ee4c","unresolved":false,"context_lines":[{"line_number":739,"context_line":"                    if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":740,"context_line":"                        try:"},{"line_number":741,"context_line":"                            portd \u003d self._core_plugin.get_port("},{"line_number":742,"context_line":"                                context, port_dict[\u0027id\u0027])"},{"line_number":743,"context_line":"                            hostId \u003d portd[\u0027binding:host_id\u0027]"},{"line_number":744,"context_line":"                            devOwner \u003d portd[\u0027device_owner\u0027]"},{"line_number":745,"context_line":"                            devId \u003d portd[\u0027device_id\u0027]"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_93bfabcf","line":742,"in_reply_to":"3a50d1a3_a509c486","updated":"2015-08-02 23:58:00.000000000","message":"That feels like a band-aid instead of addressing the root problem...  but I guess it is ok for now","commit_id":"7c47a6f7e50c75ac97fc5e8b3536c0b8443c028b"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"04d0515c7f6ffd98cfd2b53d0a98c99fc3644b39","unresolved":false,"context_lines":[{"line_number":739,"context_line":"                    if (address_pair_ip \u003d\u003d port_ip):"},{"line_number":740,"context_line":"                        try:"},{"line_number":741,"context_line":"                            portd \u003d self._core_plugin.get_port("},{"line_number":742,"context_line":"                                context, port_dict[\u0027id\u0027])"},{"line_number":743,"context_line":"                            hostId \u003d portd[\u0027binding:host_id\u0027]"},{"line_number":744,"context_line":"                            devOwner \u003d portd[\u0027device_owner\u0027]"},{"line_number":745,"context_line":"                            devId \u003d portd[\u0027device_id\u0027]"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a50d1a3_64130266","line":742,"in_reply_to":"3a50d1a3_b3e5d109","updated":"2015-07-28 21:32:26.000000000","message":"the port_dict doesn\u0027t have all port information.  Particularly, binding:host_id is missing.  The port_dict is sent from port update event.","commit_id":"7c47a6f7e50c75ac97fc5e8b3536c0b8443c028b"}],"neutron/db/l3_dvrscheduler_db.py":[{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"9fb539a043fd709f0925931d779e8e26124416f1","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    mac_address_updated \u003d kwargs.get(\u0027mac_address_updated\u0027)"},{"line_number":377,"context_line":"    update_device_up \u003d kwargs.get(\u0027update_device_up\u0027)"},{"line_number":378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":379,"context_line":"    # update information on paired port, if any."},{"line_number":380,"context_line":"    l3plugin.update_paired_port_for_unbound_port_vm(context, port)"},{"line_number":381,"context_line":"    if mac_address_updated or update_device_up:"},{"line_number":382,"context_line":"        l3plugin.dvr_vmarp_table_update(context, port, \"add\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_7099271f","line":379,"updated":"2015-07-16 23:59:19.000000000","message":"Will this function be called everytime there is a call to _notify_l3_agent_new_port?","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"9f9dc4f4923263d9cfce2771aac01c87c0dcaaa4","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    mac_address_updated \u003d kwargs.get(\u0027mac_address_updated\u0027)"},{"line_number":377,"context_line":"    update_device_up \u003d kwargs.get(\u0027update_device_up\u0027)"},{"line_number":378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":379,"context_line":"    # update information on paired port, if any."},{"line_number":380,"context_line":"    l3plugin.update_paired_port_for_unbound_port_vm(context, port)"},{"line_number":381,"context_line":"    if mac_address_updated or update_device_up:"},{"line_number":382,"context_line":"        l3plugin.dvr_vmarp_table_update(context, port, \"add\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_d0190624","line":379,"in_reply_to":"9a41bdd9_0f4bd12c","updated":"2015-07-17 07:21:43.000000000","message":"Correction of my own comments on the first paragraph:\n\nThis class subscribes PORT CREATE and UPDATE events. When either event occurred, _notify_l3_agent_new_port will get called.","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"ac297ce785841358be2d01651d67097a828bc96f","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    mac_address_updated \u003d kwargs.get(\u0027mac_address_updated\u0027)"},{"line_number":377,"context_line":"    update_device_up \u003d kwargs.get(\u0027update_device_up\u0027)"},{"line_number":378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":379,"context_line":"    # update information on paired port, if any."},{"line_number":380,"context_line":"    l3plugin.update_paired_port_for_unbound_port_vm(context, port)"},{"line_number":381,"context_line":"    if mac_address_updated or update_device_up:"},{"line_number":382,"context_line":"        l3plugin.dvr_vmarp_table_update(context, port, \"add\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_0f4bd12c","line":379,"in_reply_to":"9a41bdd9_7099271f","updated":"2015-07-17 05:47:12.000000000","message":"So far, only this class subscribe PORT CREATE and UPDATE event.  Whenever there is port create and update, _notify_l3_agent_new_port will get called.\n\nHowever, in port creation case, kwargs.get(\u0027port\u0027) always return None. Thus, the new added method would never get visited.\n\nIn port update even case,, only the port has a paired port configured and that paired port is a FIP entry would trigger port update.","commit_id":"53161b46aaa1baa3f67f076842c0067315413314"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"a519bfada1c965cffc83dd1050f7a1e0317c558e","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    mac_address_updated \u003d kwargs.get(\u0027mac_address_updated\u0027)"},{"line_number":377,"context_line":"    update_device_up \u003d kwargs.get(\u0027update_device_up\u0027)"},{"line_number":378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":379,"context_line":"    # update information on paired port, if any."},{"line_number":380,"context_line":"    l3plugin.update_paired_port_for_unbound_port_vm(context, port)"},{"line_number":381,"context_line":"    if mac_address_updated or update_device_up:"},{"line_number":382,"context_line":"        l3plugin.dvr_vmarp_table_update(context, port, \"add\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a41bdd9_99fe26ad","line":379,"updated":"2015-07-17 18:56:40.000000000","message":"See my comment in the previous patch. On this line.","commit_id":"0d423ea19aa9d906a4fc39ef9535cb8a8dc98ef7"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"5031e96771c2d662b1d7e3aa270cecab914e98f6","unresolved":false,"context_lines":[{"line_number":376,"context_line":"    mac_address_updated \u003d kwargs.get(\u0027mac_address_updated\u0027)"},{"line_number":377,"context_line":"    update_device_up \u003d kwargs.get(\u0027update_device_up\u0027)"},{"line_number":378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":379,"context_line":"    # update information on paired port, if any."},{"line_number":380,"context_line":"    l3plugin.update_paired_port_for_unbound_port_vm(context, port)"},{"line_number":381,"context_line":"    if mac_address_updated or update_device_up:"},{"line_number":382,"context_line":"        l3plugin.dvr_vmarp_table_update(context, port, \"add\")"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a41bdd9_0cbdf1d6","line":379,"in_reply_to":"9a41bdd9_99fe26ad","updated":"2015-07-17 22:06:31.000000000","message":"Replied in patch 4.  I will move the \"allowed_address_pairs\" checking on scheduler level instead of l3.","commit_id":"0d423ea19aa9d906a4fc39ef9535cb8a8dc98ef7"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"d43a79eb64879d545e9008cd289e9aef3589d7b7","unresolved":false,"context_lines":[{"line_number":377,"context_line":"    update_device_up \u003d kwargs.get(\u0027update_device_up\u0027)"},{"line_number":378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":379,"context_line":"    # update information on paired port, if any."},{"line_number":380,"context_line":"    l3plugin.update_paired_port_for_unbound_port_vm(context, port)"},{"line_number":381,"context_line":"    if mac_address_updated or update_device_up:"},{"line_number":382,"context_line":"        l3plugin.dvr_vmarp_table_update(context, port, \"add\")"},{"line_number":383,"context_line":"    if n_utils.is_dvr_serviced(port[\u0027device_owner\u0027]):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_6f3fcf25","line":380,"updated":"2015-07-17 22:52:39.000000000","message":"Can you add the check in here as per my comment in the previous patches.","commit_id":"333c05b33e2af9a277b239028e2b2f802ae956eb"},{"author":{"_account_id":15769,"name":"Lynn Li","email":"lynn.li@hp.com","username":"lynnli"},"change_message_id":"ad6595e963b0bfdca3b1e7e4e3a3fca0f18f69d9","unresolved":false,"context_lines":[{"line_number":377,"context_line":"    update_device_up \u003d kwargs.get(\u0027update_device_up\u0027)"},{"line_number":378,"context_line":"    context \u003d kwargs[\u0027context\u0027]"},{"line_number":379,"context_line":"    # update information on paired port, if any."},{"line_number":380,"context_line":"    l3plugin.update_paired_port_for_unbound_port_vm(context, port)"},{"line_number":381,"context_line":"    if mac_address_updated or update_device_up:"},{"line_number":382,"context_line":"        l3plugin.dvr_vmarp_table_update(context, port, \"add\")"},{"line_number":383,"context_line":"    if n_utils.is_dvr_serviced(port[\u0027device_owner\u0027]):"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_0f63a342","line":380,"in_reply_to":"9a41bdd9_6f3fcf25","updated":"2015-07-17 22:57:45.000000000","message":"yes. it will be addressed on the new patch. I did edit message on the web. After I submitted it, it triggered a new patch.  Code update is in progress. Thanks.","commit_id":"333c05b33e2af9a277b239028e2b2f802ae956eb"}]}
