)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10370,"name":"Romil Gupta","email":"romilgupta19@gmail.com","username":"romilg"},"change_message_id":"dafb65736fd511d962f009913a20d9f2e68f53f8","unresolved":false,"context_lines":[{"line_number":9,"context_line":"When agent is restarted it drops all existing flows. This"},{"line_number":10,"context_line":"breaks all networking until the flows are re-created."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This change adds an ability to drop only old flows. When ovs-agent"},{"line_number":13,"context_line":"restarts all standard flows are readded. Then duration of flows is"},{"line_number":14,"context_line":"compared with the time when agent has been restarted and all old"},{"line_number":15,"context_line":"flows are removed."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"fa32b979_7cf5b24e","line":12,"updated":"2015-06-25 12:08:38.000000000","message":"Kindly clarify what do you mean by drop only old flows/existing flows.\n\nI feel the old flows should be required for existing VM to VM communication.\nAm I misinterpreting please clarify, share some example with an old flow, standard flows?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"84a7eb63548ddcd1e48e5c8ed5e7980b22a085c7","unresolved":false,"context_lines":[{"line_number":9,"context_line":"When agent is restarted it drops all existing flows. This"},{"line_number":10,"context_line":"breaks all networking until the flows are re-created."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This change adds an ability to drop only old flows. When ovs-agent"},{"line_number":13,"context_line":"restarts all standard flows are readded. Then duration of flows is"},{"line_number":14,"context_line":"compared with the time when agent has been restarted and all old"},{"line_number":15,"context_line":"flows are removed."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"fa32b979_5701a7ad","line":12,"in_reply_to":"fa32b979_7cf5b24e","updated":"2015-06-25 12:43:56.000000000","message":"Yes, seems I described this bad. By the standard flows I mean flows that are created with bridges setup. The idea to live at list these flows after ovs restart, not to drop all flows. All others that are needed will be added later (as it is now).","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"bf86aa153f0249c853155fdfa2b1badb74780f14","unresolved":false,"context_lines":[{"line_number":12,"context_line":"This change adds an ability to drop only old flows. When ovs-agent"},{"line_number":13,"context_line":"restarts all standard flows are readded. Then duration of flows is"},{"line_number":14,"context_line":"compared with the time when agent has been restarted and all old"},{"line_number":15,"context_line":"flows are removed."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Cookies are set to internal flow UUIDs to keep track of flow relations."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"fa32b979_1a17c3a3","line":15,"updated":"2015-06-26 05:25:32.000000000","message":"duration-based cleanup seems quite racy.\nArtur\u0027s idea sounds better.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":12,"context_line":"This change adds an ability to drop only old flows. When ovs-agent"},{"line_number":13,"context_line":"restarts all standard flows are readded. Then duration of flows is"},{"line_number":14,"context_line":"compared with the time when agent has been restarted and all old"},{"line_number":15,"context_line":"flows are removed."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Cookies are set to internal flow UUIDs to keep track of flow relations."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"fa32b979_8a5d9d17","line":15,"in_reply_to":"fa32b979_1a17c3a3","updated":"2015-06-26 14:48:46.000000000","message":"It is implemented in 20 patch set. I forgot to update commit message.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"d5d910422760873df758711f9b70edc9448e2e95","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Co-Authored-By: Ann Kamyshnikova\u003cakamyshnikova@mirantis.com\u003e"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Closes-bug: #1383674"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I95070d8218859d4fff1d572c1792cdf6019dd7ea"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":38,"id":"3a50d1a3_2006b020","line":19,"updated":"2015-07-27 02:54:45.000000000","message":"Need DocImpact for new config option","commit_id":"06bc91e3809654efaf7b46b3bf4b455c99d86000"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"ba28543bad4a185f0fca2566097313858ed389b3","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Co-Authored-By: Ann Kamyshnikova\u003cakamyshnikova@mirantis.com\u003e"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Closes-bug: #1383674"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I95070d8218859d4fff1d572c1792cdf6019dd7ea"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":38,"id":"3a50d1a3_9b98556c","line":19,"in_reply_to":"3a50d1a3_2006b020","updated":"2015-07-27 03:15:58.000000000","message":"+1","commit_id":"06bc91e3809654efaf7b46b3bf4b455c99d86000"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"2b7a268d8e5dca67830e1c1ca8108496cdca616f","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Co-Authored-By: Ann Kamyshnikova\u003cakamyshnikova@mirantis.com\u003e"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Closes-bug: #1383674"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I95070d8218859d4fff1d572c1792cdf6019dd7ea"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":38,"id":"3a50d1a3_d877b99d","line":19,"in_reply_to":"3a50d1a3_2006b020","updated":"2015-07-27 08:51:48.000000000","message":"It is still an open question are we are going to have this configuration or not.","commit_id":"06bc91e3809654efaf7b46b3bf4b455c99d86000"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d75e61ae7ad8cadd0c36fe4a6a50ed56e89529a3","unresolved":false,"context_lines":[{"line_number":16,"context_line":"Co-Authored-By: Ann Kamyshnikova\u003cakamyshnikova@mirantis.com\u003e"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Closes-bug: #1383674"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I95070d8218859d4fff1d572c1792cdf6019dd7ea"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":38,"id":"3a50d1a3_56003166","line":19,"in_reply_to":"3a50d1a3_d877b99d","updated":"2015-07-27 22:31:31.000000000","message":"The bad thing is that we probably have to do it to workaround failures in grenade job","commit_id":"06bc91e3809654efaf7b46b3bf4b455c99d86000"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"f057f906b4119717afaf6649abe8789f2e3b211c","unresolved":false,"context_lines":[{"line_number":10,"context_line":"breaks all networking until the flows are re-created."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This change adds an ability to drop only old flows."},{"line_number":13,"context_line":"For agent is added agent_uuid_stamp. This agent_uuid_stamp is set as"},{"line_number":14,"context_line":"cookie for flows and then compared with current agent_uuid_stamp."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Co-Authored-By: Ann Kamyshnikova\u003cakamyshnikova@mirantis.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":53,"id":"1a4dcd0f_05765ad8","line":13,"updated":"2015-08-14 08:27:01.000000000","message":"Grammatical fixup. \"Agent_uuid_stamp is added for agents.\"","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6fe8add7188172943aef5960bbc5b404978ab747","unresolved":false,"context_lines":[{"line_number":10,"context_line":"breaks all networking until the flows are re-created."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This change adds an ability to drop only old flows."},{"line_number":13,"context_line":"For agent is added agent_uuid_stamp. This agent_uuid_stamp is set as"},{"line_number":14,"context_line":"cookie for flows and then compared with current agent_uuid_stamp."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Co-Authored-By: Ann Kamyshnikova\u003cakamyshnikova@mirantis.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":53,"id":"1a4dcd0f_99ce4fb6","line":13,"in_reply_to":"1a4dcd0f_05765ad8","updated":"2015-08-14 09:49:01.000000000","message":"Done","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"f057f906b4119717afaf6649abe8789f2e3b211c","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This change adds an ability to drop only old flows."},{"line_number":13,"context_line":"For agent is added agent_uuid_stamp. This agent_uuid_stamp is set as"},{"line_number":14,"context_line":"cookie for flows and then compared with current agent_uuid_stamp."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Co-Authored-By: Ann Kamyshnikova\u003cakamyshnikova@mirantis.com\u003e"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":53,"id":"1a4dcd0f_283d6bbb","line":14,"updated":"2015-08-14 08:27:01.000000000","message":"Where do the comparisons happen?\n\nDo you mean the following?\n\"... and then flows with stale cookies are deleted.\"","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6fe8add7188172943aef5960bbc5b404978ab747","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"This change adds an ability to drop only old flows."},{"line_number":13,"context_line":"For agent is added agent_uuid_stamp. This agent_uuid_stamp is set as"},{"line_number":14,"context_line":"cookie for flows and then compared with current agent_uuid_stamp."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Co-Authored-By: Ann Kamyshnikova\u003cakamyshnikova@mirantis.com\u003e"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":53,"id":"1a4dcd0f_79cd83b6","line":14,"in_reply_to":"1a4dcd0f_283d6bbb","updated":"2015-08-14 09:49:01.000000000","message":"Done","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"}],"neutron/agent/common/ovs_lib.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4fe19814ce9845efd0a2b74a66e93543fa95ad47","unresolved":false,"context_lines":[{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    def mod_flow(self, **kwargs):"},{"line_number":263,"context_line":"        self.do_action_flows(\u0027mod\u0027, [kwargs])"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa32b979_4f21a4fa","line":260,"updated":"2015-06-16 07:36:48.000000000","message":"suggest adding debug logging for testing purposes","commit_id":"78ff4a9a5f64598340c977be4335632197b3cbd9"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4fe19814ce9845efd0a2b74a66e93543fa95ad47","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        self.do_action_flows(\u0027mod\u0027, [kwargs])"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"    def delete_flows(self, **kwargs):"},{"line_number":266,"context_line":"        self.do_action_flows(\u0027del\u0027, [kwargs])"},{"line_number":267,"context_line":""},{"line_number":268,"context_line":"    def dump_flows_for_table(self, table):"},{"line_number":269,"context_line":"        retval \u003d None"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa32b979_cfd134cf","line":266,"updated":"2015-06-16 07:36:48.000000000","message":"same","commit_id":"78ff4a9a5f64598340c977be4335632197b3cbd9"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"db5222416f120fc7b291297f00fe682631ef9151","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_1841d939","line":259,"updated":"2015-06-19 23:26:04.000000000","message":"is the reason for the cookie caused by not being able to delete flows by duration?","commit_id":"78db3b7f1c9d34423fd0b8b96e0c8d7879d9fba6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"a915dec06d03101b282c362f096f1a2e10c16c69","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"fa32b979_3bb854e5","line":259,"in_reply_to":"fa32b979_1841d939","updated":"2015-06-20 09:53:08.000000000","message":"Yes, as we need to have some unique field to delete selected flow, by duration it does not work.","commit_id":"78db3b7f1c9d34423fd0b8b96e0c8d7879d9fba6"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"c56fd5b9cdb2dbc58dba53dc4f91e194343e8440","unresolved":false,"context_lines":[{"line_number":255,"context_line":"        self.run_ofctl(\u0027%s-flows\u0027 % action, [\u0027-\u0027], \u0027\\n\u0027.join(flow_strs))"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_b4790e84","line":258,"updated":"2015-06-25 13:00:56.000000000","message":"Can the cookie be passed from ovs_neutron_agent.py ?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":255,"context_line":"        self.run_ofctl(\u0027%s-flows\u0027 % action, [\u0027-\u0027], \u0027\\n\u0027.join(flow_strs))"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_8bf03c93","line":258,"in_reply_to":"fa32b979_b4790e84","updated":"2015-06-26 14:48:46.000000000","message":"Done","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"165503e9b2d1e153231b2c39814aa12e855b322d","unresolved":false,"context_lines":[{"line_number":255,"context_line":"        self.run_ofctl(\u0027%s-flows\u0027 % action, [\u0027-\u0027], \u0027\\n\u0027.join(flow_strs))"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_85e26e2e","line":258,"in_reply_to":"fa32b979_b4790e84","updated":"2015-06-28 21:18:04.000000000","message":"what would be the point to pass that from higher level?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c8c228a0b73a99cecddfbce16826dd93c664f65","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_5b1d5b71","line":259,"updated":"2015-06-26 08:24:35.000000000","message":"nit if you need to repost:\n\ncan we put (1 \u003c\u003c 64) -1 as a constant? \n\nUINT64_BITMASK \u003d (1 \u003c\u003c 64) -1","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"bf86aa153f0249c853155fdfa2b1badb74780f14","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_5728c496","line":259,"updated":"2015-06-26 05:25:32.000000000","message":"this seems to belong to ofswitch.py.\nyou can override add_flow there as is done for delete_flows.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_0bfc2c71","line":259,"in_reply_to":"fa32b979_5728c496","updated":"2015-06-26 14:48:46.000000000","message":"Done","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":258,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":259,"context_line":"            kwargs[\u0027cookie\u0027] \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":260,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":261,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":262,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_abd660ef","line":259,"in_reply_to":"fa32b979_5b1d5b71","updated":"2015-06-26 14:48:46.000000000","message":"Done","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":257,"context_line":""},{"line_number":258,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":259,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":260,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    def mod_flow(self, **kwargs):"},{"line_number":263,"context_line":"        self.do_action_flows(\u0027mod\u0027, [kwargs])"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_715ae2f3","line":260,"updated":"2015-07-02 13:42:22.000000000","message":"this line should be deleted in the final version. It\u0027s ok for debugging but we don\u0027t want to have one line every flow added eventually :)","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"dcc9e5953a2bf72b1ed0862d77e0e75aaa90a882","unresolved":false,"context_lines":[{"line_number":257,"context_line":""},{"line_number":258,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":259,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":260,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    def mod_flow(self, **kwargs):"},{"line_number":263,"context_line":"        self.do_action_flows(\u0027mod\u0027, [kwargs])"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_9532d9a5","line":260,"in_reply_to":"ba3cc151_715ae2f3","updated":"2015-07-02 21:56:53.000000000","message":"we\u0027ll keep it for the next couple of patches, probably.","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3f991c684a97942213c7bd2101308e2e10999aa6","unresolved":false,"context_lines":[{"line_number":266,"context_line":""},{"line_number":267,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":268,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":269,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"    def mod_flow(self, **kwargs):"},{"line_number":272,"context_line":"        self.do_action_flows(\u0027mod\u0027, [kwargs])"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_e22936e7","line":269,"updated":"2015-07-15 19:41:23.000000000","message":"if these are going to stay, update to \"added flow\".","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f4d070ee3162c8a3f2a92f630b711187239ee30d","unresolved":false,"context_lines":[{"line_number":266,"context_line":""},{"line_number":267,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":268,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":269,"context_line":"        LOG.debug(\"Added cookie %s\", kwargs)"},{"line_number":270,"context_line":""},{"line_number":271,"context_line":"    def mod_flow(self, **kwargs):"},{"line_number":272,"context_line":"        self.do_action_flows(\u0027mod\u0027, [kwargs])"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_b6fb6746","line":269,"in_reply_to":"9a41bdd9_e22936e7","updated":"2015-07-16 00:21:22.000000000","message":"Done","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3f991c684a97942213c7bd2101308e2e10999aa6","unresolved":false,"context_lines":[{"line_number":273,"context_line":""},{"line_number":274,"context_line":"    def delete_flows(self, **kwargs):"},{"line_number":275,"context_line":"        self.do_action_flows(\u0027del\u0027, [kwargs])"},{"line_number":276,"context_line":"        LOG.debug(\"Deleted cookie %s\", kwargs)"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"    def dump_flows_for_table(self, table):"},{"line_number":279,"context_line":"        retval \u003d None"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_a21faeb5","line":276,"updated":"2015-07-15 19:41:23.000000000","message":"same","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f4d070ee3162c8a3f2a92f630b711187239ee30d","unresolved":false,"context_lines":[{"line_number":273,"context_line":""},{"line_number":274,"context_line":"    def delete_flows(self, **kwargs):"},{"line_number":275,"context_line":"        self.do_action_flows(\u0027del\u0027, [kwargs])"},{"line_number":276,"context_line":"        LOG.debug(\"Deleted cookie %s\", kwargs)"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"    def dump_flows_for_table(self, table):"},{"line_number":279,"context_line":"        retval \u003d None"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_d6f62b5c","line":276,"in_reply_to":"9a41bdd9_a21faeb5","updated":"2015-07-16 00:21:22.000000000","message":"Done","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"80ca1cdf6a68fdc27b52697a3ecc082dbe73a0f5","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        self.agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":152,"context_line":"        self.agent_uuid_stamp \u003d val"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def set_controller(self, controllers):"},{"line_number":155,"context_line":"        self.ovsdb.set_controller(self.br_name,"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_2a5ab12a","line":152,"updated":"2015-08-06 11:08:37.000000000","message":"these belongs to ofswitch.py where it\u0027s used.","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"b65111728ec9d5d5fac9cf74f7cd2612a6a911a0","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        self.agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":152,"context_line":"        self.agent_uuid_stamp \u003d val"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def set_controller(self, controllers):"},{"line_number":155,"context_line":"        self.ovsdb.set_controller(self.br_name,"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_d0889cc7","line":152,"in_reply_to":"1a4dcd0f_2a5ab12a","updated":"2015-08-06 13:20:22.000000000","message":"It is also used in br_tun.py","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"465a917a69df4c76a6df609cd890f8ad5747392c","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        self.agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":152,"context_line":"        self.agent_uuid_stamp \u003d val"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def set_controller(self, controllers):"},{"line_number":155,"context_line":"        self.ovsdb.set_controller(self.br_name,"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_274f1e6c","line":152,"in_reply_to":"1a4dcd0f_d0889cc7","updated":"2015-08-13 04:54:24.000000000","message":"yes, and because OVSTunnelBridge inherits OpenFlowSwitchMixin via OVSAgentBridge,\nOpenFlowSwitchMixin is a more appropriate place to\nput this.","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"80ca1cdf6a68fdc27b52697a3ecc082dbe73a0f5","unresolved":false,"context_lines":[{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":262,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":263,"context_line":"        LOG.debug(\"Added flow %s\", kwargs)"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"    def mod_flow(self, **kwargs):"},{"line_number":266,"context_line":"        self.do_action_flows(\u0027mod\u0027, [kwargs])"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_eac36987","line":263,"updated":"2015-08-06 11:08:37.000000000","message":"this seems redundant with the command log.","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"b65111728ec9d5d5fac9cf74f7cd2612a6a911a0","unresolved":false,"context_lines":[{"line_number":260,"context_line":""},{"line_number":261,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":262,"context_line":"        self.do_action_flows(\u0027add\u0027, [kwargs])"},{"line_number":263,"context_line":"        LOG.debug(\"Added flow %s\", kwargs)"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"    def mod_flow(self, **kwargs):"},{"line_number":266,"context_line":"        self.do_action_flows(\u0027mod\u0027, [kwargs])"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_30bea065","line":263,"in_reply_to":"1a4dcd0f_eac36987","updated":"2015-08-06 13:20:22.000000000","message":"Done","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"80ca1cdf6a68fdc27b52697a3ecc082dbe73a0f5","unresolved":false,"context_lines":[{"line_number":267,"context_line":""},{"line_number":268,"context_line":"    def delete_flows(self, **kwargs):"},{"line_number":269,"context_line":"        self.do_action_flows(\u0027del\u0027, [kwargs])"},{"line_number":270,"context_line":"        LOG.debug(\"Deleted flow %s\", kwargs)"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"    def dump_flows_for_table(self, table):"},{"line_number":273,"context_line":"        retval \u003d None"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_8abc2507","line":270,"updated":"2015-08-06 11:08:37.000000000","message":"ditto","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"b65111728ec9d5d5fac9cf74f7cd2612a6a911a0","unresolved":false,"context_lines":[{"line_number":267,"context_line":""},{"line_number":268,"context_line":"    def delete_flows(self, **kwargs):"},{"line_number":269,"context_line":"        self.do_action_flows(\u0027del\u0027, [kwargs])"},{"line_number":270,"context_line":"        LOG.debug(\"Deleted flow %s\", kwargs)"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"    def dump_flows_for_table(self, table):"},{"line_number":273,"context_line":"        retval \u003d None"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_50c32ced","line":270,"in_reply_to":"1a4dcd0f_8abc2507","updated":"2015-08-06 13:20:22.000000000","message":"Done","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c72903de48a4fd18e67f714d3be5e25278c23a23","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        self.agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":152,"context_line":"        self.agent_uuid_stamp \u003d val"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def set_controller(self, controllers):"},{"line_number":155,"context_line":"        self.ovsdb.set_controller(self.br_name,"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_a7fa4e73","line":152,"updated":"2015-08-13 05:18:16.000000000","message":"commented on PS48.","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"55177193f499f8114b65fd73712b1e57b935d1c3","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        self.agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":152,"context_line":"        self.agent_uuid_stamp \u003d val"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"    def set_controller(self, controllers):"},{"line_number":155,"context_line":"        self.ovsdb.set_controller(self.br_name,"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_e1c11e81","line":152,"in_reply_to":"1a4dcd0f_a7fa4e73","updated":"2015-08-13 07:57:51.000000000","message":"Done","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a33e9d7056946495def1dfeaf875738778d5aa37","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        self.br_name \u003d br_name"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":151,"context_line":"        self.agent_uuid_stamp \u003d val"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    def set_controller(self, controllers):"},{"line_number":154,"context_line":"        self.ovsdb.set_controller(self.br_name,"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_3f0a837a","line":151,"updated":"2015-08-14 07:31:55.000000000","message":"can you move this to ofswitch.py as well?","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6fe8add7188172943aef5960bbc5b404978ab747","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        self.br_name \u003d br_name"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":151,"context_line":"        self.agent_uuid_stamp \u003d val"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"    def set_controller(self, controllers):"},{"line_number":154,"context_line":"        self.ovsdb.set_controller(self.br_name,"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_d9b7f738","line":151,"in_reply_to":"1a4dcd0f_3f0a837a","updated":"2015-08-14 09:49:01.000000000","message":"Done","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"}],"neutron/plugins/ml2/drivers/openvswitch/agent/common/config.py":[{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"936fac6757ae2f408dd8e54891c4217ef85d3942","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_all_flows_on_restart\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Ability to save or drop all flows during agent \""},{"line_number":103,"context_line":"                       \"restart.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":31,"id":"9a41bdd9_5d6a65ef","line":101,"updated":"2015-07-15 09:05:05.000000000","message":"i\u0027d name it \u0027drop_flows_on_start\u0027","commit_id":"553d72489f399c1bcf6a1678a51409658d4e0242"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"31f84b25d34ee8e24c9b0a46b8c744b97b6c3a9c","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_all_flows_on_restart\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Ability to save or drop all flows during agent \""},{"line_number":103,"context_line":"                       \"restart.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":31,"id":"9a41bdd9_50ab1f75","line":101,"in_reply_to":"9a41bdd9_5d6a65ef","updated":"2015-07-15 14:26:49.000000000","message":"Done","commit_id":"553d72489f399c1bcf6a1678a51409658d4e0242"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"d141b909321519e3a32d2235a4397b9f9dbb01be","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Ability to save or drop all flows during agent \""},{"line_number":103,"context_line":"                       \"restart.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":35,"id":"3a50d1a3_a5dc6447","line":101,"updated":"2015-07-19 01:42:02.000000000","message":"If we need to add an option, I prefer to change the default to True so that we can have a enough test on the new feature.","commit_id":"e1e9fee2604d5dde27b4993ba79600b1c9e6ea45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2ec874ce2934d6a74d56541f9aa0d0633657b3ca","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Ability to save or drop all flows during agent \""},{"line_number":103,"context_line":"                       \"restart.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":35,"id":"3a50d1a3_25adb488","line":101,"in_reply_to":"3a50d1a3_a5dc6447","updated":"2015-07-19 02:02:36.000000000","message":"I would not agree here. I think this needed at least for grenade job testing.\nWe have some time in L to test it, and setting this to True will reveal possible problems faster.","commit_id":"e1e9fee2604d5dde27b4993ba79600b1c9e6ea45"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"d141b909321519e3a32d2235a4397b9f9dbb01be","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Ability to save or drop all flows during agent \""},{"line_number":103,"context_line":"                       \"restart.\"))"},{"line_number":104,"context_line":"]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":35,"id":"3a50d1a3_85e4c80d","line":103,"updated":"2015-07-19 01:42:02.000000000","message":"To drop all flows during agent restart for a clean flow tables resetting?","commit_id":"e1e9fee2604d5dde27b4993ba79600b1c9e6ea45"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2ec874ce2934d6a74d56541f9aa0d0633657b3ca","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Ability to save or drop all flows during agent \""},{"line_number":103,"context_line":"                       \"restart.\"))"},{"line_number":104,"context_line":"]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":35,"id":"3a50d1a3_45aa4072","line":103,"in_reply_to":"3a50d1a3_85e4c80d","updated":"2015-07-19 02:02:36.000000000","message":"Done","commit_id":"e1e9fee2604d5dde27b4993ba79600b1c9e6ea45"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"94a416f2dc7fbfea423327e565b963e26e27344c","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Drop all flows during agent start for a clean flow \""},{"line_number":103,"context_line":"                       \"tables resetting\"))"},{"line_number":104,"context_line":"]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_3beb9cdd","line":103,"updated":"2015-08-07 16:10:43.000000000","message":"nit: This help text could use a little help IMO...\n\n\"Drop all flows from table during agent start. Setting this to True could cause connectivity loss for VMs until the flow table is fully re-populated.\"","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"a0a6974058e77661c55fd92cb684145e097fd950","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Drop all flows during agent start for a clean flow \""},{"line_number":103,"context_line":"                       \"tables resetting\"))"},{"line_number":104,"context_line":"]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_8d5143db","line":103,"in_reply_to":"1a4dcd0f_3beb9cdd","updated":"2015-08-08 02:57:58.000000000","message":"as I mentioned in an earlier review, this requires DocImpact in the commit message.","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"aea106d9b8a6124f27162ab99387571c99eeb17c","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Drop all flows during agent start for a clean flow \""},{"line_number":103,"context_line":"                       \"tables resetting\"))"},{"line_number":104,"context_line":"]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_ba868f11","line":103,"in_reply_to":"1a4dcd0f_8d5143db","updated":"2015-08-10 09:40:50.000000000","message":"Sorry, I thought that I put this flag, but seems I forgot to do it.","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"32e21b20385c1f730c55958c160a29a5a5749f7c","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Drop all flows during agent start for a clean flow \""},{"line_number":103,"context_line":"                       \"tables resetting. Setting this to True could cause \""},{"line_number":104,"context_line":"                       \"connectivity loss for VMs until the flow table is \""},{"line_number":105,"context_line":"                       \"fully re-populated.\"))"},{"line_number":106,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":50,"id":"1a4dcd0f_2c3f1fb5","line":103,"updated":"2015-08-12 15:37:04.000000000","message":"Sorry, this first sentence is still not proper English IMO, one of these is better:\n\nDrop all flows from table during agent start.\n\nDrop all flows during agent start, resetting the flow table.","commit_id":"0675292fa64ed6e03e9d05b73f81242813601d20"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"944e654515a5c1f997ddb26735049760230f8472","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Drop all flows during agent start for a clean flow \""},{"line_number":103,"context_line":"                       \"tables resetting. Setting this to True could cause \""},{"line_number":104,"context_line":"                       \"connectivity loss for VMs until the flow table is \""},{"line_number":105,"context_line":"                       \"fully re-populated.\"))"},{"line_number":106,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":50,"id":"1a4dcd0f_9d653b1f","line":103,"in_reply_to":"1a4dcd0f_2c3f1fb5","updated":"2015-08-12 16:27:23.000000000","message":"I suggest this form:\n\n\"Reset flow tabl on start. Setting this to True will cause brief traffic interruption\"","commit_id":"0675292fa64ed6e03e9d05b73f81242813601d20"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"a4b7977f53236b76693b1d159210f854041963dd","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Reset flow table on start. Setting this to True will \""},{"line_number":103,"context_line":"                       \"cause brief traffic interruption.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_b86080a6","line":101,"updated":"2015-08-20 01:13:23.000000000","message":"why do we need to add this configuration option? It seems like one would always want it to not distrucpt all of the flows.","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"a165f46b68fae508ed7df508ab29df169ebcea82","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Reset flow table on start. Setting this to True will \""},{"line_number":103,"context_line":"                       \"cause brief traffic interruption.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_db37634b","line":101,"in_reply_to":"fa1b9901_a0711a78","updated":"2015-08-20 08:04:53.000000000","message":"What would be a good reason to keep that broken?\nI mean, what reasoning could lead somebody to want flows being dropped at start?","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3fc4f9b7967209e9b4580d38e08e6c4df2eb64b1","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Reset flow table on start. Setting this to True will \""},{"line_number":103,"context_line":"                       \"cause brief traffic interruption.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_e96aa880","line":101,"in_reply_to":"fa1b9901_b86080a6","updated":"2015-08-20 03:11:33.000000000","message":"+1","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"5ea76d1a8745e8e74c5652ab11578f1436ccb179","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Reset flow table on start. Setting this to True will \""},{"line_number":103,"context_line":"                       \"cause brief traffic interruption.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_ce324a5f","line":101,"in_reply_to":"fa1b9901_b86080a6","updated":"2015-08-20 08:14:18.000000000","message":"First of all, this was requested by operators.\nI can understand it: just in case we find some severe issue with the approach, we could quickly turn this off.\nOtherwise it will not be possible.","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"5a723db99d04016dcf191b9df8e56212fce3364f","unresolved":false,"context_lines":[{"line_number":98,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":99,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Reset flow table on start. Setting this to True will \""},{"line_number":103,"context_line":"                       \"cause brief traffic interruption.\"))"},{"line_number":104,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_a0711a78","line":101,"in_reply_to":"fa1b9901_e96aa880","updated":"2015-08-20 07:49:42.000000000","message":"This configuration option was created for compatibility with previous versions. Is not it a worth reason to have it?","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"bdb788aa0b60a69cdd3a86f9599bca192b869d4e","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Reset flow table on start. Setting this to True will \""},{"line_number":103,"context_line":"                       \"cause brief traffic interruption.\"))"},{"line_number":104,"context_line":"]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":58,"id":"fa1b9901_305d5915","line":103,"updated":"2015-08-20 08:42:17.000000000","message":"i don\u0027t think it\u0027s a good idea to have options\nto revert every behavioral changes.\nbut i don\u0027t insist on this particular one much,\nas the code involved is trivial and easy to remove\nsometime later.","commit_id":"73673beacd75a2d9f51f15b284f1b458d32e992e"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"03543dec81c402c59d0c124e37ce9a64ff5f4c85","unresolved":false,"context_lines":[{"line_number":100,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":101,"context_line":"    cfg.BoolOpt(\u0027drop_flows_on_start\u0027, default\u003dFalse,"},{"line_number":102,"context_line":"                help\u003d_(\"Reset flow table on start. Setting this to True will \""},{"line_number":103,"context_line":"                       \"cause brief traffic interruption.\"))"},{"line_number":104,"context_line":"]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":58,"id":"fa1b9901_5027adc9","line":103,"in_reply_to":"fa1b9901_305d5915","updated":"2015-08-20 09:22:38.000000000","message":"Yes, let\u0027s deprecate it in M.","commit_id":"73673beacd75a2d9f51f15b284f1b458d32e992e"}],"neutron/plugins/ml2/drivers/openvswitch/agent/openflow/ovs_ofctl/ofswitch.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":34,"context_line":"                kwargs[ovs_ofctl_name] \u003d kwargs.pop(our_name)"},{"line_number":35,"context_line":"        return kwargs"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def dump_flows(self, table_id\u003dNone):"},{"line_number":38,"context_line":"        if table_id is None:"},{"line_number":39,"context_line":"            return self.dump_all_flows()"},{"line_number":40,"context_line":"        return self.dump_flows_for_table(table_id)"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_d1f08ecb","line":37,"updated":"2015-07-02 13:42:22.000000000","message":"I\u0027d prefer creating another method \"dump_flows_all_tables\" or something like that, instead of using None for table_id","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ee9386cb5a202d13d70aa9e198a294f8bbf40133","unresolved":false,"context_lines":[{"line_number":34,"context_line":"                kwargs[ovs_ofctl_name] \u003d kwargs.pop(our_name)"},{"line_number":35,"context_line":"        return kwargs"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def dump_flows(self, table_id\u003dNone):"},{"line_number":38,"context_line":"        if table_id is None:"},{"line_number":39,"context_line":"            return self.dump_all_flows()"},{"line_number":40,"context_line":"        return self.dump_flows_for_table(table_id)"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_0135d8d8","line":37,"in_reply_to":"ba3cc151_d1f08ecb","updated":"2015-07-14 11:47:50.000000000","message":"Done","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"3f991c684a97942213c7bd2101308e2e10999aa6","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        else:"},{"line_number":77,"context_line":"            super(OpenFlowSwitchMixin, self).remove_all_flows()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":80,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":81,"context_line":"            kwargs[\u0027cookie\u0027] \u003d self.agent_uuid_stamp"},{"line_number":82,"context_line":"        super(OpenFlowSwitchMixin, self).add_flow(**self._conv_args(kwargs))"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_624d2699","line":79,"updated":"2015-07-15 19:41:23.000000000","message":"We can no longer allow cookies to be set, otherwise any flows generated with a different cookie from the UUID will be wiped out as a stale flow, or am I misunderstanding?\n\nSo this would need to be more like:\n\nassert \u0027cookie\u0027 not in kwargs, \"cookies cannot be set\"","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f4d070ee3162c8a3f2a92f630b711187239ee30d","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        else:"},{"line_number":77,"context_line":"            super(OpenFlowSwitchMixin, self).remove_all_flows()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":80,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":81,"context_line":"            kwargs[\u0027cookie\u0027] \u003d self.agent_uuid_stamp"},{"line_number":82,"context_line":"        super(OpenFlowSwitchMixin, self).add_flow(**self._conv_args(kwargs))"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_4ca12c45","line":79,"in_reply_to":"9a41bdd9_0558df86","updated":"2015-07-16 00:21:22.000000000","message":"makes sense. so i\u0027m just explicitly overriding cookie here.","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"d52a7d6b1d1f1d0d1d77ec2ed73584df67380b34","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        else:"},{"line_number":77,"context_line":"            super(OpenFlowSwitchMixin, self).remove_all_flows()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":80,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":81,"context_line":"            kwargs[\u0027cookie\u0027] \u003d self.agent_uuid_stamp"},{"line_number":82,"context_line":"        super(OpenFlowSwitchMixin, self).add_flow(**self._conv_args(kwargs))"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_0558df86","line":79,"in_reply_to":"9a41bdd9_624d2699","updated":"2015-07-15 21:42:40.000000000","message":"I believe you\u0027re right on that.\n\nIf we need cookies for other stuff in the future we could reserve some bits to prefix them differently according to usage (timestamp controlled/independent..) if that makes any sense.","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a3b3177da67a0d21009f365235f9e0a3e9331596","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            super(OpenFlowSwitchMixin, self).remove_all_flows()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":80,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":81,"context_line":"            kwargs[\u0027cookie\u0027] \u003d self.agent_uuid_stamp"},{"line_number":82,"context_line":"        super(OpenFlowSwitchMixin, self).add_flow(**self._conv_args(kwargs))"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_70d3bed5","line":80,"updated":"2015-07-15 14:44:58.000000000","message":"you can use kwargs.setdefault(....)","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f4d070ee3162c8a3f2a92f630b711187239ee30d","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            super(OpenFlowSwitchMixin, self).remove_all_flows()"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def add_flow(self, **kwargs):"},{"line_number":80,"context_line":"        if \u0027cookie\u0027 not in kwargs:"},{"line_number":81,"context_line":"            kwargs[\u0027cookie\u0027] \u003d self.agent_uuid_stamp"},{"line_number":82,"context_line":"        super(OpenFlowSwitchMixin, self).add_flow(**self._conv_args(kwargs))"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_ac9238f4","line":80,"in_reply_to":"9a41bdd9_70d3bed5","updated":"2015-07-16 00:21:22.000000000","message":"unneeded per discussion above","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"94a416f2dc7fbfea423327e565b963e26e27344c","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        LOG.debug(\"Agent uuid stamp used to filter flows: %s\","},{"line_number":95,"context_line":"                  self.agent_uuid_stamp)"},{"line_number":96,"context_line":"        for flow in flows:"},{"line_number":97,"context_line":"            LOG.debug(\"Checking flow %s\", flow)"},{"line_number":98,"context_line":"            fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow)"},{"line_number":99,"context_line":"            if not fl_cookie:"},{"line_number":100,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_3ba71ca8","line":97,"updated":"2015-08-07 16:10:43.000000000","message":"This seems like a lot of extra debug info, as the caller is already going to log when they delete any flow that\u0027s returned.  I don\u0027t think this or the one just above are necessary, thoughts?","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"aea106d9b8a6124f27162ab99387571c99eeb17c","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        LOG.debug(\"Agent uuid stamp used to filter flows: %s\","},{"line_number":95,"context_line":"                  self.agent_uuid_stamp)"},{"line_number":96,"context_line":"        for flow in flows:"},{"line_number":97,"context_line":"            LOG.debug(\"Checking flow %s\", flow)"},{"line_number":98,"context_line":"            fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow)"},{"line_number":99,"context_line":"            if not fl_cookie:"},{"line_number":100,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_9a34f34a","line":97,"in_reply_to":"1a4dcd0f_3ba71ca8","updated":"2015-08-10 09:40:50.000000000","message":"This was very useful during my work and testing. Not insist in having this log message.","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"27062e5139865b4aaf62aa875db22af1d37c88d0","unresolved":false,"context_lines":[{"line_number":109,"context_line":"        for flow, cookie, table in self._filter_flows(flows):"},{"line_number":110,"context_line":"            # deleting a stale flow should be rare."},{"line_number":111,"context_line":"            # it might deserve some attention"},{"line_number":112,"context_line":"            LOG.warning(_LW(\"Deleting flow %s\"), flow)"},{"line_number":113,"context_line":"            self.delete_flows(cookie\u003dcookie + \u0027/-1\u0027, table\u003dtable)"}],"source_content_type":"text/x-python","patch_set":50,"id":"1a4dcd0f_1d038211","line":112,"updated":"2015-08-12 09:55:03.000000000","message":"From previous comments in PS49, I agree this is a rare event, and it\u0027s better to warn it instead of just Info.","commit_id":"0675292fa64ed6e03e9d05b73f81242813601d20"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a33e9d7056946495def1dfeaf875738778d5aa37","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OpenFlowSwitchMixin(object):"},{"line_number":36,"context_line":"    \"\"\"Mixin to provide common convenient routines for an openflow switch.\"\"\""},{"line_number":37,"context_line":"    agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @staticmethod"},{"line_number":40,"context_line":"    def _conv_args(kwargs):"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_5f38af3d","line":37,"updated":"2015-08-14 07:31:55.000000000","message":"why don\u0027t you use __init__()?","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6fe8add7188172943aef5960bbc5b404978ab747","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OpenFlowSwitchMixin(object):"},{"line_number":36,"context_line":"    \"\"\"Mixin to provide common convenient routines for an openflow switch.\"\"\""},{"line_number":37,"context_line":"    agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @staticmethod"},{"line_number":40,"context_line":"    def _conv_args(kwargs):"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_b32eccf8","line":37,"in_reply_to":"1a4dcd0f_5f38af3d","updated":"2015-08-14 09:49:01.000000000","message":"When I use __init__() I\u0027ve got error that I wrote you about yesterday in IRC.","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"bcf919308263763897684e25db277562672311dd","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OpenFlowSwitchMixin(object):"},{"line_number":36,"context_line":"    \"\"\"Mixin to provide common convenient routines for an openflow switch.\"\"\""},{"line_number":37,"context_line":"    agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @staticmethod"},{"line_number":40,"context_line":"    def _conv_args(kwargs):"}],"source_content_type":"text/x-python","patch_set":53,"id":"fa1b9901_bf1d2675","line":37,"in_reply_to":"1a4dcd0f_b32eccf8","updated":"2015-08-18 12:18:44.000000000","message":"sorry, i don\u0027t remember.\nwhat error?","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"a85a573d6751624c4452a753beff54a1fd5f6d9b","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OpenFlowSwitchMixin(object):"},{"line_number":36,"context_line":"    \"\"\"Mixin to provide common convenient routines for an openflow switch.\"\"\""},{"line_number":37,"context_line":"    agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @staticmethod"},{"line_number":40,"context_line":"    def _conv_args(kwargs):"}],"source_content_type":"text/x-python","patch_set":53,"id":"fa1b9901_fac16c2f","line":37,"in_reply_to":"fa1b9901_bf1d2675","updated":"2015-08-18 12:27:45.000000000","message":"AttributeError: \u0027OVSTunnelBridge\u0027 object has no attribute \u0027agent_uuid_stamp","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"8577741fdb8d4c4741e4c524fbc6e6515cf2da29","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OpenFlowSwitchMixin(object):"},{"line_number":36,"context_line":"    \"\"\"Mixin to provide common convenient routines for an openflow switch.\"\"\""},{"line_number":37,"context_line":"    agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @staticmethod"},{"line_number":40,"context_line":"    def _conv_args(kwargs):"}],"source_content_type":"text/x-python","patch_set":53,"id":"fa1b9901_9a12b0b3","line":37,"in_reply_to":"fa1b9901_fac16c2f","updated":"2015-08-18 12:29:42.000000000","message":"ok, i guess some class\u0027s __init__ doesn\u0027t call super\u0027s.","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"f057f906b4119717afaf6649abe8789f2e3b211c","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        LOG.debug(\"Agent uuid stamp used to filter flows: %s\","},{"line_number":98,"context_line":"                  self.agent_uuid_stamp)"},{"line_number":99,"context_line":"        for flow in flows:"},{"line_number":100,"context_line":"            fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow)"},{"line_number":101,"context_line":"            if not fl_cookie:"},{"line_number":102,"context_line":"                continue"},{"line_number":103,"context_line":"            fl_cookie \u003d fl_cookie.group(1)"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_82ba6070","line":100,"updated":"2015-08-14 08:27:01.000000000","message":"Please use re.compile above and use compiled regex here.\n\nAs we are matching against hexadecimal, I prefer \u00270x([a-f0-9]*), but this may up to your taste.","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6fe8add7188172943aef5960bbc5b404978ab747","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        LOG.debug(\"Agent uuid stamp used to filter flows: %s\","},{"line_number":98,"context_line":"                  self.agent_uuid_stamp)"},{"line_number":99,"context_line":"        for flow in flows:"},{"line_number":100,"context_line":"            fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow)"},{"line_number":101,"context_line":"            if not fl_cookie:"},{"line_number":102,"context_line":"                continue"},{"line_number":103,"context_line":"            fl_cookie \u003d fl_cookie.group(1)"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_6e129b0b","line":100,"in_reply_to":"1a4dcd0f_82ba6070","updated":"2015-08-14 09:49:01.000000000","message":"Done","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"f057f906b4119717afaf6649abe8789f2e3b211c","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                continue"},{"line_number":103,"context_line":"            fl_cookie \u003d fl_cookie.group(1)"},{"line_number":104,"context_line":"            if int(fl_cookie, 16) !\u003d self.agent_uuid_stamp:"},{"line_number":105,"context_line":"                fl_table \u003d re.search(\u0027table\u003d([0-9]*)\u0027, flow).group(1)"},{"line_number":106,"context_line":"                yield flow, fl_cookie, fl_table"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def cleanup_flows(self):"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_42b45881","line":105,"updated":"2015-08-14 08:27:01.000000000","message":"ditto for using re.compile","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6fe8add7188172943aef5960bbc5b404978ab747","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                continue"},{"line_number":103,"context_line":"            fl_cookie \u003d fl_cookie.group(1)"},{"line_number":104,"context_line":"            if int(fl_cookie, 16) !\u003d self.agent_uuid_stamp:"},{"line_number":105,"context_line":"                fl_table \u003d re.search(\u0027table\u003d([0-9]*)\u0027, flow).group(1)"},{"line_number":106,"context_line":"                yield flow, fl_cookie, fl_table"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def cleanup_flows(self):"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_0ef8b7c3","line":105,"in_reply_to":"1a4dcd0f_42b45881","updated":"2015-08-14 09:49:01.000000000","message":"Done","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"bdb788aa0b60a69cdd3a86f9599bca192b869d4e","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OpenFlowSwitchMixin(object):"},{"line_number":36,"context_line":"    \"\"\"Mixin to provide common convenient routines for an openflow switch.\"\"\""},{"line_number":37,"context_line":"    agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":40,"context_line":"        self.agent_uuid_stamp \u003d val"}],"source_content_type":"text/x-python","patch_set":58,"id":"fa1b9901_101b7574","line":37,"updated":"2015-08-20 08:42:17.000000000","message":"for consistency this ought to be an integer, not str.","commit_id":"73673beacd75a2d9f51f15b284f1b458d32e992e"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"605c57e0479a23c6c7642c5c1eea488c16749408","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class OpenFlowSwitchMixin(object):"},{"line_number":36,"context_line":"    \"\"\"Mixin to provide common convenient routines for an openflow switch.\"\"\""},{"line_number":37,"context_line":"    agent_uuid_stamp \u003d \u00270x0\u0027"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def set_agent_uuid_stamp(self, val):"},{"line_number":40,"context_line":"        self.agent_uuid_stamp \u003d val"}],"source_content_type":"text/x-python","patch_set":58,"id":"fa1b9901_d650c7d6","line":37,"in_reply_to":"fa1b9901_101b7574","updated":"2015-08-25 11:42:08.000000000","message":"i wonder how this has got here at all. It should belong to different class.\n\nIt\u0027s a pity I\u0027ve missed this obvious code design issue.","commit_id":"73673beacd75a2d9f51f15b284f1b458d32e992e"}],"neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":893,"context_line":"                self.conf.OVS.int_peer_patch_port,"},{"line_number":894,"context_line":"                self.conf.OVS.tun_peer_patch_port)"},{"line_number":895,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":896,"context_line":"        except Exception:"},{"line_number":897,"context_line":"            LOG.exception(_LE(\"adding int ofport failed\"))"},{"line_number":898,"context_line":"        try:"},{"line_number":899,"context_line":"            self.patch_int_ofport \u003d self.tun_br.add_patch_port("}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_28af132b","line":896,"updated":"2015-07-02 13:42:22.000000000","message":"same idea here, check if the port exists first. This method is executed only once at startup, checking for existence won\u0027t affect the performance much","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ee9386cb5a202d13d70aa9e198a294f8bbf40133","unresolved":false,"context_lines":[{"line_number":893,"context_line":"                self.conf.OVS.int_peer_patch_port,"},{"line_number":894,"context_line":"                self.conf.OVS.tun_peer_patch_port)"},{"line_number":895,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":896,"context_line":"        except Exception:"},{"line_number":897,"context_line":"            LOG.exception(_LE(\"adding int ofport failed\"))"},{"line_number":898,"context_line":"        try:"},{"line_number":899,"context_line":"            self.patch_int_ofport \u003d self.tun_br.add_patch_port("}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_e136b402","line":896,"in_reply_to":"ba3cc151_28af132b","updated":"2015-07-14 11:47:50.000000000","message":"Done","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"dcc9e5953a2bf72b1ed0862d77e0e75aaa90a882","unresolved":false,"context_lines":[{"line_number":893,"context_line":"                self.conf.OVS.int_peer_patch_port,"},{"line_number":894,"context_line":"                self.conf.OVS.tun_peer_patch_port)"},{"line_number":895,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":896,"context_line":"        except Exception:"},{"line_number":897,"context_line":"            LOG.exception(_LE(\"adding int ofport failed\"))"},{"line_number":898,"context_line":"        try:"},{"line_number":899,"context_line":"            self.patch_int_ofport \u003d self.tun_br.add_patch_port("}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_3540ad06","line":896,"in_reply_to":"ba3cc151_28af132b","updated":"2015-07-02 21:56:53.000000000","message":"honestly i don\u0027t know why adding exception handling here at all.","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":900,"context_line":"                self.conf.OVS.tun_peer_patch_port,"},{"line_number":901,"context_line":"                self.conf.OVS.int_peer_patch_port)"},{"line_number":902,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":903,"context_line":"        except Exception:"},{"line_number":904,"context_line":"            LOG.exception(_LE(\"adding tun ofport failed\"))"},{"line_number":905,"context_line":"        if ovs_lib.INVALID_OFPORT in (self.patch_tun_ofport,"},{"line_number":906,"context_line":"                                      self.patch_int_ofport):"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_88665f28","line":903,"updated":"2015-07-02 13:42:22.000000000","message":"ditto","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ee9386cb5a202d13d70aa9e198a294f8bbf40133","unresolved":false,"context_lines":[{"line_number":900,"context_line":"                self.conf.OVS.tun_peer_patch_port,"},{"line_number":901,"context_line":"                self.conf.OVS.int_peer_patch_port)"},{"line_number":902,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":903,"context_line":"        except Exception:"},{"line_number":904,"context_line":"            LOG.exception(_LE(\"adding tun ofport failed\"))"},{"line_number":905,"context_line":"        if ovs_lib.INVALID_OFPORT in (self.patch_tun_ofport,"},{"line_number":906,"context_line":"                                      self.patch_int_ofport):"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_a140ac57","line":903,"in_reply_to":"ba3cc151_88665f28","updated":"2015-07-14 11:47:50.000000000","message":"Done","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":1421,"context_line":"                                                    tun_name,"},{"line_number":1422,"context_line":"                                                    tunnel[\u0027ip_address\u0027],"},{"line_number":1423,"context_line":"                                                    tunnel_type)"},{"line_number":1424,"context_line":"            self.cleanup_stale_flows(self.tun_br, ovs_restarted)"},{"line_number":1425,"context_line":"        except Exception as e:"},{"line_number":1426,"context_line":"            LOG.debug(\"Unable to sync tunnel IP %(local_ip)s: %(e)s\","},{"line_number":1427,"context_line":"                      {\u0027local_ip\u0027: self.local_ip, \u0027e\u0027: e})"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_8e92e74a","line":1424,"updated":"2015-07-02 13:42:22.000000000","message":"I think this call should be outside of tunnel_sync in the rpc_loop","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"dcc9e5953a2bf72b1ed0862d77e0e75aaa90a882","unresolved":false,"context_lines":[{"line_number":1421,"context_line":"                                                    tun_name,"},{"line_number":1422,"context_line":"                                                    tunnel[\u0027ip_address\u0027],"},{"line_number":1423,"context_line":"                                                    tunnel_type)"},{"line_number":1424,"context_line":"            self.cleanup_stale_flows(self.tun_br, ovs_restarted)"},{"line_number":1425,"context_line":"        except Exception as e:"},{"line_number":1426,"context_line":"            LOG.debug(\"Unable to sync tunnel IP %(local_ip)s: %(e)s\","},{"line_number":1427,"context_line":"                      {\u0027local_ip\u0027: self.local_ip, \u0027e\u0027: e})"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_154a4926","line":1424,"in_reply_to":"ba3cc151_8e92e74a","updated":"2015-07-02 21:56:53.000000000","message":"Why? It seems logical that tunnel_sync takes care of all flows that are related to br-tun","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":1442,"context_line":"        # Check for the canary flow"},{"line_number":1443,"context_line":"        status \u003d self.int_br.check_canary_table()"},{"line_number":1444,"context_line":"        if status \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1445,"context_line":"            self.agent_uuid_stamp \u003d uuid.uuid4().int \u0026 UINT64_BITMASK"},{"line_number":1446,"context_line":"            LOG.warn(_LW(\"OVS is restarted. OVSNeutronAgent will reset \""},{"line_number":1447,"context_line":"                         \"bridges and recover ports.\"))"},{"line_number":1448,"context_line":"        elif status \u003d\u003d constants.OVS_DEAD:"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_6b70b5a4","line":1445,"updated":"2015-07-02 13:42:22.000000000","message":"Why are you changing the agent_uuid_stamp here? If OVS was restarted all the flows are gone but the agent can keep using the same uuid, right?","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ee9386cb5a202d13d70aa9e198a294f8bbf40133","unresolved":false,"context_lines":[{"line_number":1442,"context_line":"        # Check for the canary flow"},{"line_number":1443,"context_line":"        status \u003d self.int_br.check_canary_table()"},{"line_number":1444,"context_line":"        if status \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1445,"context_line":"            self.agent_uuid_stamp \u003d uuid.uuid4().int \u0026 UINT64_BITMASK"},{"line_number":1446,"context_line":"            LOG.warn(_LW(\"OVS is restarted. OVSNeutronAgent will reset \""},{"line_number":1447,"context_line":"                         \"bridges and recover ports.\"))"},{"line_number":1448,"context_line":"        elif status \u003d\u003d constants.OVS_DEAD:"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a41bdd9_41cf607f","line":1445,"in_reply_to":"ba3cc151_6b70b5a4","updated":"2015-07-14 11:47:50.000000000","message":"Remove this from here","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":1468,"context_line":"                       \u0027elapsed\u0027: elapsed})"},{"line_number":1469,"context_line":"        self.iter_num \u003d self.iter_num + 1"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def cleanup_stale_flows(self, bridge, ovs_restarted):"},{"line_number":1472,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted:"},{"line_number":1473,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1474,"context_line":"            flows \u003d bridge.dump_flows()"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_9150c60c","line":1471,"updated":"2015-07-02 13:42:22.000000000","message":"You can remove the bridge parameter and do\n\nbridges \u003d [self.int_br]\nif self.enable_tunneling:\n    bridges.append(self.tun_br)\nfor bridge in bridges:\n\n[rest of the code]\n\nIf you do that you can then call cleanup_stale_flows only once at line 1585","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"dcc9e5953a2bf72b1ed0862d77e0e75aaa90a882","unresolved":false,"context_lines":[{"line_number":1468,"context_line":"                       \u0027elapsed\u0027: elapsed})"},{"line_number":1469,"context_line":"        self.iter_num \u003d self.iter_num + 1"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def cleanup_stale_flows(self, bridge, ovs_restarted):"},{"line_number":1472,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted:"},{"line_number":1473,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1474,"context_line":"            flows \u003d bridge.dump_flows()"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_956419b9","line":1471,"in_reply_to":"ba3cc151_9150c60c","updated":"2015-07-02 21:56:53.000000000","message":"aha, i get your point. that\u0027s an option, thanks.","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":1469,"context_line":"        self.iter_num \u003d self.iter_num + 1"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def cleanup_stale_flows(self, bridge, ovs_restarted):"},{"line_number":1472,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted:"},{"line_number":1473,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1474,"context_line":"            flows \u003d bridge.dump_flows()"},{"line_number":1475,"context_line":"            for flow in flows:"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_0ec817a5","line":1472,"updated":"2015-07-02 13:42:22.000000000","message":"ovs_restarted should not be here. When OVS restarts all the flows are gone, right?","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"dcc9e5953a2bf72b1ed0862d77e0e75aaa90a882","unresolved":false,"context_lines":[{"line_number":1469,"context_line":"        self.iter_num \u003d self.iter_num + 1"},{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def cleanup_stale_flows(self, bridge, ovs_restarted):"},{"line_number":1472,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted:"},{"line_number":1473,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1474,"context_line":"            flows \u003d bridge.dump_flows()"},{"line_number":1475,"context_line":"            for flow in flows:"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_350e6de5","line":1472,"in_reply_to":"ba3cc151_0ec817a5","updated":"2015-07-02 21:56:53.000000000","message":"it just should not be here, right.","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"0b898d9800f9334bf516999e0d3db8ae10b00bc4","unresolved":false,"context_lines":[{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def cleanup_stale_flows(self, bridge, ovs_restarted):"},{"line_number":1472,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted:"},{"line_number":1473,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1474,"context_line":"            flows \u003d bridge.dump_flows()"},{"line_number":1475,"context_line":"            for flow in flows:"},{"line_number":1476,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(timestamp)s\","}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_31677aea","line":1473,"updated":"2015-07-02 13:42:22.000000000","message":"should not be logged as error...","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"dcc9e5953a2bf72b1ed0862d77e0e75aaa90a882","unresolved":false,"context_lines":[{"line_number":1470,"context_line":""},{"line_number":1471,"context_line":"    def cleanup_stale_flows(self, bridge, ovs_restarted):"},{"line_number":1472,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted:"},{"line_number":1473,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1474,"context_line":"            flows \u003d bridge.dump_flows()"},{"line_number":1475,"context_line":"            for flow in flows:"},{"line_number":1476,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(timestamp)s\","}],"source_content_type":"text/x-python","patch_set":22,"id":"ba3cc151_15f809c2","line":1473,"in_reply_to":"ba3cc151_31677aea","updated":"2015-07-02 21:56:53.000000000","message":"Done","commit_id":"49d36028fa81941222165f016a77bbe8c17644df"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"0a3e40bd65c16e0b1457c5225688d1e818baa7df","unresolved":false,"context_lines":[{"line_number":898,"context_line":"                self.conf.OVS.tun_peer_patch_port)"},{"line_number":899,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":900,"context_line":"        except Exception:"},{"line_number":901,"context_line":"            LOG.exception(_LE(\"adding int ofport failed\"))"},{"line_number":902,"context_line":"        try:"},{"line_number":903,"context_line":"            self.patch_int_ofport \u003d self.tun_br.add_patch_port("},{"line_number":904,"context_line":"                self.conf.OVS.tun_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":23,"id":"ba3cc151_0d0b1d25","line":901,"updated":"2015-07-03 02:29:12.000000000","message":"Whether this exception should be catched? Get failed only the ovs can not access(ovsdb or something).Could you give some examples when the exception will hit? Thank you","commit_id":"c6c91ec0df68c451144a7327ab3745ca1874f2ff"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"af9f2c68e45e1daa257adb668fb26b4e13cbc41d","unresolved":false,"context_lines":[{"line_number":898,"context_line":"                self.conf.OVS.tun_peer_patch_port)"},{"line_number":899,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":900,"context_line":"        except Exception:"},{"line_number":901,"context_line":"            LOG.exception(_LE(\"adding int ofport failed\"))"},{"line_number":902,"context_line":"        try:"},{"line_number":903,"context_line":"            self.patch_int_ofport \u003d self.tun_br.add_patch_port("},{"line_number":904,"context_line":"                self.conf.OVS.tun_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":23,"id":"ba3cc151_b8fe9803","line":901,"in_reply_to":"ba3cc151_0d0b1d25","updated":"2015-07-06 17:43:08.000000000","message":"Nope. I think this should be removed. These exceptions were not caught previously. If those ports could not be created, agent is not functional and terminates.","commit_id":"c6c91ec0df68c451144a7327ab3745ca1874f2ff"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"784a510cf2a9dd46293b11c502ad58a5ca6a98ee","unresolved":false,"context_lines":[{"line_number":911,"context_line":"        if not self.tun_br.bridge_exists(\u0027br-tun\u0027):"},{"line_number":912,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":913,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":914,"context_line":"        if (not self.int_br.port_exists(self.conf.OVS.int_peer_patch_port) or"},{"line_number":915,"context_line":"                self.patch_tun_ofport \u003d\u003d ovs_lib.INVALID_OFPORT):"},{"line_number":916,"context_line":"            self.patch_tun_ofport \u003d self.int_br.add_patch_port("},{"line_number":917,"context_line":"                self.conf.OVS.int_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":30,"id":"9a41bdd9_ef9152f2","line":914,"updated":"2015-07-15 01:20:06.000000000","message":"Why do you think we need any additional checks here in comparison with how it was handled previously?\nI\u0027m not sure it should be in the scope of this patch.","commit_id":"bb7bce7e4a7d8ce59bb96cd2518ea03d6a433c02"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"5984ccc9e4a15ccb092c304ef0aba517418f03d0","unresolved":false,"context_lines":[{"line_number":911,"context_line":"        if not self.tun_br.bridge_exists(\u0027br-tun\u0027):"},{"line_number":912,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":913,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":914,"context_line":"        if (not self.int_br.port_exists(self.conf.OVS.int_peer_patch_port) or"},{"line_number":915,"context_line":"                self.patch_tun_ofport \u003d\u003d ovs_lib.INVALID_OFPORT):"},{"line_number":916,"context_line":"            self.patch_tun_ofport \u003d self.int_br.add_patch_port("},{"line_number":917,"context_line":"                self.conf.OVS.int_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":30,"id":"9a41bdd9_2d9ad86e","line":914,"in_reply_to":"9a41bdd9_ef9152f2","updated":"2015-07-15 08:00:55.000000000","message":"Without extra check I have this error http://paste.openstack.org/show/376729/ for tun_br patch port as port exists, but is invalid (for equality I add this check for both ports). Probably all checks can be removed here.","commit_id":"bb7bce7e4a7d8ce59bb96cd2518ea03d6a433c02"},{"author":{"_account_id":6849,"name":"Roman Podoliaka","email":"roman.podoliaka@gmail.com","username":"rpodolyaka"},"change_message_id":"b072acca41b8627ff92bf24f795c4f1afd7b13f3","unresolved":false,"context_lines":[{"line_number":1502,"context_line":"        for flow in flows:"},{"line_number":1503,"context_line":"            LOG.debug(\"Checking flow %s\", flow)"},{"line_number":1504,"context_line":"            if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1505,"context_line":"                fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow).group(1)"},{"line_number":1506,"context_line":"                fl_table \u003d re.search(\u0027table\u003d([0-9]*)\u0027, flow).group(1)"},{"line_number":1507,"context_line":"                if int(fl_cookie, 16) !\u003d self.agent_uuid_stamp:"},{"line_number":1508,"context_line":"                    yield flow, fl_cookie, fl_table"}],"source_content_type":"text/x-python","patch_set":31,"id":"9a41bdd9_d7240ec6","line":1505,"updated":"2015-07-15 11:14:54.000000000","message":"not a big deal, but you could compile the regular expression in advance, so that you don\u0027t have to do that again for each next flow\n\n  cookie_re \u003d re.compile(\u0027cookie\u003d([A-Za-z0-9]*\u0027)\n  ...\n  fl_cookie \u003d cookie_re.search(flow)\n  ...","commit_id":"553d72489f399c1bcf6a1678a51409658d4e0242"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a3b3177da67a0d21009f365235f9e0a3e9331596","unresolved":false,"context_lines":[{"line_number":723,"context_line":"        :param device_owner: the string indicative of owner of this port"},{"line_number":724,"context_line":"        :param ovs_restarted: indicates if this is called for an OVS restart."},{"line_number":725,"context_line":"        \u0027\u0027\u0027"},{"line_number":726,"context_line":"        lvlan \u003d (port_tags[port.port_name] if port.port_name in port_tags"},{"line_number":727,"context_line":"            else None)"},{"line_number":728,"context_line":"        if lvlan:"},{"line_number":729,"context_line":"            LOG.debug(\"Using tag %(tag)s for port %(port)s\","}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_90668228","line":726,"updated":"2015-07-15 14:44:58.000000000","message":"port_tags.get(port.port_name) is more readable","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f4d070ee3162c8a3f2a92f630b711187239ee30d","unresolved":false,"context_lines":[{"line_number":723,"context_line":"        :param device_owner: the string indicative of owner of this port"},{"line_number":724,"context_line":"        :param ovs_restarted: indicates if this is called for an OVS restart."},{"line_number":725,"context_line":"        \u0027\u0027\u0027"},{"line_number":726,"context_line":"        lvlan \u003d (port_tags[port.port_name] if port.port_name in port_tags"},{"line_number":727,"context_line":"            else None)"},{"line_number":728,"context_line":"        if lvlan:"},{"line_number":729,"context_line":"            LOG.debug(\"Using tag %(tag)s for port %(port)s\","}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_2ca4e805","line":726,"in_reply_to":"9a41bdd9_90668228","updated":"2015-07-16 00:21:22.000000000","message":"Done","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a3b3177da67a0d21009f365235f9e0a3e9331596","unresolved":false,"context_lines":[{"line_number":1502,"context_line":"        for flow in flows:"},{"line_number":1503,"context_line":"            LOG.debug(\"Checking flow %s\", flow)"},{"line_number":1504,"context_line":"            if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1505,"context_line":"                fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow).group(1)"},{"line_number":1506,"context_line":"                fl_table \u003d re.search(\u0027table\u003d([0-9]*)\u0027, flow).group(1)"},{"line_number":1507,"context_line":"                if int(fl_cookie, 16) !\u003d self.agent_uuid_stamp:"},{"line_number":1508,"context_line":"                    yield flow, fl_cookie, fl_table"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_bb05a711","line":1505,"updated":"2015-07-15 14:44:58.000000000","message":"this regex searchs an alphanumeric string but L1507 expects a hexadecimal string","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f4d070ee3162c8a3f2a92f630b711187239ee30d","unresolved":false,"context_lines":[{"line_number":1502,"context_line":"        for flow in flows:"},{"line_number":1503,"context_line":"            LOG.debug(\"Checking flow %s\", flow)"},{"line_number":1504,"context_line":"            if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1505,"context_line":"                fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow).group(1)"},{"line_number":1506,"context_line":"                fl_table \u003d re.search(\u0027table\u003d([0-9]*)\u0027, flow).group(1)"},{"line_number":1507,"context_line":"                if int(fl_cookie, 16) !\u003d self.agent_uuid_stamp:"},{"line_number":1508,"context_line":"                    yield flow, fl_cookie, fl_table"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_6ce0b0cd","line":1505,"in_reply_to":"9a41bdd9_bb05a711","updated":"2015-07-16 00:21:22.000000000","message":"Done","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a3b3177da67a0d21009f365235f9e0a3e9331596","unresolved":false,"context_lines":[{"line_number":1503,"context_line":"            LOG.debug(\"Checking flow %s\", flow)"},{"line_number":1504,"context_line":"            if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1505,"context_line":"                fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow).group(1)"},{"line_number":1506,"context_line":"                fl_table \u003d re.search(\u0027table\u003d([0-9]*)\u0027, flow).group(1)"},{"line_number":1507,"context_line":"                if int(fl_cookie, 16) !\u003d self.agent_uuid_stamp:"},{"line_number":1508,"context_line":"                    yield flow, fl_cookie, fl_table"},{"line_number":1509,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_1b3e13c1","line":1506,"updated":"2015-07-15 14:44:58.000000000","message":"move fl_table definition in if block","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f4d070ee3162c8a3f2a92f630b711187239ee30d","unresolved":false,"context_lines":[{"line_number":1503,"context_line":"            LOG.debug(\"Checking flow %s\", flow)"},{"line_number":1504,"context_line":"            if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1505,"context_line":"                fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027, flow).group(1)"},{"line_number":1506,"context_line":"                fl_table \u003d re.search(\u0027table\u003d([0-9]*)\u0027, flow).group(1)"},{"line_number":1507,"context_line":"                if int(fl_cookie, 16) !\u003d self.agent_uuid_stamp:"},{"line_number":1508,"context_line":"                    yield flow, fl_cookie, fl_table"},{"line_number":1509,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_8ce3b4d8","line":1506,"in_reply_to":"9a41bdd9_1b3e13c1","updated":"2015-07-16 00:21:22.000000000","message":"Done","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"2ec874ce2934d6a74d56541f9aa0d0633657b3ca","unresolved":false,"context_lines":[{"line_number":723,"context_line":"        :param device_owner: the string indicative of owner of this port"},{"line_number":724,"context_line":"        :param ovs_restarted: indicates if this is called for an OVS restart."},{"line_number":725,"context_line":"        \u0027\u0027\u0027"},{"line_number":726,"context_line":"        lvlan \u003d port_tags.get(port.port_name)"},{"line_number":727,"context_line":"        # 0 vlan is not used, but still checking for it for consistency"},{"line_number":728,"context_line":"        if lvlan is not None:"},{"line_number":729,"context_line":"            LOG.debug(\"Using tag %(tag)s for port %(port)s\","}],"source_content_type":"text/x-python","patch_set":35,"id":"3a50d1a3_85c7e844","line":726,"updated":"2015-07-19 02:02:36.000000000","message":"We can\u0027t be sure that port tags are always preserved during restart (just won\u0027t assume that) so it\u0027s better to process those which have tags first so we\u0027ll preserve local vlan allocations as much as possible.","commit_id":"e1e9fee2604d5dde27b4993ba79600b1c9e6ea45"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6fe853307882e1b568320e56d033dcb6f4405a59","unresolved":false,"context_lines":[{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        self.agent_uuid_stamp \u003d uuid.uuid4().int \u0026 UINT64_BITMASK"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"        self.integ_br_name \u003d integ_br"},{"line_number":225,"context_line":"        self.int_br \u003d self.br_int_cls(integ_br)"},{"line_number":226,"context_line":"        self.setup_integration_br(integ_br)"},{"line_number":227,"context_line":"        # Stores port update notifications for processing in main rpc loop"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_d16f1290","line":224,"updated":"2015-07-29 13:58:58.000000000","message":"is this needed?","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8593b23249302a308ee1f7f2c03e75bafddf2efd","unresolved":false,"context_lines":[{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        self.agent_uuid_stamp \u003d uuid.uuid4().int \u0026 UINT64_BITMASK"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"        self.integ_br_name \u003d integ_br"},{"line_number":225,"context_line":"        self.int_br \u003d self.br_int_cls(integ_br)"},{"line_number":226,"context_line":"        self.setup_integration_br(integ_br)"},{"line_number":227,"context_line":"        # Stores port update notifications for processing in main rpc loop"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_c38085c2","line":224,"in_reply_to":"3a50d1a3_5deeb322","updated":"2015-07-30 03:43:19.000000000","message":"I have added this because of some unit-test expectation of this attribute to be initialized in constructor. It was a shortest path at that moment.\n\nI\u0027m not sure it\u0027s simple to remove this.","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"f852d3706e8b62dbe98822a660211a511ed7728b","unresolved":false,"context_lines":[{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        self.agent_uuid_stamp \u003d uuid.uuid4().int \u0026 UINT64_BITMASK"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":"        self.integ_br_name \u003d integ_br"},{"line_number":225,"context_line":"        self.int_br \u003d self.br_int_cls(integ_br)"},{"line_number":226,"context_line":"        self.setup_integration_br(integ_br)"},{"line_number":227,"context_line":"        # Stores port update notifications for processing in main rpc loop"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_5deeb322","line":224,"in_reply_to":"3a50d1a3_d16f1290","updated":"2015-07-29 14:31:23.000000000","message":"I\u0027ll remove this","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6fe853307882e1b568320e56d033dcb6f4405a59","unresolved":false,"context_lines":[{"line_number":873,"context_line":"        \u0027\u0027\u0027Setup the integration bridge."},{"line_number":874,"context_line":""},{"line_number":875,"context_line":"        \u0027\u0027\u0027"},{"line_number":876,"context_line":"        integ_br \u003d integ_br or self.integ_br_name"},{"line_number":877,"context_line":"        self.int_br.set_agent_uuid_stamp(self.agent_uuid_stamp)"},{"line_number":878,"context_line":"        # Ensure the integration bridge is created."},{"line_number":879,"context_line":"        # ovs_lib.OVSBridge.create() will run"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_6e565f2b","line":876,"updated":"2015-07-29 13:58:58.000000000","message":"where is integ_br used? I think you can remove the param you added at line 872","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"f852d3706e8b62dbe98822a660211a511ed7728b","unresolved":false,"context_lines":[{"line_number":873,"context_line":"        \u0027\u0027\u0027Setup the integration bridge."},{"line_number":874,"context_line":""},{"line_number":875,"context_line":"        \u0027\u0027\u0027"},{"line_number":876,"context_line":"        integ_br \u003d integ_br or self.integ_br_name"},{"line_number":877,"context_line":"        self.int_br.set_agent_uuid_stamp(self.agent_uuid_stamp)"},{"line_number":878,"context_line":"        # Ensure the integration bridge is created."},{"line_number":879,"context_line":"        # ovs_lib.OVSBridge.create() will run"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_fdf0dffe","line":876,"in_reply_to":"3a50d1a3_6e565f2b","updated":"2015-07-29 14:31:23.000000000","message":"Done","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6fe853307882e1b568320e56d033dcb6f4405a59","unresolved":false,"context_lines":[{"line_number":886,"context_line":"        self.int_br.delete_port(self.conf.OVS.int_peer_patch_port)"},{"line_number":887,"context_line":"        if self.conf.AGENT.drop_flows_on_start:"},{"line_number":888,"context_line":"            self.int_br.delete_flows()"},{"line_number":889,"context_line":"        self.int_br.setup_default_table()"},{"line_number":890,"context_line":""},{"line_number":891,"context_line":"    def setup_ancillary_bridges(self, integ_br, tun_br):"},{"line_number":892,"context_line":"        \u0027\u0027\u0027Setup ancillary bridges - for example br-ex.\u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_319d16bc","line":889,"updated":"2015-07-29 13:58:58.000000000","message":"flows are deleted in this call \"setup_default_table\" so lines 887 and 888 are useless since flows are deleted anyway","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"f852d3706e8b62dbe98822a660211a511ed7728b","unresolved":false,"context_lines":[{"line_number":886,"context_line":"        self.int_br.delete_port(self.conf.OVS.int_peer_patch_port)"},{"line_number":887,"context_line":"        if self.conf.AGENT.drop_flows_on_start:"},{"line_number":888,"context_line":"            self.int_br.delete_flows()"},{"line_number":889,"context_line":"        self.int_br.setup_default_table()"},{"line_number":890,"context_line":""},{"line_number":891,"context_line":"    def setup_ancillary_bridges(self, integ_br, tun_br):"},{"line_number":892,"context_line":"        \u0027\u0027\u0027Setup ancillary bridges - for example br-ex.\u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_c2974246","line":889,"in_reply_to":"3a50d1a3_319d16bc","updated":"2015-07-29 14:31:23.000000000","message":"I remove delete_flows() from setup_default_table, so that we can manage deletion of flows here.","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6fe853307882e1b568320e56d033dcb6f4405a59","unresolved":false,"context_lines":[{"line_number":1017,"context_line":"                                             bridge)"},{"line_number":1018,"context_line":"            phys_if_name \u003d self.get_peer_name(constants.PEER_PHYSICAL_PREFIX,"},{"line_number":1019,"context_line":"                                              bridge)"},{"line_number":1020,"context_line":"            int_type \u003d self.int_br.db_get_val(\"Interface\", int_if_name, \"type\")"},{"line_number":1021,"context_line":"            phy_type \u003d br.db_get_val(\"Interface\", phys_if_name, \"type\")"},{"line_number":1022,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1023,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_3dcf362a","line":1020,"updated":"2015-07-29 13:58:58.000000000","message":"it\u0027s not clear to me why you changed this method. As fair as I know there are only 2 ways of connecting bridges using veths or patch ports. Why do you need the check at line 1023 and line 1037 if you delete the ports in both cases?","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"f852d3706e8b62dbe98822a660211a511ed7728b","unresolved":false,"context_lines":[{"line_number":1017,"context_line":"                                             bridge)"},{"line_number":1018,"context_line":"            phys_if_name \u003d self.get_peer_name(constants.PEER_PHYSICAL_PREFIX,"},{"line_number":1019,"context_line":"                                              bridge)"},{"line_number":1020,"context_line":"            int_type \u003d self.int_br.db_get_val(\"Interface\", int_if_name, \"type\")"},{"line_number":1021,"context_line":"            phy_type \u003d br.db_get_val(\"Interface\", phys_if_name, \"type\")"},{"line_number":1022,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1023,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_e274becf","line":1020,"in_reply_to":"3a50d1a3_3dcf362a","updated":"2015-07-29 14:31:23.000000000","message":"I delete port only if conflagrations changed from patch to veth or from veth to patch. This is needed because if port is deleted anytime this change became useless as connectivity will be lost as some flows can not be saved.","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8593b23249302a308ee1f7f2c03e75bafddf2efd","unresolved":false,"context_lines":[{"line_number":1017,"context_line":"                                             bridge)"},{"line_number":1018,"context_line":"            phys_if_name \u003d self.get_peer_name(constants.PEER_PHYSICAL_PREFIX,"},{"line_number":1019,"context_line":"                                              bridge)"},{"line_number":1020,"context_line":"            int_type \u003d self.int_br.db_get_val(\"Interface\", int_if_name, \"type\")"},{"line_number":1021,"context_line":"            phy_type \u003d br.db_get_val(\"Interface\", phys_if_name, \"type\")"},{"line_number":1022,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1023,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_83527d67","line":1020,"in_reply_to":"3a50d1a3_e274becf","updated":"2015-07-30 03:43:19.000000000","message":"This change addresses the case when agent configuration changes between restarts.","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6fe853307882e1b568320e56d033dcb6f4405a59","unresolved":false,"context_lines":[{"line_number":1247,"context_line":"        \"\"\"reorders device list so tagged devices go first.\"\"\""},{"line_number":1248,"context_line":"        tagged_devs \u003d []"},{"line_number":1249,"context_line":"        # untagged or absent"},{"line_number":1250,"context_line":"        other_devs \u003d []"},{"line_number":1251,"context_line":"        for dev in dev_list:"},{"line_number":1252,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1253,"context_line":"            port \u003d vif_by_id.get(device)"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_5c879960","line":1250,"updated":"2015-07-29 13:58:58.000000000","message":"nit, if you rename it \u0027untagged_devs\u0027 you can remove the comment at line 1249","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"f852d3706e8b62dbe98822a660211a511ed7728b","unresolved":false,"context_lines":[{"line_number":1247,"context_line":"        \"\"\"reorders device list so tagged devices go first.\"\"\""},{"line_number":1248,"context_line":"        tagged_devs \u003d []"},{"line_number":1249,"context_line":"        # untagged or absent"},{"line_number":1250,"context_line":"        other_devs \u003d []"},{"line_number":1251,"context_line":"        for dev in dev_list:"},{"line_number":1252,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1253,"context_line":"            port \u003d vif_by_id.get(device)"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_dddac377","line":1250,"in_reply_to":"3a50d1a3_5c879960","updated":"2015-07-29 14:31:23.000000000","message":"Done","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8593b23249302a308ee1f7f2c03e75bafddf2efd","unresolved":false,"context_lines":[{"line_number":1247,"context_line":"        \"\"\"reorders device list so tagged devices go first.\"\"\""},{"line_number":1248,"context_line":"        tagged_devs \u003d []"},{"line_number":1249,"context_line":"        # untagged or absent"},{"line_number":1250,"context_line":"        other_devs \u003d []"},{"line_number":1251,"context_line":"        for dev in dev_list:"},{"line_number":1252,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1253,"context_line":"            port \u003d vif_by_id.get(device)"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_c3ce452d","line":1250,"in_reply_to":"3a50d1a3_dddac377","updated":"2015-07-30 03:43:19.000000000","message":"No, the thing is that we\u0027re dealing with devices, provided by rpc call, not just those retrieved from ovs.","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6fe853307882e1b568320e56d033dcb6f4405a59","unresolved":false,"context_lines":[{"line_number":1251,"context_line":"        for dev in dev_list:"},{"line_number":1252,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1253,"context_line":"            port \u003d vif_by_id.get(device)"},{"line_number":1254,"context_line":"            if not port or port.port_name not in port_tags:"},{"line_number":1255,"context_line":"                other_devs.append(dev)"},{"line_number":1256,"context_line":"                continue"},{"line_number":1257,"context_line":"            tagged_devs.append(dev)"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_176faac4","line":1254,"updated":"2015-07-29 13:58:58.000000000","message":"From what I see in the doc string of get_port_tag_dict\n\" e.g. the returned dict is of the following form::\n\n            {u\u0027int-br-eth2\u0027: [],\n             u\u0027patch-tun\u0027: [],\n             u\u0027qr-76d9e6b6-21\u0027: 1,\n             u\u0027tapce5318ff-78\u0027: 1,\n             u\u0027tape1400310-e6\u0027: 1} \"\n\nso the port will be present in the map even if no vlan is assigned. So you should check that port_tags[port.port_name] has a valid vlan","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8593b23249302a308ee1f7f2c03e75bafddf2efd","unresolved":false,"context_lines":[{"line_number":1251,"context_line":"        for dev in dev_list:"},{"line_number":1252,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1253,"context_line":"            port \u003d vif_by_id.get(device)"},{"line_number":1254,"context_line":"            if not port or port.port_name not in port_tags:"},{"line_number":1255,"context_line":"                other_devs.append(dev)"},{"line_number":1256,"context_line":"                continue"},{"line_number":1257,"context_line":"            tagged_devs.append(dev)"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_23bfe961","line":1254,"in_reply_to":"3a50d1a3_176faac4","updated":"2015-07-30 03:43:19.000000000","message":"That is actually being checked in line 728","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"9623e5b991e7237b0cc9ec15f37d1ba842e19c86","unresolved":false,"context_lines":[{"line_number":1251,"context_line":"        for dev in dev_list:"},{"line_number":1252,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1253,"context_line":"            port \u003d vif_by_id.get(device)"},{"line_number":1254,"context_line":"            if not port or port.port_name not in port_tags:"},{"line_number":1255,"context_line":"                other_devs.append(dev)"},{"line_number":1256,"context_line":"                continue"},{"line_number":1257,"context_line":"            tagged_devs.append(dev)"}],"source_content_type":"text/x-python","patch_set":39,"id":"1a4dcd0f_b5952b41","line":1254,"in_reply_to":"3a50d1a3_23bfe961","updated":"2015-08-10 16:07:44.000000000","message":"yes but that check has nothing to do with the ordering. My understanding is that here you want to separate devices that have a tag so that they can be processed first.\nSince the condition at line 1254 is false for all the ports that exists even if they don\u0027t have a tag (since they are present anyway in the port_tags maps) , they are incorrectly added to tagged_devs at line 1257.","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6fe853307882e1b568320e56d033dcb6f4405a59","unresolved":false,"context_lines":[{"line_number":1276,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1277,"context_line":""},{"line_number":1278,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1279,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1280,"context_line":""},{"line_number":1281,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"},{"line_number":1282,"context_line":"                                                  vif_by_id,"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_b1b28692","line":1279,"updated":"2015-07-29 13:58:58.000000000","message":"this is going to be executed every time a device is added. It would be great to do that only at startup","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8593b23249302a308ee1f7f2c03e75bafddf2efd","unresolved":false,"context_lines":[{"line_number":1276,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1277,"context_line":""},{"line_number":1278,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1279,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1280,"context_line":""},{"line_number":1281,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"},{"line_number":1282,"context_line":"                                                  vif_by_id,"}],"source_content_type":"text/x-python","patch_set":39,"id":"3a50d1a3_43a8f520","line":1279,"in_reply_to":"3a50d1a3_b1b28692","updated":"2015-07-30 03:43:19.000000000","message":"This makes sense. But I probably would move this improvement out of scope of initial patch.","commit_id":"db50df463e308f48eb51e94b35ef9cffcd04bc62"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"21ebd87061044fa61047227e4f1bf72cdc48a4a1","unresolved":false,"context_lines":[{"line_number":1022,"context_line":"            int_type \u003d self.int_br.db_get_val(\"Interface\", int_if_name, \"type\")"},{"line_number":1023,"context_line":"            phy_type \u003d br.db_get_val(\"Interface\", phys_if_name, \"type\")"},{"line_number":1024,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1025,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"},{"line_number":1026,"context_line":"                    self.int_br.delete_port(int_if_name)"},{"line_number":1027,"context_line":"                    br.delete_port(phys_if_name)"},{"line_number":1028,"context_line":"                if ip_lib.device_exists(int_if_name):"}],"source_content_type":"text/x-python","patch_set":45,"id":"1a4dcd0f_95cb9472","line":1025,"updated":"2015-08-03 15:27:27.000000000","message":"can you add a comment here and on L1039 that these need to be deleted because the interface types don\u0027t match the configuration value?","commit_id":"8dcc3cd5dcc1fe467873ae84080bd88277969c7b"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"f2c9f2a3ef86614230ff72415b4806b63204c999","unresolved":false,"context_lines":[{"line_number":1022,"context_line":"            int_type \u003d self.int_br.db_get_val(\"Interface\", int_if_name, \"type\")"},{"line_number":1023,"context_line":"            phy_type \u003d br.db_get_val(\"Interface\", phys_if_name, \"type\")"},{"line_number":1024,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1025,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"},{"line_number":1026,"context_line":"                    self.int_br.delete_port(int_if_name)"},{"line_number":1027,"context_line":"                    br.delete_port(phys_if_name)"},{"line_number":1028,"context_line":"                if ip_lib.device_exists(int_if_name):"}],"source_content_type":"text/x-python","patch_set":45,"id":"1a4dcd0f_8ecfd0af","line":1025,"in_reply_to":"1a4dcd0f_95cb9472","updated":"2015-08-04 13:36:08.000000000","message":"Done","commit_id":"8dcc3cd5dcc1fe467873ae84080bd88277969c7b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"80ca1cdf6a68fdc27b52697a3ecc082dbe73a0f5","unresolved":false,"context_lines":[{"line_number":1588,"context_line":"                    # deleting a stale flow should be rare."},{"line_number":1589,"context_line":"                    # it might deserve some attention"},{"line_number":1590,"context_line":"                    LOG.warning(_LW(\"Deleted flow %s\"), flow)"},{"line_number":1591,"context_line":"                    bridge.delete_flows(cookie\u003dcookie + \u0027/-1\u0027, table\u003dtable)"},{"line_number":1592,"context_line":""},{"line_number":1593,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"},{"line_number":1594,"context_line":"        if not polling_manager:"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_6ae439e0","line":1591,"updated":"2015-08-06 11:08:37.000000000","message":"can you move these flow-parsing code into\nopenflow/ovs_ofctl/ so that it can be implemented\nfor other of_interface variants?","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"b65111728ec9d5d5fac9cf74f7cd2612a6a911a0","unresolved":false,"context_lines":[{"line_number":1588,"context_line":"                    # deleting a stale flow should be rare."},{"line_number":1589,"context_line":"                    # it might deserve some attention"},{"line_number":1590,"context_line":"                    LOG.warning(_LW(\"Deleted flow %s\"), flow)"},{"line_number":1591,"context_line":"                    bridge.delete_flows(cookie\u003dcookie + \u0027/-1\u0027, table\u003dtable)"},{"line_number":1592,"context_line":""},{"line_number":1593,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"},{"line_number":1594,"context_line":"        if not polling_manager:"}],"source_content_type":"text/x-python","patch_set":48,"id":"1a4dcd0f_9049b4b9","line":1591,"in_reply_to":"1a4dcd0f_6ae439e0","updated":"2015-08-06 13:20:22.000000000","message":"I move _filter_flows in openflow/ovs_ofctl/ofswitch.py, but I don\u0027t feel that cleanup_stale_flows should be moved there.","commit_id":"dfdf21e8152ec101916bc342b1b8cc2c02274954"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"94a416f2dc7fbfea423327e565b963e26e27344c","unresolved":false,"context_lines":[{"line_number":733,"context_line":"                       \u0027port\u0027: port.port_name})"},{"line_number":734,"context_line":"        else:"},{"line_number":735,"context_line":"            LOG.debug(\"No tag for port %(port)s, allocating new vlan\","},{"line_number":736,"context_line":"                      port.port_name)"},{"line_number":737,"context_line":"        if net_uuid not in self.local_vlan_map or ovs_restarted:"},{"line_number":738,"context_line":"            self.provision_local_vlan(net_uuid, network_type,"},{"line_number":739,"context_line":"                                      physical_network, segmentation_id, lvlan)"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_d62e0f42","line":736,"updated":"2015-08-07 16:10:43.000000000","message":"This should be a dict according to the format, {\u0027port\u0027: port.port_name}","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"75b553a9bb8c105723294d4376316d0f68efb921","unresolved":false,"context_lines":[{"line_number":733,"context_line":"                       \u0027port\u0027: port.port_name})"},{"line_number":734,"context_line":"        else:"},{"line_number":735,"context_line":"            LOG.debug(\"No tag for port %(port)s, allocating new vlan\","},{"line_number":736,"context_line":"                      port.port_name)"},{"line_number":737,"context_line":"        if net_uuid not in self.local_vlan_map or ovs_restarted:"},{"line_number":738,"context_line":"            self.provision_local_vlan(net_uuid, network_type,"},{"line_number":739,"context_line":"                                      physical_network, segmentation_id, lvlan)"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_4ee87ae2","line":736,"in_reply_to":"1a4dcd0f_addc3f75","updated":"2015-08-12 09:42:44.000000000","message":"Done","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"a0a6974058e77661c55fd92cb684145e097fd950","unresolved":false,"context_lines":[{"line_number":733,"context_line":"                       \u0027port\u0027: port.port_name})"},{"line_number":734,"context_line":"        else:"},{"line_number":735,"context_line":"            LOG.debug(\"No tag for port %(port)s, allocating new vlan\","},{"line_number":736,"context_line":"                      port.port_name)"},{"line_number":737,"context_line":"        if net_uuid not in self.local_vlan_map or ovs_restarted:"},{"line_number":738,"context_line":"            self.provision_local_vlan(net_uuid, network_type,"},{"line_number":739,"context_line":"                                      physical_network, segmentation_id, lvlan)"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_addc3f75","line":736,"in_reply_to":"1a4dcd0f_d62e0f42","updated":"2015-08-08 02:57:58.000000000","message":"or better yet, simply use %s.","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"94a416f2dc7fbfea423327e565b963e26e27344c","unresolved":false,"context_lines":[{"line_number":1024,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1025,"context_line":"                # Drop ports if the interface types doesn\u0027t match the"},{"line_number":1026,"context_line":"                # configuration value"},{"line_number":1027,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"},{"line_number":1028,"context_line":"                    self.int_br.delete_port(int_if_name)"},{"line_number":1029,"context_line":"                    br.delete_port(phys_if_name)"},{"line_number":1030,"context_line":"                if ip_lib.device_exists(int_if_name):"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_3643b3b0","line":1027,"updated":"2015-08-07 16:10:43.000000000","message":"The comment implies this should be an \u0027or\u0027, can you get in a state where one is \u0027veth\u0027 and the other \u0027patch\u0027 ?  Otherwise this can check for inequality and moved above (and L1043 etc removed).","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"75b553a9bb8c105723294d4376316d0f68efb921","unresolved":false,"context_lines":[{"line_number":1024,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1025,"context_line":"                # Drop ports if the interface types doesn\u0027t match the"},{"line_number":1026,"context_line":"                # configuration value"},{"line_number":1027,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"},{"line_number":1028,"context_line":"                    self.int_br.delete_port(int_if_name)"},{"line_number":1029,"context_line":"                    br.delete_port(phys_if_name)"},{"line_number":1030,"context_line":"                if ip_lib.device_exists(int_if_name):"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_8e7f62de","line":1027,"in_reply_to":"1a4dcd0f_1f475e78","updated":"2015-08-12 09:42:44.000000000","message":"Done","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"aea106d9b8a6124f27162ab99387571c99eeb17c","unresolved":false,"context_lines":[{"line_number":1024,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1025,"context_line":"                # Drop ports if the interface types doesn\u0027t match the"},{"line_number":1026,"context_line":"                # configuration value"},{"line_number":1027,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"},{"line_number":1028,"context_line":"                    self.int_br.delete_port(int_if_name)"},{"line_number":1029,"context_line":"                    br.delete_port(phys_if_name)"},{"line_number":1030,"context_line":"                if ip_lib.device_exists(int_if_name):"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_7a09e730","line":1027,"in_reply_to":"1a4dcd0f_3643b3b0","updated":"2015-08-10 09:40:50.000000000","message":"This change addresses the case when agent configuration changes between restarts, so I don\u0027t think it is possible to have one \u0027veth\u0027 and one \u0027patch\u0027 port. We need to drop ports only in case of changed configuration to save flows.","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d5db7f5dae137a89e32e567d85e8864e2521fc6b","unresolved":false,"context_lines":[{"line_number":1024,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1025,"context_line":"                # Drop ports if the interface types doesn\u0027t match the"},{"line_number":1026,"context_line":"                # configuration value"},{"line_number":1027,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027 and phy_type \u003d\u003d \u0027patch\u0027:"},{"line_number":1028,"context_line":"                    self.int_br.delete_port(int_if_name)"},{"line_number":1029,"context_line":"                    br.delete_port(phys_if_name)"},{"line_number":1030,"context_line":"                if ip_lib.device_exists(int_if_name):"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_1f475e78","line":1027,"in_reply_to":"1a4dcd0f_7a09e730","updated":"2015-08-10 16:22:24.000000000","message":"they must be of the same type then it\u0027s probably OK to check the type of only one of them...","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d5db7f5dae137a89e32e567d85e8864e2521fc6b","unresolved":false,"context_lines":[{"line_number":1255,"context_line":"        for dev in dev_list:"},{"line_number":1256,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1257,"context_line":"            port \u003d vif_by_id.get(device)"},{"line_number":1258,"context_line":"            if not port or port.port_name not in port_tags:"},{"line_number":1259,"context_line":"                other_devs.append(dev)"},{"line_number":1260,"context_line":"                continue"},{"line_number":1261,"context_line":"            tagged_devs.append(dev)"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_55b947ca","line":1258,"updated":"2015-08-10 16:22:24.000000000","message":"please see my comments in PS 39","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"75b553a9bb8c105723294d4376316d0f68efb921","unresolved":false,"context_lines":[{"line_number":1255,"context_line":"        for dev in dev_list:"},{"line_number":1256,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1257,"context_line":"            port \u003d vif_by_id.get(device)"},{"line_number":1258,"context_line":"            if not port or port.port_name not in port_tags:"},{"line_number":1259,"context_line":"                other_devs.append(dev)"},{"line_number":1260,"context_line":"                continue"},{"line_number":1261,"context_line":"            tagged_devs.append(dev)"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_2e52ce35","line":1258,"in_reply_to":"1a4dcd0f_55b947ca","updated":"2015-08-12 09:42:44.000000000","message":"Thanks for clarification! Correct in the next patch set.","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"94a416f2dc7fbfea423327e565b963e26e27344c","unresolved":false,"context_lines":[{"line_number":1572,"context_line":"                for flow, cookie, table in bridge._filter_flows(flows):"},{"line_number":1573,"context_line":"                    # deleting a stale flow should be rare."},{"line_number":1574,"context_line":"                    # it might deserve some attention"},{"line_number":1575,"context_line":"                    LOG.warning(_LW(\"Deleted flow %s\"), flow)"},{"line_number":1576,"context_line":"                    bridge.delete_flows(cookie\u003dcookie + \u0027/-1\u0027, table\u003dtable)"},{"line_number":1577,"context_line":""},{"line_number":1578,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_5b7a28be","line":1575,"updated":"2015-08-07 16:10:43.000000000","message":"s/Deleted/Deleting as it hasn\u0027t been done yet, or move down two lines.  And I\u0027m sure it\u0027s already been discussed as to why this isn\u0027t an info message instead of a warning...","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"aea106d9b8a6124f27162ab99387571c99eeb17c","unresolved":false,"context_lines":[{"line_number":1572,"context_line":"                for flow, cookie, table in bridge._filter_flows(flows):"},{"line_number":1573,"context_line":"                    # deleting a stale flow should be rare."},{"line_number":1574,"context_line":"                    # it might deserve some attention"},{"line_number":1575,"context_line":"                    LOG.warning(_LW(\"Deleted flow %s\"), flow)"},{"line_number":1576,"context_line":"                    bridge.delete_flows(cookie\u003dcookie + \u0027/-1\u0027, table\u003dtable)"},{"line_number":1577,"context_line":""},{"line_number":1578,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_856d78ce","line":1575,"in_reply_to":"1a4dcd0f_5b7a28be","updated":"2015-08-10 09:40:50.000000000","message":"This is warning because it is expected that flows won\u0027t be deleted. Can be changed for debug, it is not such a big deal.","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"75b553a9bb8c105723294d4376316d0f68efb921","unresolved":false,"context_lines":[{"line_number":1572,"context_line":"                for flow, cookie, table in bridge._filter_flows(flows):"},{"line_number":1573,"context_line":"                    # deleting a stale flow should be rare."},{"line_number":1574,"context_line":"                    # it might deserve some attention"},{"line_number":1575,"context_line":"                    LOG.warning(_LW(\"Deleted flow %s\"), flow)"},{"line_number":1576,"context_line":"                    bridge.delete_flows(cookie\u003dcookie + \u0027/-1\u0027, table\u003dtable)"},{"line_number":1577,"context_line":""},{"line_number":1578,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_113133ed","line":1575,"in_reply_to":"1a4dcd0f_856d78ce","updated":"2015-08-12 09:42:44.000000000","message":"The comments above log message points that it should be warning.","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"86115ddf3465d4244a444f74d8a934315bd9e897","unresolved":false,"context_lines":[{"line_number":1255,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1256,"context_line":"            port \u003d vif_by_id.get(device)"},{"line_number":1257,"context_line":"            if (not port or port.port_name not in port_tags or"},{"line_number":1258,"context_line":"                    not port_tags.get(port.port_name)):"},{"line_number":1259,"context_line":"                other_devs.append(dev)"},{"line_number":1260,"context_line":"                continue"},{"line_number":1261,"context_line":"            tagged_devs.append(dev)"}],"source_content_type":"text/x-python","patch_set":50,"id":"1a4dcd0f_72b73e85","line":1258,"updated":"2015-08-12 16:07:59.000000000","message":"I think we need to check for None and -1 here.\nDead ports with tag -1 are untagged too","commit_id":"0675292fa64ed6e03e9d05b73f81242813601d20"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"c92e7b11c3c5c6d71eca941c095420166c11db29","unresolved":false,"context_lines":[{"line_number":1255,"context_line":"            device \u003d dev[\u0027device\u0027]"},{"line_number":1256,"context_line":"            port \u003d vif_by_id.get(device)"},{"line_number":1257,"context_line":"            if (not port or port.port_name not in port_tags or"},{"line_number":1258,"context_line":"                    not port_tags.get(port.port_name)):"},{"line_number":1259,"context_line":"                other_devs.append(dev)"},{"line_number":1260,"context_line":"                continue"},{"line_number":1261,"context_line":"            tagged_devs.append(dev)"}],"source_content_type":"text/x-python","patch_set":50,"id":"1a4dcd0f_5d56d3ce","line":1258,"in_reply_to":"1a4dcd0f_72b73e85","updated":"2015-08-12 16:44:43.000000000","message":"Thanks! Will correct this!","commit_id":"0675292fa64ed6e03e9d05b73f81242813601d20"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c72903de48a4fd18e67f714d3be5e25278c23a23","unresolved":false,"context_lines":[{"line_number":217,"context_line":"        # Keep track of int_br\u0027s device count for use by _report_state()"},{"line_number":218,"context_line":"        self.int_br_device_count \u003d 0"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"        self.agent_uuid_stamp \u003d uuid.uuid4().int \u0026 UINT64_BITMASK"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        self.int_br \u003d self.br_int_cls(integ_br)"},{"line_number":223,"context_line":"        self.setup_integration_br()"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_47ccaa34","line":220,"updated":"2015-08-13 05:18:16.000000000","message":"as it isn\u0027t a uuid, just agent_stamp is a more appropriate name, i guess.","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"cfe36d2be3780f7a18bf2d50e4b35868eb5ad749","unresolved":false,"context_lines":[{"line_number":217,"context_line":"        # Keep track of int_br\u0027s device count for use by _report_state()"},{"line_number":218,"context_line":"        self.int_br_device_count \u003d 0"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"        self.agent_uuid_stamp \u003d uuid.uuid4().int \u0026 UINT64_BITMASK"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        self.int_br \u003d self.br_int_cls(integ_br)"},{"line_number":223,"context_line":"        self.setup_integration_br()"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_df9a7f6e","line":220,"in_reply_to":"1a4dcd0f_412d72fc","updated":"2015-08-14 07:19:53.000000000","message":"i don\u0027t insist on this.","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"55177193f499f8114b65fd73712b1e57b935d1c3","unresolved":false,"context_lines":[{"line_number":217,"context_line":"        # Keep track of int_br\u0027s device count for use by _report_state()"},{"line_number":218,"context_line":"        self.int_br_device_count \u003d 0"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"        self.agent_uuid_stamp \u003d uuid.uuid4().int \u0026 UINT64_BITMASK"},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"        self.int_br \u003d self.br_int_cls(integ_br)"},{"line_number":223,"context_line":"        self.setup_integration_br()"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_412d72fc","line":220,"in_reply_to":"1a4dcd0f_47ccaa34","updated":"2015-08-13 07:57:51.000000000","message":"If you are not insist on having agent_stamp, I prefer to leave agent_uuid_stamp.","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c72903de48a4fd18e67f714d3be5e25278c23a23","unresolved":false,"context_lines":[{"line_number":928,"context_line":""},{"line_number":929,"context_line":"        if not self.tun_br.bridge_exists(\u0027br-tun\u0027):"},{"line_number":930,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":931,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":932,"context_line":"        if (not self.int_br.port_exists(self.conf.OVS.int_peer_patch_port) or"},{"line_number":933,"context_line":"                self.patch_tun_ofport \u003d\u003d ovs_lib.INVALID_OFPORT):"},{"line_number":934,"context_line":"            self.patch_tun_ofport \u003d self.int_br.add_patch_port("}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_4a790f92","line":931,"updated":"2015-08-13 05:18:16.000000000","message":"please call setup_controllers unconditionally.","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"55177193f499f8114b65fd73712b1e57b935d1c3","unresolved":false,"context_lines":[{"line_number":928,"context_line":""},{"line_number":929,"context_line":"        if not self.tun_br.bridge_exists(\u0027br-tun\u0027):"},{"line_number":930,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":931,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":932,"context_line":"        if (not self.int_br.port_exists(self.conf.OVS.int_peer_patch_port) or"},{"line_number":933,"context_line":"                self.patch_tun_ofport \u003d\u003d ovs_lib.INVALID_OFPORT):"},{"line_number":934,"context_line":"            self.patch_tun_ofport \u003d self.int_br.add_patch_port("}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_01076a18","line":931,"in_reply_to":"1a4dcd0f_4a790f92","updated":"2015-08-13 07:57:51.000000000","message":"Done","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"65421e33e022aa032535b90ad15c33ebbc19711e","unresolved":false,"context_lines":[{"line_number":1566,"context_line":"        return port_stats"},{"line_number":1567,"context_line":""},{"line_number":1568,"context_line":"    def cleanup_stale_flows(self):"},{"line_number":1569,"context_line":"        if self.iter_num \u003d\u003d 0:"},{"line_number":1570,"context_line":"            bridges \u003d [self.int_br]"},{"line_number":1571,"context_line":"            if self.enable_tunneling:"},{"line_number":1572,"context_line":"                bridges.append(self.tun_br)"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_96f5fe51","line":1569,"updated":"2015-08-13 07:34:19.000000000","message":"this test seems a little unreliable is case\nthere have been some timeouts (OVS_DEAD)","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"55177193f499f8114b65fd73712b1e57b935d1c3","unresolved":false,"context_lines":[{"line_number":1566,"context_line":"        return port_stats"},{"line_number":1567,"context_line":""},{"line_number":1568,"context_line":"    def cleanup_stale_flows(self):"},{"line_number":1569,"context_line":"        if self.iter_num \u003d\u003d 0:"},{"line_number":1570,"context_line":"            bridges \u003d [self.int_br]"},{"line_number":1571,"context_line":"            if self.enable_tunneling:"},{"line_number":1572,"context_line":"                bridges.append(self.tun_br)"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_4114929e","line":1569,"in_reply_to":"1a4dcd0f_96f5fe51","updated":"2015-08-13 07:57:51.000000000","message":"During testing I didn\u0027t find any problems with that. What do you suggest here?","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"c72903de48a4fd18e67f714d3be5e25278c23a23","unresolved":false,"context_lines":[{"line_number":1672,"context_line":"                        # If treat devices fails - must resync with plugin"},{"line_number":1673,"context_line":"                        sync \u003d self.process_network_ports(port_info,"},{"line_number":1674,"context_line":"                                                          ovs_restarted)"},{"line_number":1675,"context_line":"                        self.cleanup_stale_flows()"},{"line_number":1676,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1677,"context_line":"                                  \"ports processed. Elapsed:%(elapsed).3f\","},{"line_number":1678,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_0acb07a5","line":1675,"updated":"2015-08-13 05:18:16.000000000","message":"this is necessary only for the first iteration, right?\nit\u0027s better to avoid scanning the whole flow table\nrepeatedly, as it can be expensive.","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"65421e33e022aa032535b90ad15c33ebbc19711e","unresolved":false,"context_lines":[{"line_number":1672,"context_line":"                        # If treat devices fails - must resync with plugin"},{"line_number":1673,"context_line":"                        sync \u003d self.process_network_ports(port_info,"},{"line_number":1674,"context_line":"                                                          ovs_restarted)"},{"line_number":1675,"context_line":"                        self.cleanup_stale_flows()"},{"line_number":1676,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1677,"context_line":"                                  \"ports processed. Elapsed:%(elapsed).3f\","},{"line_number":1678,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"}],"source_content_type":"text/x-python","patch_set":51,"id":"1a4dcd0f_b6fa7a73","line":1675,"in_reply_to":"1a4dcd0f_0acb07a5","updated":"2015-08-13 07:34:19.000000000","message":"i was missing iter_num check in cleanup_stale_flows.\nplease ignore this comment.  sorry for noise.","commit_id":"cff0c1a6afb5efb1812d00b673a9c41c8c350523"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a33e9d7056946495def1dfeaf875738778d5aa37","unresolved":false,"context_lines":[{"line_number":1022,"context_line":"            int_type \u003d self.int_br.db_get_val(\"Interface\", int_if_name, \"type\")"},{"line_number":1023,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1024,"context_line":"                # Drop ports if the interface types doesn\u0027t match the"},{"line_number":1025,"context_line":"                # configuration value."},{"line_number":1026,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027:"},{"line_number":1027,"context_line":"                    self.int_br.delete_port(int_if_name)"},{"line_number":1028,"context_line":"                    br.delete_port(phys_if_name)"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_bffa1342","line":1025,"updated":"2015-08-14 07:31:55.000000000","message":"is this code trying to handle configuration changes?","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6fe8add7188172943aef5960bbc5b404978ab747","unresolved":false,"context_lines":[{"line_number":1022,"context_line":"            int_type \u003d self.int_br.db_get_val(\"Interface\", int_if_name, \"type\")"},{"line_number":1023,"context_line":"            if self.use_veth_interconnection:"},{"line_number":1024,"context_line":"                # Drop ports if the interface types doesn\u0027t match the"},{"line_number":1025,"context_line":"                # configuration value."},{"line_number":1026,"context_line":"                if int_type \u003d\u003d \u0027patch\u0027:"},{"line_number":1027,"context_line":"                    self.int_br.delete_port(int_if_name)"},{"line_number":1028,"context_line":"                    br.delete_port(phys_if_name)"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_aee0a3cd","line":1025,"in_reply_to":"1a4dcd0f_bffa1342","updated":"2015-08-14 09:49:01.000000000","message":"Yes, this code trying to avoid deletion ports every time to save flows.","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"a33e9d7056946495def1dfeaf875738778d5aa37","unresolved":false,"context_lines":[{"line_number":1563,"context_line":"        return port_stats"},{"line_number":1564,"context_line":""},{"line_number":1565,"context_line":"    def cleanup_stale_flows(self):"},{"line_number":1566,"context_line":"        if self.iter_num \u003d\u003d 0:"},{"line_number":1567,"context_line":"            bridges \u003d [self.int_br]"},{"line_number":1568,"context_line":"            if self.enable_tunneling:"},{"line_number":1569,"context_line":"                bridges.append(self.tun_br)"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_3fae0382","line":1566,"updated":"2015-08-14 07:31:55.000000000","message":"how about having a dedicated \"stale_flows_cleared\" boolean?\nin that way the interaction with OVS_DEAD is clearer.","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"6fe8add7188172943aef5960bbc5b404978ab747","unresolved":false,"context_lines":[{"line_number":1563,"context_line":"        return port_stats"},{"line_number":1564,"context_line":""},{"line_number":1565,"context_line":"    def cleanup_stale_flows(self):"},{"line_number":1566,"context_line":"        if self.iter_num \u003d\u003d 0:"},{"line_number":1567,"context_line":"            bridges \u003d [self.int_br]"},{"line_number":1568,"context_line":"            if self.enable_tunneling:"},{"line_number":1569,"context_line":"                bridges.append(self.tun_br)"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_792343a8","line":1566,"in_reply_to":"1a4dcd0f_3fae0382","updated":"2015-08-14 09:49:01.000000000","message":"In my opinion this is unnecessary complication, as if  ovs failed during agents work, we assume that nothing has changed. Look for @enikanorov opinion.","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"8bcc0a06999f0512df7b9003b348e689c2cdf4f2","unresolved":false,"context_lines":[{"line_number":1563,"context_line":"        return port_stats"},{"line_number":1564,"context_line":""},{"line_number":1565,"context_line":"    def cleanup_stale_flows(self):"},{"line_number":1566,"context_line":"        if self.iter_num \u003d\u003d 0:"},{"line_number":1567,"context_line":"            bridges \u003d [self.int_br]"},{"line_number":1568,"context_line":"            if self.enable_tunneling:"},{"line_number":1569,"context_line":"                bridges.append(self.tun_br)"}],"source_content_type":"text/x-python","patch_set":53,"id":"1a4dcd0f_e615629b","line":1566,"in_reply_to":"1a4dcd0f_3fae0382","updated":"2015-08-14 15:10:24.000000000","message":"calling cleanup_stale_flows twice during one agent run doesn\u0027t make sense because there should not be any new flows with different stamp after the first call.\niteration number is sufficient indication that we do it once and in proper moment of time.","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"dc2ebe9624b6a34632b6e93d087edc10061136df","unresolved":false,"context_lines":[{"line_number":1563,"context_line":"        return port_stats"},{"line_number":1564,"context_line":""},{"line_number":1565,"context_line":"    def cleanup_stale_flows(self):"},{"line_number":1566,"context_line":"        if self.iter_num \u003d\u003d 0:"},{"line_number":1567,"context_line":"            bridges \u003d [self.int_br]"},{"line_number":1568,"context_line":"            if self.enable_tunneling:"},{"line_number":1569,"context_line":"                bridges.append(self.tun_br)"}],"source_content_type":"text/x-python","patch_set":53,"id":"fa1b9901_7aaa3cd6","line":1566,"in_reply_to":"1a4dcd0f_e615629b","updated":"2015-08-18 12:21:28.000000000","message":"what ensures that iter_num is still 0 first time this method is called?","commit_id":"351726131893995c1178636ce6e8ce1fd5684730"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"026fe39f2e0923463c2267e2fb9e0bbf8053b534","unresolved":false,"context_lines":[{"line_number":722,"context_line":"        :param segmentation_id: the VID for \u0027vlan\u0027 or tunnel ID for \u0027tunnel\u0027"},{"line_number":723,"context_line":"        :param fixed_ips: the ip addresses assigned to this port"},{"line_number":724,"context_line":"        :param device_owner: the string indicative of owner of this port"},{"line_number":725,"context_line":"        :param ovs_restarted: indicates if this is called for an OVS restart."},{"line_number":726,"context_line":"        \u0027\u0027\u0027"},{"line_number":727,"context_line":"        lvlan \u003d port_tags.get(port.port_name)"},{"line_number":728,"context_line":"        # 0 vlan is not used, but still checking for it for consistency"}],"source_content_type":"text/x-python","patch_set":54,"id":"fa1b9901_3a73a14f","line":725,"updated":"2015-08-17 10:32:49.000000000","message":":param port_tag missing","commit_id":"d412373a442ef95887795b68826d34860a334add"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"4cbd9e371e736d306febf414da954fd1b3fc9fb5","unresolved":false,"context_lines":[{"line_number":722,"context_line":"        :param segmentation_id: the VID for \u0027vlan\u0027 or tunnel ID for \u0027tunnel\u0027"},{"line_number":723,"context_line":"        :param fixed_ips: the ip addresses assigned to this port"},{"line_number":724,"context_line":"        :param device_owner: the string indicative of owner of this port"},{"line_number":725,"context_line":"        :param ovs_restarted: indicates if this is called for an OVS restart."},{"line_number":726,"context_line":"        \u0027\u0027\u0027"},{"line_number":727,"context_line":"        lvlan \u003d port_tags.get(port.port_name)"},{"line_number":728,"context_line":"        # 0 vlan is not used, but still checking for it for consistency"}],"source_content_type":"text/x-python","patch_set":54,"id":"fa1b9901_f86c1f9e","line":725,"in_reply_to":"fa1b9901_3a73a14f","updated":"2015-08-18 09:12:23.000000000","message":"Done","commit_id":"d412373a442ef95887795b68826d34860a334add"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cbc4ddaad20388b512064989c3a8f793b541f78f","unresolved":false,"context_lines":[{"line_number":724,"context_line":"        :param device_owner: the string indicative of owner of this port"},{"line_number":725,"context_line":"        :param ovs_restarted: indicates if this is called for an OVS restart."},{"line_number":726,"context_line":"        \u0027\u0027\u0027"},{"line_number":727,"context_line":"        lvlan \u003d port_tags.get(port.port_name)"},{"line_number":728,"context_line":"        # 0 vlan is not used, but still checking for it for consistency"},{"line_number":729,"context_line":"        if lvlan is not None:"},{"line_number":730,"context_line":"            LOG.debug(\"Using tag %(tag)s for port %(port)s\","}],"source_content_type":"text/x-python","patch_set":54,"id":"1a4dcd0f_94001168","line":727,"updated":"2015-08-17 10:26:26.000000000","message":"Sorry for not catching this before. I believe this lookup should be do by the caller. not down here.\n\nIf you see, all the other parameters are port-specific, this is a general dictionary with port tags.\n\nIMO, we should receive port_tag here, instead of the wider port_tags.\n\nI\u0027m ok if we do this  as a follow up.","commit_id":"d412373a442ef95887795b68826d34860a334add"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"4cbd9e371e736d306febf414da954fd1b3fc9fb5","unresolved":false,"context_lines":[{"line_number":724,"context_line":"        :param device_owner: the string indicative of owner of this port"},{"line_number":725,"context_line":"        :param ovs_restarted: indicates if this is called for an OVS restart."},{"line_number":726,"context_line":"        \u0027\u0027\u0027"},{"line_number":727,"context_line":"        lvlan \u003d port_tags.get(port.port_name)"},{"line_number":728,"context_line":"        # 0 vlan is not used, but still checking for it for consistency"},{"line_number":729,"context_line":"        if lvlan is not None:"},{"line_number":730,"context_line":"            LOG.debug(\"Using tag %(tag)s for port %(port)s\","}],"source_content_type":"text/x-python","patch_set":54,"id":"fa1b9901_186a3381","line":727,"in_reply_to":"1a4dcd0f_94001168","updated":"2015-08-18 09:12:23.000000000","message":"Done","commit_id":"d412373a442ef95887795b68826d34860a334add"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"cbc4ddaad20388b512064989c3a8f793b541f78f","unresolved":false,"context_lines":[{"line_number":1312,"context_line":"                                                   details[\u0027fixed_ips\u0027],"},{"line_number":1313,"context_line":"                                                   details[\u0027device_owner\u0027],"},{"line_number":1314,"context_line":"                                                   ovs_restarted,"},{"line_number":1315,"context_line":"                                                   port_tags)"},{"line_number":1316,"context_line":"                if need_binding:"},{"line_number":1317,"context_line":"                    details[\u0027vif_port\u0027] \u003d port"},{"line_number":1318,"context_line":"                    need_binding_devices.append(details)"}],"source_content_type":"text/x-python","patch_set":54,"id":"1a4dcd0f_b42aede5","line":1315,"updated":"2015-08-17 10:26:26.000000000","message":"pedantic nit:\nport_tags.get(port.name)\n\nand rename parameter to port_tag to be consistent with all the other parameters.","commit_id":"d412373a442ef95887795b68826d34860a334add"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"4cbd9e371e736d306febf414da954fd1b3fc9fb5","unresolved":false,"context_lines":[{"line_number":1312,"context_line":"                                                   details[\u0027fixed_ips\u0027],"},{"line_number":1313,"context_line":"                                                   details[\u0027device_owner\u0027],"},{"line_number":1314,"context_line":"                                                   ovs_restarted,"},{"line_number":1315,"context_line":"                                                   port_tags)"},{"line_number":1316,"context_line":"                if need_binding:"},{"line_number":1317,"context_line":"                    details[\u0027vif_port\u0027] \u003d port"},{"line_number":1318,"context_line":"                    need_binding_devices.append(details)"}],"source_content_type":"text/x-python","patch_set":54,"id":"fa1b9901_d8d83b56","line":1315,"in_reply_to":"1a4dcd0f_b42aede5","updated":"2015-08-18 09:12:23.000000000","message":"Done","commit_id":"d412373a442ef95887795b68826d34860a334add"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"a4b7977f53236b76693b1d159210f854041963dd","unresolved":false,"context_lines":[{"line_number":25,"context_line":"from oslo_service import loopingcall"},{"line_number":26,"context_line":"import six"},{"line_number":27,"context_line":"from six import moves"},{"line_number":28,"context_line":"import uuid"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from neutron.agent.common import ovs_lib"},{"line_number":31,"context_line":"from neutron.agent.common import polling"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_d833f4a9","line":28,"updated":"2015-08-20 01:13:23.000000000","message":"not sure why this doesn\u0027t trigger a pep8 issue but uuid is a system lib and should be at the top.","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"5a723db99d04016dcf191b9df8e56212fce3364f","unresolved":false,"context_lines":[{"line_number":25,"context_line":"from oslo_service import loopingcall"},{"line_number":26,"context_line":"import six"},{"line_number":27,"context_line":"from six import moves"},{"line_number":28,"context_line":"import uuid"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"from neutron.agent.common import ovs_lib"},{"line_number":31,"context_line":"from neutron.agent.common import polling"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_55ed62b5","line":28,"in_reply_to":"fa1b9901_d833f4a9","updated":"2015-08-20 07:49:42.000000000","message":"Done","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"91ce75b18b6fc4976732eb4a1bc57714da952cdc","unresolved":false,"context_lines":[{"line_number":1270,"context_line":"            # Untagged or absent ports are ports that does not exist in"},{"line_number":1271,"context_line":"            # port_tags or exists but have no tag or dead ports that are marked"},{"line_number":1272,"context_line":"            # with -1."},{"line_number":1273,"context_line":"            if (not port or port.port_name not in port_tags or"},{"line_number":1274,"context_line":"                    port_tags.get(port.port_name) is None or"},{"line_number":1275,"context_line":"                    port_tags.get(port.port_name) \u003d\u003d -1):"},{"line_number":1276,"context_line":"                other_devs.append(dev)"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_c7ab1674","line":1273,"updated":"2015-08-19 22:11:15.000000000","message":"the part:\n\n port.port_name not in port_tags or port_tags.get(port.port_name) is None or port_tags.get(port.port_name) \u003d\u003d -1\n\ncan be replaced by:\n\n port_tags.get(port.port_name) in [None, -1]","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"91ce75b18b6fc4976732eb4a1bc57714da952cdc","unresolved":false,"context_lines":[{"line_number":1274,"context_line":"                    port_tags.get(port.port_name) is None or"},{"line_number":1275,"context_line":"                    port_tags.get(port.port_name) \u003d\u003d -1):"},{"line_number":1276,"context_line":"                other_devs.append(dev)"},{"line_number":1277,"context_line":"                continue"},{"line_number":1278,"context_line":"            tagged_devs.append(dev)"},{"line_number":1279,"context_line":"        return tagged_devs + other_devs"},{"line_number":1280,"context_line":""}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_47e5c6d9","line":1277,"updated":"2015-08-19 22:11:15.000000000","message":"using:\n\n if ...\n   others_dev.append(dev)\n else:\n   tagged_dev.append(dev)\n\nseems clearer","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"edf469d69252fb179f670e6830c41dd63e83240d","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        vif_by_id \u003d self.int_br.get_vifs_by_ids("},{"line_number":1297,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1300,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_9b836856","line":1299,"updated":"2015-08-19 08:15:57.000000000","message":"in what cases this is useful?\n_restore_local_vlan_map is not enough?","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3fc4f9b7967209e9b4580d38e08e6c4df2eb64b1","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        vif_by_id \u003d self.int_br.get_vifs_by_ids("},{"line_number":1297,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1300,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_a92ef040","line":1299,"in_reply_to":"fa1b9901_34e6cdb0","updated":"2015-08-20 03:11:33.000000000","message":"i\u0027m not asking refactor.  i want to avoid adding\nseemingly redundant logic to restore vlan mappings from\nthe existing tags.  (or want to be convinced that it\nisn\u0027t actually redundant.)\n\nsorry for not noticing this earlier, but i don\u0027t think\nit\u0027s a good idea to rush merging questionable changes.\nwhile it might save your testing effort, it might impose\nothers some difficulties and might not save the effort\nfor the project as a whole.","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"6374603db8d3759ba2ed3fa14abd8d5fa6e4a0d0","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        vif_by_id \u003d self.int_br.get_vifs_by_ids("},{"line_number":1297,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1300,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_df8befc1","line":1299,"in_reply_to":"fa1b9901_53627e3f","updated":"2015-08-19 17:05:51.000000000","message":"what follow-ups do you plan?\nremove _restore_local_vlan_map in favor of this?","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"308c6e430e98770e2ac22839677f4e7ad1f911fe","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        vif_by_id \u003d self.int_br.get_vifs_by_ids("},{"line_number":1297,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1300,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_53627e3f","line":1299,"in_reply_to":"fa1b9901_8da8f521","updated":"2015-08-19 15:56:26.000000000","message":"Removing this code means that I\u0027ll need to test this again and again to verify that everything works properly and this means time. I prefer to have this fix in this version as a lot of people are looking for it . After this change is merged I will do a separate follow-up, I think doing it now not so necessary.","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"6226a7a6c8e3eb5c5fe1cb93863728375e9dfc52","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        vif_by_id \u003d self.int_br.get_vifs_by_ids("},{"line_number":1297,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1300,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_c659f85b","line":1299,"in_reply_to":"fa1b9901_9b836856","updated":"2015-08-19 12:20:31.000000000","message":"It *might* be enough, however, I would strongly suggest to avoid such implicit assumption that vlans are restored.\n\nThis code is basically a noop now, however I\u0027d prefer to keep it, rather than that method at initialization.","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"5a723db99d04016dcf191b9df8e56212fce3364f","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        vif_by_id \u003d self.int_br.get_vifs_by_ids("},{"line_number":1297,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1300,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_a067dae7","line":1299,"in_reply_to":"fa1b9901_a92ef040","updated":"2015-08-20 07:49:42.000000000","message":"Done","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"75defd5ec69481389895a78574e56d39f1566a1a","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        vif_by_id \u003d self.int_br.get_vifs_by_ids("},{"line_number":1297,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1300,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_8da8f521","line":1299,"in_reply_to":"fa1b9901_c659f85b","updated":"2015-08-19 15:30:08.000000000","message":"which implicit assumption?\n_restore_local_vlan_map seems explicitly coded.\n\nif the code is currently noop but you think it can be useful later,\ni\u0027d suggest to remove it from this patch, and make it\na separate follow-up.\nhow do you think?","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"1f2f428f1e33573c6b8d29a1885bf0fc1979af22","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        vif_by_id \u003d self.int_br.get_vifs_by_ids("},{"line_number":1297,"context_line":"            [vif[\u0027device\u0027] for vif in devices])"},{"line_number":1298,"context_line":""},{"line_number":1299,"context_line":"        # reusing existing tags as a primary source of local vlan allocation"},{"line_number":1300,"context_line":"        port_tags \u003d self.int_br.get_port_tag_dict()"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        filtered_dev_list \u003d self._reorder_devices(devices,"}],"source_content_type":"text/x-python","patch_set":56,"id":"fa1b9901_34e6cdb0","line":1299,"in_reply_to":"fa1b9901_df8befc1","updated":"2015-08-19 17:39:25.000000000","message":"I plan to do refactor that you are asking for.","commit_id":"7dcc026477a55e8b4b47355a84caf9f44d2ed6c8"}],"neutron/plugins/openvswitch/agent/openflow/ovs_ofctl/ofswitch.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c8c228a0b73a99cecddfbce16826dd93c664f65","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def dump_flows(self, table_id\u003dNone):"},{"line_number":38,"context_line":"        if table_id is None:"},{"line_number":39,"context_line":"            return [f for f in self.run_ofctl(\"dump-flows\", []).splitlines()"},{"line_number":40,"context_line":"                    if \u0027NXST\u0027 not in f]"},{"line_number":41,"context_line":"        return self.dump_flows_for_table(table_id)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def install_goto_next(self, table_id):"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_edb4b2f1","line":40,"updated":"2015-06-26 08:24:35.000000000","message":"I guess most of the code is only relevant to using ofctl, and will need to be re-adapted when we adopt also the native open flow interface (without the cmdline tools) but anyway it\u0027s very good for now.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def dump_flows(self, table_id\u003dNone):"},{"line_number":38,"context_line":"        if table_id is None:"},{"line_number":39,"context_line":"            return [f for f in self.run_ofctl(\"dump-flows\", []).splitlines()"},{"line_number":40,"context_line":"                    if \u0027NXST\u0027 not in f]"},{"line_number":41,"context_line":"        return self.dump_flows_for_table(table_id)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def install_goto_next(self, table_id):"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_ba531039","line":40,"in_reply_to":"fa32b979_edb4b2f1","updated":"2015-06-26 14:48:46.000000000","message":"I will add something like dump_all_flows in ovs_lib, and rewrite this method like delete_flows.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"c473d45564565d981dd04ba1430a83f257c294b6","unresolved":false,"context_lines":[{"line_number":246,"context_line":"                self._report_state)"},{"line_number":247,"context_line":"            heartbeat.start(interval\u003dreport_interval)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        if self.enable_tunneling:"},{"line_number":250,"context_line":"            self.setup_tunnel_br()"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"        self.dvr_agent.setup_dvr_flows()"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_cd884b25","line":249,"updated":"2015-05-15 06:31:07.000000000","message":"self.setup_tunnel_br() -\u003e setup_tunnel_br_flows()","commit_id":"143407d6efc9456cb9f89ccd641763aba85ea240"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"7bc94bad1ef9bb82a185bb8a49bf157f395dc1e9","unresolved":false,"context_lines":[{"line_number":246,"context_line":"                self._report_state)"},{"line_number":247,"context_line":"            heartbeat.start(interval\u003dreport_interval)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        if self.enable_tunneling:"},{"line_number":250,"context_line":"            self.setup_tunnel_br()"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"        self.dvr_agent.setup_dvr_flows()"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_f9b26393","line":249,"in_reply_to":"7a016987_cd884b25","updated":"2015-05-19 02:49:05.000000000","message":"yep, thanks!","commit_id":"143407d6efc9456cb9f89ccd641763aba85ea240"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4fe19814ce9845efd0a2b74a66e93543fa95ad47","unresolved":false,"context_lines":[{"line_number":1483,"context_line":"            else:"},{"line_number":1484,"context_line":"                flow_t23 \u003d [f for f in flows if \"table\u003d%s\" %"},{"line_number":1485,"context_line":"                            constants.CANARY_TABLE in f]"},{"line_number":1486,"context_line":"                t \u003d re.search(\"duration\u003d([0-9.]+)s\", flow_t23[0]).group(1)"},{"line_number":1487,"context_line":"            for flow in flows:"},{"line_number":1488,"context_line":"                fl_duration \u003d re.search(\"duration\u003d([0-9.]+)s\", flow).group(1)"},{"line_number":1489,"context_line":"                if fl_duration \u003e t:"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa32b979_affe3036","line":1486,"updated":"2015-06-16 07:36:48.000000000","message":"suggest debug output for flows to be deleted","commit_id":"78ff4a9a5f64598340c977be4335632197b3cbd9"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"4fe19814ce9845efd0a2b74a66e93543fa95ad47","unresolved":false,"context_lines":[{"line_number":1501,"context_line":"                flow_t23 \u003d [f for f in flows if \"table\u003d%s\" %"},{"line_number":1502,"context_line":"                            constants.CANARY_TABLE in f]"},{"line_number":1503,"context_line":"                t \u003d re.search(\"duration\u003d([0-9.]+)s\", flow_t23[0]).group(1)"},{"line_number":1504,"context_line":"            for flow in flows:"},{"line_number":1505,"context_line":"                fl_duration \u003d re.search(\"duration\u003d([0-9.]+)s\","},{"line_number":1506,"context_line":"                                        flow).group(1)"},{"line_number":1507,"context_line":"                if fl_duration \u003e t:"}],"source_content_type":"text/x-python","patch_set":13,"id":"fa32b979_0f963cf0","line":1504,"updated":"2015-06-16 07:36:48.000000000","message":"same","commit_id":"78ff4a9a5f64598340c977be4335632197b3cbd9"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":288,"context_line":""},{"line_number":289,"context_line":"        self.quitting_rpc_timeout \u003d quitting_rpc_timeout"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"        self.restart_time \u003d 0"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _report_state(self):"},{"line_number":294,"context_line":"        # How many devices are likely used by a VM"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_17331f15","line":291,"updated":"2015-06-25 13:09:27.000000000","message":"Why 0 ? This should be the current time right?\n\nnit: I\u0027d prefer \"start_time\" ... \"restart_time\" implies that a restart took place, which might not be the case","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"165503e9b2d1e153231b2c39814aa12e855b322d","unresolved":false,"context_lines":[{"line_number":288,"context_line":""},{"line_number":289,"context_line":"        self.quitting_rpc_timeout \u003d quitting_rpc_timeout"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"        self.restart_time \u003d 0"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _report_state(self):"},{"line_number":294,"context_line":"        # How many devices are likely used by a VM"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_85b90e18","line":291,"in_reply_to":"fa32b979_17331f15","updated":"2015-06-28 21:18:04.000000000","message":"+1","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":288,"context_line":""},{"line_number":289,"context_line":"        self.quitting_rpc_timeout \u003d quitting_rpc_timeout"},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"        self.restart_time \u003d 0"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def _report_state(self):"},{"line_number":294,"context_line":"        # How many devices are likely used by a VM"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_21f6eff9","line":291,"in_reply_to":"fa32b979_17331f15","updated":"2015-06-26 14:48:46.000000000","message":"Changed for agent_uuid_stamp","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":887,"context_line":"        try:"},{"line_number":888,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":889,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":890,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":891,"context_line":"        except Exception:"},{"line_number":892,"context_line":"            LOG.exception(_LE(\"tun-br creation failed\"))"},{"line_number":893,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_b265a1e1","line":890,"updated":"2015-06-25 13:09:27.000000000","message":"I think it\u0027s better to check if the bridge exists before creating it, instead of handling the exception here.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":887,"context_line":"        try:"},{"line_number":888,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":889,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":890,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":891,"context_line":"        except Exception:"},{"line_number":892,"context_line":"            LOG.exception(_LE(\"tun-br creation failed\"))"},{"line_number":893,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_6b2e18fc","line":890,"in_reply_to":"fa32b979_b265a1e1","updated":"2015-06-26 14:48:46.000000000","message":"Done","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"165503e9b2d1e153231b2c39814aa12e855b322d","unresolved":false,"context_lines":[{"line_number":887,"context_line":"        try:"},{"line_number":888,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":889,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":890,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":891,"context_line":"        except Exception:"},{"line_number":892,"context_line":"            LOG.exception(_LE(\"tun-br creation failed\"))"},{"line_number":893,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_e53eda8a","line":890,"in_reply_to":"fa32b979_b265a1e1","updated":"2015-06-28 21:18:04.000000000","message":"agree","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"165503e9b2d1e153231b2c39814aa12e855b322d","unresolved":false,"context_lines":[{"line_number":896,"context_line":"                self.conf.OVS.tun_peer_patch_port)"},{"line_number":897,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":898,"context_line":"        except Exception:"},{"line_number":899,"context_line":"            LOG.exception(_LE(\"adding tun ofport failed\"))"},{"line_number":900,"context_line":"        try:"},{"line_number":901,"context_line":"            self.patch_int_ofport \u003d self.tun_br.add_patch_port("},{"line_number":902,"context_line":"                self.conf.OVS.tun_peer_patch_port,"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_4561c6a7","line":899,"updated":"2015-06-28 21:18:04.000000000","message":"similar to above - it might make sense to pring info-level message indicating that patch port already exists.\n\nThis exception is not something admin should be worried about","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"165503e9b2d1e153231b2c39814aa12e855b322d","unresolved":false,"context_lines":[{"line_number":903,"context_line":"                self.conf.OVS.int_peer_patch_port)"},{"line_number":904,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":905,"context_line":"        except Exception:"},{"line_number":906,"context_line":"            LOG.exception(_LE(\"adding int ofport failed\"))"},{"line_number":907,"context_line":"        if ovs_lib.INVALID_OFPORT in (self.patch_tun_ofport,"},{"line_number":908,"context_line":"                                      self.patch_int_ofport):"},{"line_number":909,"context_line":"            LOG.error(_LE(\"Failed to create OVS patch port. Cannot have \""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_e50c9aee","line":906,"updated":"2015-06-28 21:18:04.000000000","message":"also, it makes sense to extract those operations into something like \u0027connect_br_int_to_br_tun\u0027","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":1428,"context_line":"                                                    tun_name,"},{"line_number":1429,"context_line":"                                                    tunnel[\u0027ip_address\u0027],"},{"line_number":1430,"context_line":"                                                    tunnel_type)"},{"line_number":1431,"context_line":"            self.cleanup_stale_flows(self.tun_br)"},{"line_number":1432,"context_line":"        except Exception as e:"},{"line_number":1433,"context_line":"            LOG.debug(\"Unable to sync tunnel IP %(local_ip)s: %(e)s\","},{"line_number":1434,"context_line":"                      {\u0027local_ip\u0027: self.local_ip, \u0027e\u0027: e})"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_d45852fb","line":1431,"updated":"2015-06-25 13:09:27.000000000","message":"If you cleanup the flows here, all the flows will be removed except those installed in setup_tunnel_br_flows , is that on purpose? If you do that I assume this will break the network traffic anyway, VMs will be isolated till new flows are installed. Am I missing something?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":12955,"name":"Aman Kumar","email":"aman.kumar3@hpe.com","username":"amank"},"change_message_id":"0fc008021c4f21471f641270ad92dc1906497a1a","unresolved":false,"context_lines":[{"line_number":1428,"context_line":"                                                    tun_name,"},{"line_number":1429,"context_line":"                                                    tunnel[\u0027ip_address\u0027],"},{"line_number":1430,"context_line":"                                                    tunnel_type)"},{"line_number":1431,"context_line":"            self.cleanup_stale_flows(self.tun_br)"},{"line_number":1432,"context_line":"        except Exception as e:"},{"line_number":1433,"context_line":"            LOG.debug(\"Unable to sync tunnel IP %(local_ip)s: %(e)s\","},{"line_number":1434,"context_line":"                      {\u0027local_ip\u0027: self.local_ip, \u0027e\u0027: e})"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_1f2a3130","line":1431,"in_reply_to":"fa32b979_d45852fb","updated":"2015-06-26 06:53:28.000000000","message":"+1","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":1428,"context_line":"                                                    tun_name,"},{"line_number":1429,"context_line":"                                                    tunnel[\u0027ip_address\u0027],"},{"line_number":1430,"context_line":"                                                    tunnel_type)"},{"line_number":1431,"context_line":"            self.cleanup_stale_flows(self.tun_br)"},{"line_number":1432,"context_line":"        except Exception as e:"},{"line_number":1433,"context_line":"            LOG.debug(\"Unable to sync tunnel IP %(local_ip)s: %(e)s\","},{"line_number":1434,"context_line":"                      {\u0027local_ip\u0027: self.local_ip, \u0027e\u0027: e})"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_adf18d6c","line":1431,"in_reply_to":"fa32b979_d45852fb","updated":"2015-06-26 14:48:46.000000000","message":"Yes, you understand correctly at this moment saved only that flows. I\u0027ll try to find a better way to handle this.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":1449,"context_line":"        # Check for the canary flow"},{"line_number":1450,"context_line":"        status \u003d self.int_br.check_canary_table()"},{"line_number":1451,"context_line":"        if status \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1452,"context_line":"            self.restart_time \u003d time.time()"},{"line_number":1453,"context_line":"            LOG.warn(_LW(\"OVS is restarted. OVSNeutronAgent will reset \""},{"line_number":1454,"context_line":"                         \"bridges and recover ports.\"))"},{"line_number":1455,"context_line":"        elif status \u003d\u003d constants.OVS_DEAD:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_323191a2","line":1452,"updated":"2015-06-25 13:09:27.000000000","message":"I am missing something. I don\u0027t understand why you reset restart_time here. In my mind restart_time is the time when the agent started. If I got it right, the strategy you are supposed to use is to remove the old flows and by old you mean the flows that were there before the agent restarted.\nIf OVS is restarted all the flows are lost. I really don\u0027t see why you reset the timer here.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":1449,"context_line":"        # Check for the canary flow"},{"line_number":1450,"context_line":"        status \u003d self.int_br.check_canary_table()"},{"line_number":1451,"context_line":"        if status \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1452,"context_line":"            self.restart_time \u003d time.time()"},{"line_number":1453,"context_line":"            LOG.warn(_LW(\"OVS is restarted. OVSNeutronAgent will reset \""},{"line_number":1454,"context_line":"                         \"bridges and recover ports.\"))"},{"line_number":1455,"context_line":"        elif status \u003d\u003d constants.OVS_DEAD:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_c65cf94e","line":1452,"in_reply_to":"fa32b979_323191a2","updated":"2015-06-26 14:48:46.000000000","message":"I next patch I change agent stamp also here because as far as I see it is the only place where ovs status checked. Where else it can be moved?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":1476,"context_line":"        self.iter_num \u003d self.iter_num + 1"},{"line_number":1477,"context_line":""},{"line_number":1478,"context_line":"    def cleanup_stale_flows(self, bridge):"},{"line_number":1479,"context_line":"        ovs_restarted \u003d self.check_ovs_status()"},{"line_number":1480,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1481,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1482,"context_line":"            flows \u003d bridge.dump_flows()"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_1c7b46f6","line":1479,"updated":"2015-06-25 13:09:27.000000000","message":"this call will reset the restart_time (see line 1452) so it seems that line 1483 will always be true.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":1476,"context_line":"        self.iter_num \u003d self.iter_num + 1"},{"line_number":1477,"context_line":""},{"line_number":1478,"context_line":"    def cleanup_stale_flows(self, bridge):"},{"line_number":1479,"context_line":"        ovs_restarted \u003d self.check_ovs_status()"},{"line_number":1480,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1481,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1482,"context_line":"            flows \u003d bridge.dump_flows()"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_8656f128","line":1479,"in_reply_to":"fa32b979_1c7b46f6","updated":"2015-06-26 14:48:46.000000000","message":"Done","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"bf86aa153f0249c853155fdfa2b1badb74780f14","unresolved":false,"context_lines":[{"line_number":1479,"context_line":"        ovs_restarted \u003d self.check_ovs_status()"},{"line_number":1480,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1481,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1482,"context_line":"            flows \u003d bridge.dump_flows()"},{"line_number":1483,"context_line":"            if self.restart_time \u003e 0:"},{"line_number":1484,"context_line":"                t \u003d time.time() - self.restart_time"},{"line_number":1485,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_7ab12f46","line":1482,"updated":"2015-06-26 05:25:32.000000000","message":"this kind of string-based flow manipulation should be under ovs_ofctl/.\nprobably ofswitch.py","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":1479,"context_line":"        ovs_restarted \u003d self.check_ovs_status()"},{"line_number":1480,"context_line":"        if self.iter_num \u003d\u003d 0 or ovs_restarted \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1481,"context_line":"            LOG.error(_LE(\"Cleaning stale %s flows\"), bridge.br_name)"},{"line_number":1482,"context_line":"            flows \u003d bridge.dump_flows()"},{"line_number":1483,"context_line":"            if self.restart_time \u003e 0:"},{"line_number":1484,"context_line":"                t \u003d time.time() - self.restart_time"},{"line_number":1485,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_21710fa9","line":1482,"in_reply_to":"fa32b979_7ab12f46","updated":"2015-06-26 14:48:46.000000000","message":"What manipulations are suggested to be moved to ofswitch.py? the whole method?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"e7d3db151aaceea90e8fe0f4f59d2260c9bfe6cf","unresolved":false,"context_lines":[{"line_number":1484,"context_line":"                t \u003d time.time() - self.restart_time"},{"line_number":1485,"context_line":"            else:"},{"line_number":1486,"context_line":"                flow_t0 \u003d [f for f in flows if \"table\u003d0\" in f]"},{"line_number":1487,"context_line":"                t \u003d re.search(\"duration\u003d([0-9.]+)s\", flow_t0[0]).group(1)"},{"line_number":1488,"context_line":"            for flow in flows:"},{"line_number":1489,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(time)s\","},{"line_number":1490,"context_line":"                          {\u0027flow\u0027: flow, \u0027time\u0027: t})"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_328d1131","line":1487,"updated":"2015-06-25 12:50:47.000000000","message":"flow_t0 would not be removed if we take its duration for later comparison.\nI\u0027m also wondering if the choice of the first available flow is a good idea, there might be a race condition of deleting relevant flows.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c8c228a0b73a99cecddfbce16826dd93c664f65","unresolved":false,"context_lines":[{"line_number":1484,"context_line":"                t \u003d time.time() - self.restart_time"},{"line_number":1485,"context_line":"            else:"},{"line_number":1486,"context_line":"                flow_t0 \u003d [f for f in flows if \"table\u003d0\" in f]"},{"line_number":1487,"context_line":"                t \u003d re.search(\"duration\u003d([0-9.]+)s\", flow_t0[0]).group(1)"},{"line_number":1488,"context_line":"            for flow in flows:"},{"line_number":1489,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(time)s\","},{"line_number":1490,"context_line":"                          {\u0027flow\u0027: flow, \u0027time\u0027: t})"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_6db74221","line":1487,"updated":"2015-06-26 08:24:35.000000000","message":"nit:\ncan we precompile the re once at init, and then use the compiled version? re.search and re.compilation tend to be a bottle neck.\n\nProbably you can ignore me since those searches are not going to happen normally, only during restarts..","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"165503e9b2d1e153231b2c39814aa12e855b322d","unresolved":false,"context_lines":[{"line_number":1484,"context_line":"                t \u003d time.time() - self.restart_time"},{"line_number":1485,"context_line":"            else:"},{"line_number":1486,"context_line":"                flow_t0 \u003d [f for f in flows if \"table\u003d0\" in f]"},{"line_number":1487,"context_line":"                t \u003d re.search(\"duration\u003d([0-9.]+)s\", flow_t0[0]).group(1)"},{"line_number":1488,"context_line":"            for flow in flows:"},{"line_number":1489,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(time)s\","},{"line_number":1490,"context_line":"                          {\u0027flow\u0027: flow, \u0027time\u0027: t})"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_a5f6928e","line":1487,"in_reply_to":"fa32b979_328d1131","updated":"2015-06-28 21:18:04.000000000","message":"can you clarify, what kind of race condition is possible here?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":1484,"context_line":"                t \u003d time.time() - self.restart_time"},{"line_number":1485,"context_line":"            else:"},{"line_number":1486,"context_line":"                flow_t0 \u003d [f for f in flows if \"table\u003d0\" in f]"},{"line_number":1487,"context_line":"                t \u003d re.search(\"duration\u003d([0-9.]+)s\", flow_t0[0]).group(1)"},{"line_number":1488,"context_line":"            for flow in flows:"},{"line_number":1489,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(time)s\","},{"line_number":1490,"context_line":"                          {\u0027flow\u0027: flow, \u0027time\u0027: t})"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_e6201db3","line":1487,"in_reply_to":"fa32b979_6db74221","updated":"2015-06-26 14:48:46.000000000","message":"This lines are removed.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":1488,"context_line":"            for flow in flows:"},{"line_number":1489,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(time)s\","},{"line_number":1490,"context_line":"                          {\u0027flow\u0027: flow, \u0027time\u0027: t})"},{"line_number":1491,"context_line":"                if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1492,"context_line":"                    fl_duration \u003d re.search(\"duration\u003d([0-9.]+)s\","},{"line_number":1493,"context_line":"                                            flow).group(1)"},{"line_number":1494,"context_line":"                    if float(fl_duration) \u003e float(t):"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_1c62663e","line":1491,"updated":"2015-06-25 13:09:27.000000000","message":"what\u0027s \u0027cookie\u003d0x0\u0027 ? Maybe using a named variable would make it more clear","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":1488,"context_line":"            for flow in flows:"},{"line_number":1489,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(time)s\","},{"line_number":1490,"context_line":"                          {\u0027flow\u0027: flow, \u0027time\u0027: t})"},{"line_number":1491,"context_line":"                if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1492,"context_line":"                    fl_duration \u003d re.search(\"duration\u003d([0-9.]+)s\","},{"line_number":1493,"context_line":"                                            flow).group(1)"},{"line_number":1494,"context_line":"                    if float(fl_duration) \u003e float(t):"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_81601bd1","line":1491,"in_reply_to":"fa32b979_1c62663e","updated":"2015-06-26 14:48:46.000000000","message":"By default cookie is set to \u00270x0\u0027, this is needed for upgrade cases.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":15518,"name":"Artur Korzeniewski","email":"artur.korzen@wp.pl","username":"akorzeni"},"change_message_id":"e7d3db151aaceea90e8fe0f4f59d2260c9bfe6cf","unresolved":false,"context_lines":[{"line_number":1491,"context_line":"                if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1492,"context_line":"                    fl_duration \u003d re.search(\"duration\u003d([0-9.]+)s\","},{"line_number":1493,"context_line":"                                            flow).group(1)"},{"line_number":1494,"context_line":"                    if float(fl_duration) \u003e float(t):"},{"line_number":1495,"context_line":"                        LOG.debug(\"Deleted flow %s\", flow)"},{"line_number":1496,"context_line":"                        cookie \u003d re.search(\u0027cookie\u003d([0-9]+[A-Za-z0-9]*)\u0027,"},{"line_number":1497,"context_line":"                                           flow).group(1) + \"/-1\""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_527535f7","line":1494,"updated":"2015-06-25 12:50:47.000000000","message":"it happen to me, that canary flow (table 23) is removed after iteration 0, so the agent in iteration 1 is thinking that OVS has been restarted and trying to reapply the configuration once again (unnecessary)","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"9c8c228a0b73a99cecddfbce16826dd93c664f65","unresolved":false,"context_lines":[{"line_number":1495,"context_line":"                        LOG.debug(\"Deleted flow %s\", flow)"},{"line_number":1496,"context_line":"                        cookie \u003d re.search(\u0027cookie\u003d([0-9]+[A-Za-z0-9]*)\u0027,"},{"line_number":1497,"context_line":"                                           flow).group(1) + \"/-1\""},{"line_number":1498,"context_line":"                        bridge.delete_flows(cookie\u003dcookie)"},{"line_number":1499,"context_line":""},{"line_number":1500,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"},{"line_number":1501,"context_line":"        if not polling_manager:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_6debc2a4","line":1498,"updated":"2015-06-26 08:24:35.000000000","message":"can we include other fields in the delete to make sure we don\u0027t hit UUID collisions?, I know probability is absurdly low...","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"956fb7b5d4a4dd898e3078d8975538c40e6edd3e","unresolved":false,"context_lines":[{"line_number":1495,"context_line":"                        LOG.debug(\"Deleted flow %s\", flow)"},{"line_number":1496,"context_line":"                        cookie \u003d re.search(\u0027cookie\u003d([0-9]+[A-Za-z0-9]*)\u0027,"},{"line_number":1497,"context_line":"                                           flow).group(1) + \"/-1\""},{"line_number":1498,"context_line":"                        bridge.delete_flows(cookie\u003dcookie)"},{"line_number":1499,"context_line":""},{"line_number":1500,"context_line":"    def rpc_loop(self, polling_manager\u003dNone):"},{"line_number":1501,"context_line":"        if not polling_manager:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_e16d679a","line":1498,"in_reply_to":"fa32b979_6debc2a4","updated":"2015-06-26 14:48:46.000000000","message":"Will add table id.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":1508,"context_line":"        ancillary_ports \u003d set()"},{"line_number":1509,"context_line":"        tunnel_sync \u003d True"},{"line_number":1510,"context_line":"        ovs_restarted \u003d False"},{"line_number":1511,"context_line":"        while self.run_daemon_loop:"},{"line_number":1512,"context_line":"            start \u003d time.time()"},{"line_number":1513,"context_line":"            port_stats \u003d {\u0027regular\u0027: {\u0027added\u0027: 0,"},{"line_number":1514,"context_line":"                                      \u0027updated\u0027: 0,"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_b2ada132","line":1511,"updated":"2015-06-25 13:09:27.000000000","message":"oh we already keep track of the starting time of the agent, probably you can use that instead of adding a variable at 291.","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":1545,"context_line":"                self.loop_count_and_wait(start, port_stats)"},{"line_number":1546,"context_line":"                continue"},{"line_number":1547,"context_line":"            # Notify the plugin of tunnel IP"},{"line_number":1548,"context_line":"            ovs_restarted |\u003d (ovs_status \u003d\u003d constants.OVS_RESTARTED)"},{"line_number":1549,"context_line":"            if self.enable_tunneling and tunnel_sync:"},{"line_number":1550,"context_line":"                LOG.info(_LI(\"Agent tunnel out of sync with plugin!\"))"},{"line_number":1551,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_bcd81af0","line":1548,"updated":"2015-06-25 13:09:27.000000000","message":"why was it necessary to move this line?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"74873e1b5c2acc173cb7e80a772461ed50489620","unresolved":false,"context_lines":[{"line_number":1584,"context_line":"                        # If treat devices fails - must resync with plugin"},{"line_number":1585,"context_line":"                        sync \u003d self.process_network_ports(port_info,"},{"line_number":1586,"context_line":"                                                          ovs_restarted)"},{"line_number":1587,"context_line":"                        self.cleanup_stale_flows(self.int_br)"},{"line_number":1588,"context_line":"                        LOG.debug(\"Agent rpc_loop - iteration:%(iter_num)d - \""},{"line_number":1589,"context_line":"                                  \"ports processed. Elapsed:%(elapsed).3f\","},{"line_number":1590,"context_line":"                                  {\u0027iter_num\u0027: self.iter_num,"}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_32cc3134","line":1587,"updated":"2015-06-25 13:09:27.000000000","message":"why cleaning up here?","commit_id":"a07e82387b9ccbad294fd859048718b6f1716834"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"db112319a99a68645d6b73bfc672fa5e96369af0","unresolved":false,"context_lines":[{"line_number":212,"context_line":"        # Keep track of int_br\u0027s device count for use by _report_state()"},{"line_number":213,"context_line":"        self.int_br_device_count \u003d 0"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"        self.agent_timestamp_id \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"        self.int_br \u003d self.br_int_cls(integ_br)"},{"line_number":218,"context_line":"        self.int_br.agent_timestamp_id \u003d self.agent_timestamp_id"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_b7e2492e","line":215,"updated":"2015-06-26 08:34:54.000000000","message":"if you need to resubmit, I\u0027d move (1\u003c\u003c64)-1 to a constant, it\u0027s very natural to me, but may be some people don interpret it\u0027s a bitmask to keep 64bits :)","commit_id":"ab21f6df2806debdd3361375d89b11c096df14c7"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"844f9349f3a931807efc1350ec4fb5bb456e97f0","unresolved":false,"context_lines":[{"line_number":212,"context_line":"        # Keep track of int_br\u0027s device count for use by _report_state()"},{"line_number":213,"context_line":"        self.int_br_device_count \u003d 0"},{"line_number":214,"context_line":""},{"line_number":215,"context_line":"        self.agent_timestamp_id \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"        self.int_br \u003d self.br_int_cls(integ_br)"},{"line_number":218,"context_line":"        self.int_br.agent_timestamp_id \u003d self.agent_timestamp_id"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_cb708476","line":215,"in_reply_to":"fa32b979_b7e2492e","updated":"2015-06-26 14:48:54.000000000","message":"Done","commit_id":"ab21f6df2806debdd3361375d89b11c096df14c7"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"db112319a99a68645d6b73bfc672fa5e96369af0","unresolved":false,"context_lines":[{"line_number":890,"context_line":"        try:"},{"line_number":891,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":892,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":893,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":894,"context_line":"        except Exception:"},{"line_number":895,"context_line":"            LOG.exception(_LE(\"tun-br creation failed\"))"},{"line_number":896,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_f7469120","line":893,"updated":"2015-06-26 08:34:54.000000000","message":"I agree with rosella\u0027s comment on PS19:\n\n\"\"I think it\u0027s better to check if the bridge exists before creating it, instead of handling the exception here.\"\"","commit_id":"ab21f6df2806debdd3361375d89b11c096df14c7"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"844f9349f3a931807efc1350ec4fb5bb456e97f0","unresolved":false,"context_lines":[{"line_number":890,"context_line":"        try:"},{"line_number":891,"context_line":"            self.tun_br.create(secure_mode\u003dTrue)"},{"line_number":892,"context_line":"            self.tun_br.setup_controllers(self.conf)"},{"line_number":893,"context_line":"        # TODO(akamyshnikova) improve exception handling"},{"line_number":894,"context_line":"        except Exception:"},{"line_number":895,"context_line":"            LOG.exception(_LE(\"tun-br creation failed\"))"},{"line_number":896,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_7c5340e3","line":893,"in_reply_to":"fa32b979_f7469120","updated":"2015-06-26 14:48:54.000000000","message":"Done","commit_id":"ab21f6df2806debdd3361375d89b11c096df14c7"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"db112319a99a68645d6b73bfc672fa5e96369af0","unresolved":false,"context_lines":[{"line_number":1452,"context_line":"        # Check for the canary flow"},{"line_number":1453,"context_line":"        status \u003d self.int_br.check_canary_table()"},{"line_number":1454,"context_line":"        if status \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1455,"context_line":"            self.agent_timestamp_id \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":1456,"context_line":"            LOG.warn(_LW(\"OVS is restarted. OVSNeutronAgent will reset \""},{"line_number":1457,"context_line":"                         \"bridges and recover ports.\"))"},{"line_number":1458,"context_line":"        elif status \u003d\u003d constants.OVS_DEAD:"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_37e079fa","line":1455,"updated":"2015-06-26 08:34:54.000000000","message":"^ can we put this together to a refactored function with L214.\n\nAnd, it doesn\u0027t look like a timestamp_id anymore :) agent_uuid_stamp? :)","commit_id":"ab21f6df2806debdd3361375d89b11c096df14c7"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"844f9349f3a931807efc1350ec4fb5bb456e97f0","unresolved":false,"context_lines":[{"line_number":1452,"context_line":"        # Check for the canary flow"},{"line_number":1453,"context_line":"        status \u003d self.int_br.check_canary_table()"},{"line_number":1454,"context_line":"        if status \u003d\u003d constants.OVS_RESTARTED:"},{"line_number":1455,"context_line":"            self.agent_timestamp_id \u003d uuid.uuid4().int \u0026 ((1 \u003c\u003c 64) - 1)"},{"line_number":1456,"context_line":"            LOG.warn(_LW(\"OVS is restarted. OVSNeutronAgent will reset \""},{"line_number":1457,"context_line":"                         \"bridges and recover ports.\"))"},{"line_number":1458,"context_line":"        elif status \u003d\u003d constants.OVS_DEAD:"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_0b566cce","line":1455,"in_reply_to":"fa32b979_37e079fa","updated":"2015-06-26 14:48:54.000000000","message":"Done","commit_id":"ab21f6df2806debdd3361375d89b11c096df14c7"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"db112319a99a68645d6b73bfc672fa5e96369af0","unresolved":false,"context_lines":[{"line_number":1486,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(timestamp)s\","},{"line_number":1487,"context_line":"                          {\u0027flow\u0027: flow, \u0027timestamp\u0027: self.agent_timestamp_id})"},{"line_number":1488,"context_line":"                if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1489,"context_line":"                    fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027,"},{"line_number":1490,"context_line":"                                          flow).group(1)"},{"line_number":1491,"context_line":"                    if int(fl_cookie, 16) !\u003d self.agent_timestamp_id:"},{"line_number":1492,"context_line":"                        LOG.debug(\"Deleted flow %s\", flow)"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_f7c9b17a","line":1489,"updated":"2015-06-26 08:34:54.000000000","message":"I guess we only call cleanup_stale_flows at restarts or ovs restarts, otherwise I\u0027d precompile the re\u0027s :)","commit_id":"ab21f6df2806debdd3361375d89b11c096df14c7"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"844f9349f3a931807efc1350ec4fb5bb456e97f0","unresolved":false,"context_lines":[{"line_number":1486,"context_line":"                LOG.debug(\"Checked flow %(flow)s -  %(timestamp)s\","},{"line_number":1487,"context_line":"                          {\u0027flow\u0027: flow, \u0027timestamp\u0027: self.agent_timestamp_id})"},{"line_number":1488,"context_line":"                if \u0027cookie\u003d0x0\u0027 not in flow:"},{"line_number":1489,"context_line":"                    fl_cookie \u003d re.search(\u0027cookie\u003d([A-Za-z0-9]*)\u0027,"},{"line_number":1490,"context_line":"                                          flow).group(1)"},{"line_number":1491,"context_line":"                    if int(fl_cookie, 16) !\u003d self.agent_timestamp_id:"},{"line_number":1492,"context_line":"                        LOG.debug(\"Deleted flow %s\", flow)"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_9e0879db","line":1489,"in_reply_to":"fa32b979_f7c9b17a","updated":"2015-06-26 14:48:54.000000000","message":"Yes, it expects to use cleanup_stale_flows only on restart.","commit_id":"ab21f6df2806debdd3361375d89b11c096df14c7"}],"neutron/tests/common/net_helpers.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"fdbd99a7038b831a22187851e630e0b6ec674de6","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    with futures.ThreadPoolExecutor(max_workers\u003dlen(ips)) as executor:"},{"line_number":98,"context_line":"        fs \u003d [executor.submit(assert_ping, namespace, ip, count\u003d10)"},{"line_number":99,"context_line":"              for ip in ips]"},{"line_number":100,"context_line":"        yield"},{"line_number":101,"context_line":"        futures.wait(fs)"},{"line_number":102,"context_line":"        for f in fs:"},{"line_number":103,"context_line":"            f.result()"}],"source_content_type":"text/x-python","patch_set":46,"id":"1a4dcd0f_3a47bb4c","line":100,"updated":"2015-08-04 20:08:49.000000000","message":"yeild lambda: all(f.done() for f in fs)","commit_id":"1e9d1fc2e12046e2bbdfdaefbf1e792fa5c732ff"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"39fbbf48b5b61985414426503300043660ea7e1e","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    with futures.ThreadPoolExecutor(max_workers\u003dlen(ips)) as executor:"},{"line_number":98,"context_line":"        fs \u003d [executor.submit(assert_ping, namespace, ip, count\u003d10)"},{"line_number":99,"context_line":"              for ip in ips]"},{"line_number":100,"context_line":"        yield"},{"line_number":101,"context_line":"        futures.wait(fs)"},{"line_number":102,"context_line":"        for f in fs:"},{"line_number":103,"context_line":"            f.result()"}],"source_content_type":"text/x-python","patch_set":46,"id":"1a4dcd0f_54092930","line":100,"in_reply_to":"1a4dcd0f_3a47bb4c","updated":"2015-08-05 11:28:23.000000000","message":"Done","commit_id":"1e9d1fc2e12046e2bbdfdaefbf1e792fa5c732ff"}],"neutron/tests/functional/agent/test_l2_ovs_agent.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"fdbd99a7038b831a22187851e630e0b6ec674de6","unresolved":false,"context_lines":[{"line_number":336,"context_line":"            lambda: self._expected_plugin_rpc_call("},{"line_number":337,"context_line":"                agent.plugin_rpc.update_device_list, up_ports_ids))"},{"line_number":338,"context_line":"        ips \u003d [port[\u0027fixed_ips\u0027][0][\u0027ip_address\u0027] for port in ports]"},{"line_number":339,"context_line":"        with net_helpers.async_ping(self.namespace, ips):"},{"line_number":340,"context_line":"            agent.setup_integration_br()"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"    def test_assert_pings_during_br_tun_setup_not_lost(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"1a4dcd0f_5a6967bd","line":339,"updated":"2015-08-04 20:08:49.000000000","message":"with net_helpers.async_ping(self.namespace, ips) as running:\n    while running():\n        agent.setup_integration_br()\n        time.sleep(0.25)","commit_id":"1e9d1fc2e12046e2bbdfdaefbf1e792fa5c732ff"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"39fbbf48b5b61985414426503300043660ea7e1e","unresolved":false,"context_lines":[{"line_number":336,"context_line":"            lambda: self._expected_plugin_rpc_call("},{"line_number":337,"context_line":"                agent.plugin_rpc.update_device_list, up_ports_ids))"},{"line_number":338,"context_line":"        ips \u003d [port[\u0027fixed_ips\u0027][0][\u0027ip_address\u0027] for port in ports]"},{"line_number":339,"context_line":"        with net_helpers.async_ping(self.namespace, ips):"},{"line_number":340,"context_line":"            agent.setup_integration_br()"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"    def test_assert_pings_during_br_tun_setup_not_lost(self):"}],"source_content_type":"text/x-python","patch_set":46,"id":"1a4dcd0f_142c01aa","line":339,"in_reply_to":"1a4dcd0f_5a6967bd","updated":"2015-08-05 11:28:23.000000000","message":"Done","commit_id":"1e9d1fc2e12046e2bbdfdaefbf1e792fa5c732ff"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d5db7f5dae137a89e32e567d85e8864e2521fc6b","unresolved":false,"context_lines":[{"line_number":355,"context_line":"        ips \u003d [port[\u0027fixed_ips\u0027][0][\u0027ip_address\u0027] for port in ports]"},{"line_number":356,"context_line":"        with net_helpers.async_ping(self.namespace, ips) as running:"},{"line_number":357,"context_line":"            while running():"},{"line_number":358,"context_line":"                agent.setup_tunnel_br_flows()"},{"line_number":359,"context_line":"                time.sleep(0.25)"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_30ea89ad","line":358,"updated":"2015-08-10 16:22:24.000000000","message":"these pings don\u0027t go through any tunnel so I am not sure I can see the value of this test","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"75b553a9bb8c105723294d4376316d0f68efb921","unresolved":false,"context_lines":[{"line_number":355,"context_line":"        ips \u003d [port[\u0027fixed_ips\u0027][0][\u0027ip_address\u0027] for port in ports]"},{"line_number":356,"context_line":"        with net_helpers.async_ping(self.namespace, ips) as running:"},{"line_number":357,"context_line":"            while running():"},{"line_number":358,"context_line":"                agent.setup_tunnel_br_flows()"},{"line_number":359,"context_line":"                time.sleep(0.25)"}],"source_content_type":"text/x-python","patch_set":49,"id":"1a4dcd0f_114b73b2","line":358,"in_reply_to":"1a4dcd0f_30ea89ad","updated":"2015-08-12 09:42:44.000000000","message":"I don\u0027t know how it could be improved, so I will remove this test","commit_id":"ccb3a36fb210080f6608ec35caf3f2fd596249c6"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b4347a4ce54d1cabcba329f9219c5c3cc91b49f0","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        ips \u003d [port[\u0027fixed_ips\u0027][0][\u0027ip_address\u0027] for port in self.ports]"},{"line_number":65,"context_line":"        with net_helpers.async_ping(self.namespace, ips) as running:"},{"line_number":66,"context_line":"            while running():"},{"line_number":67,"context_line":"                self.agent.setup_integration_br()"},{"line_number":68,"context_line":"                time.sleep(0.25)"}],"source_content_type":"text/x-python","patch_set":55,"id":"fa1b9901_f303e0b6","line":67,"updated":"2015-08-18 09:29:42.000000000","message":"neat! ;)","commit_id":"fd75fb460337bb7378ea9c067345884b1153ffe4"}],"neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/ovs_ofctl/ovs_bridge_test_base.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a3b3177da67a0d21009f365235f9e0a3e9331596","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        table \u003d 23"},{"line_number":85,"context_line":"        with mock.patch.object(self.br, \u0027run_ofctl\u0027) as run_ofctl:"},{"line_number":86,"context_line":"            self.br.dump_flows(table)"},{"line_number":87,"context_line":"            run_ofctl.assert_has_calls([mock.call(\"dump-flows\", [\u0027table\u003d23\u0027])])"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def test_dump_all_flows(self):"},{"line_number":90,"context_line":"        with mock.patch.object(self.br, \u0027run_ofctl\u0027) as run_ofctl:"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_1b24d35b","line":87,"updated":"2015-07-15 14:44:58.000000000","message":"use \u0027table\u003d%d\u0027 % table or don\u0027t define table","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"f4d070ee3162c8a3f2a92f630b711187239ee30d","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        table \u003d 23"},{"line_number":85,"context_line":"        with mock.patch.object(self.br, \u0027run_ofctl\u0027) as run_ofctl:"},{"line_number":86,"context_line":"            self.br.dump_flows(table)"},{"line_number":87,"context_line":"            run_ofctl.assert_has_calls([mock.call(\"dump-flows\", [\u0027table\u003d23\u0027])])"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def test_dump_all_flows(self):"},{"line_number":90,"context_line":"        with mock.patch.object(self.br, \u0027run_ofctl\u0027) as run_ofctl:"}],"source_content_type":"text/x-python","patch_set":32,"id":"9a41bdd9_2c0b887e","line":87,"in_reply_to":"9a41bdd9_1b24d35b","updated":"2015-07-16 00:21:22.000000000","message":"Done","commit_id":"c0608af50b95d8ce7061bd90190b92c6639c57db"}],"neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"19b592f643eb254a26e3519d5b4f2a9c49b66aed","unresolved":false,"context_lines":[{"line_number":777,"context_line":"                            self.agent.get_peer_name(\u0027int-\u0027, bridge2))"},{"line_number":778,"context_line":""},{"line_number":779,"context_line":"    def test_setup_tunnel_br(self):"},{"line_number":780,"context_line":"        self.tun_br \u003d None"},{"line_number":781,"context_line":"        with mock.patch.object(self.agent.int_br,"},{"line_number":782,"context_line":"                               \"add_patch_port\","},{"line_number":783,"context_line":"                               return_value\u003d1) as int_patch_port,\\"}],"source_content_type":"text/x-python","patch_set":55,"id":"fa1b9901_1ae8e0e1","line":780,"updated":"2015-08-18 12:28:19.000000000","message":"why None?\nthis seems like a dead var.","commit_id":"fd75fb460337bb7378ea9c067345884b1153ffe4"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"4b7ed2227b893b6c6dc376b233c5642062450350","unresolved":false,"context_lines":[{"line_number":777,"context_line":"                            self.agent.get_peer_name(\u0027int-\u0027, bridge2))"},{"line_number":778,"context_line":""},{"line_number":779,"context_line":"    def test_setup_tunnel_br(self):"},{"line_number":780,"context_line":"        self.tun_br \u003d None"},{"line_number":781,"context_line":"        with mock.patch.object(self.agent.int_br,"},{"line_number":782,"context_line":"                               \"add_patch_port\","},{"line_number":783,"context_line":"                               return_value\u003d1) as int_patch_port,\\"}],"source_content_type":"text/x-python","patch_set":55,"id":"fa1b9901_955e01e8","line":780,"in_reply_to":"fa1b9901_1ae8e0e1","updated":"2015-08-18 12:53:40.000000000","message":"Done","commit_id":"fd75fb460337bb7378ea9c067345884b1153ffe4"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"19b592f643eb254a26e3519d5b4f2a9c49b66aed","unresolved":false,"context_lines":[{"line_number":1093,"context_line":"            expected_calls \u003d [mock.call(self.agent.tun_br, \u0027vxlan-64651f0f\u0027,"},{"line_number":1094,"context_line":"                                        \u0027100.101.31.15\u0027, \u0027vxlan\u0027)]"},{"line_number":1095,"context_line":"            _setup_tunnel_port_fn.assert_has_calls(expected_calls)"},{"line_number":1096,"context_line":"            cleanup.assert_has_calls([])"},{"line_number":1097,"context_line":""},{"line_number":1098,"context_line":"    def test_tunnel_sync_invalid_ip_address(self):"},{"line_number":1099,"context_line":"        fake_tunnel_details \u003d {\u0027tunnels\u0027: [{\u0027ip_address\u0027: \u0027300.300.300.300\u0027},"}],"source_content_type":"text/x-python","patch_set":55,"id":"fa1b9901_1f40d2a4","line":1096,"updated":"2015-08-18 12:28:19.000000000","message":"isn\u0027t this assertion no-op?\n\ndo you mean self.assertEqual([], cleanup.mock_calls) ?","commit_id":"fd75fb460337bb7378ea9c067345884b1153ffe4"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"4b7ed2227b893b6c6dc376b233c5642062450350","unresolved":false,"context_lines":[{"line_number":1093,"context_line":"            expected_calls \u003d [mock.call(self.agent.tun_br, \u0027vxlan-64651f0f\u0027,"},{"line_number":1094,"context_line":"                                        \u0027100.101.31.15\u0027, \u0027vxlan\u0027)]"},{"line_number":1095,"context_line":"            _setup_tunnel_port_fn.assert_has_calls(expected_calls)"},{"line_number":1096,"context_line":"            cleanup.assert_has_calls([])"},{"line_number":1097,"context_line":""},{"line_number":1098,"context_line":"    def test_tunnel_sync_invalid_ip_address(self):"},{"line_number":1099,"context_line":"        fake_tunnel_details \u003d {\u0027tunnels\u0027: [{\u0027ip_address\u0027: \u0027300.300.300.300\u0027},"}],"source_content_type":"text/x-python","patch_set":55,"id":"fa1b9901_35493532","line":1096,"in_reply_to":"fa1b9901_1f40d2a4","updated":"2015-08-18 12:53:40.000000000","message":"Done","commit_id":"fd75fb460337bb7378ea9c067345884b1153ffe4"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"19b592f643eb254a26e3519d5b4f2a9c49b66aed","unresolved":false,"context_lines":[{"line_number":1112,"context_line":"                                                          \u0027vxlan-64646464\u0027,"},{"line_number":1113,"context_line":"                                                          \u0027100.100.100.100\u0027,"},{"line_number":1114,"context_line":"                                                          \u0027vxlan\u0027)"},{"line_number":1115,"context_line":"            cleanup.assert_has_calls([])"},{"line_number":1116,"context_line":""},{"line_number":1117,"context_line":"    def test_tunnel_update(self):"},{"line_number":1118,"context_line":"        kwargs \u003d {\u0027tunnel_ip\u0027: \u002710.10.10.10\u0027,"}],"source_content_type":"text/x-python","patch_set":55,"id":"fa1b9901_9f12a2b3","line":1115,"updated":"2015-08-18 12:28:19.000000000","message":"ditto","commit_id":"fd75fb460337bb7378ea9c067345884b1153ffe4"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"4b7ed2227b893b6c6dc376b233c5642062450350","unresolved":false,"context_lines":[{"line_number":1112,"context_line":"                                                          \u0027vxlan-64646464\u0027,"},{"line_number":1113,"context_line":"                                                          \u0027100.100.100.100\u0027,"},{"line_number":1114,"context_line":"                                                          \u0027vxlan\u0027)"},{"line_number":1115,"context_line":"            cleanup.assert_has_calls([])"},{"line_number":1116,"context_line":""},{"line_number":1117,"context_line":"    def test_tunnel_update(self):"},{"line_number":1118,"context_line":"        kwargs \u003d {\u0027tunnel_ip\u0027: \u002710.10.10.10\u0027,"}],"source_content_type":"text/x-python","patch_set":55,"id":"fa1b9901_555869fa","line":1115,"in_reply_to":"fa1b9901_9f12a2b3","updated":"2015-08-18 12:53:40.000000000","message":"Done","commit_id":"fd75fb460337bb7378ea9c067345884b1153ffe4"}]}
