)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":11,"context_line":"This is necessary to be able to use instance of iptables_manager"},{"line_number":12,"context_line":"used in firewall driver also in L2 extension drivers (like qos)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This patch refactors little bit iptables_manager code to make possible"},{"line_number":15,"context_line":"to initialize e.g. mangle or nat table on demand, even is iptables"},{"line_number":16,"context_line":"is created as \"state_less\""},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"df87a7cf_86bb95e3","line":14,"updated":"2017-12-15 17:55:06.000000000","message":"if those tables may be useful for extensions, shouldn\u0027t we just initialize them regardless in __init__? then you won\u0027t need to call initialize_mangle_table from extensions manually etc. Or what\u0027s the point of it?","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":11,"context_line":"This is necessary to be able to use instance of iptables_manager"},{"line_number":12,"context_line":"used in firewall driver also in L2 extension drivers (like qos)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This patch refactors little bit iptables_manager code to make possible"},{"line_number":15,"context_line":"to initialize e.g. mangle or nat table on demand, even is iptables"},{"line_number":16,"context_line":"is created as \"state_less\""},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"df87a7cf_9a242162","line":14,"in_reply_to":"df87a7cf_86bb95e3","updated":"2017-12-18 12:18:07.000000000","message":"I didn\u0027t want to initialize it directly by passing \"state_less\u003dFalse\" in https://github.com/openstack/neutron/blob/master/neutron/agent/linux/iptables_firewall.py#L61 because then it would be initialized like that always for linuxbridge and also for ovs agent\nAnd it\u0027s not necessary to be like that always. We need to initialize mangle table only in case if \"qos\" is turned on for linuxbridge agent.","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":12,"context_line":"used in firewall driver also in L2 extension drivers (like qos)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This patch refactors little bit iptables_manager code to make possible"},{"line_number":15,"context_line":"to initialize e.g. mangle or nat table on demand, even is iptables"},{"line_number":16,"context_line":"is created as \"state_less\""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I3b66e49b7f176124e8aea3eb96d0d465f1ab1ea0"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"df87a7cf_93bbd9e3","line":15,"range":{"start_line":15,"start_character":55,"end_line":15,"end_character":56},"updated":"2017-12-15 17:55:06.000000000","message":"if","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":12,"context_line":"used in firewall driver also in L2 extension drivers (like qos)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This patch refactors little bit iptables_manager code to make possible"},{"line_number":15,"context_line":"to initialize e.g. mangle or nat table on demand, even is iptables"},{"line_number":16,"context_line":"is created as \"state_less\""},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I3b66e49b7f176124e8aea3eb96d0d465f1ab1ea0"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"df87a7cf_bab7a5f5","line":15,"range":{"start_line":15,"start_character":55,"end_line":15,"end_character":56},"in_reply_to":"df87a7cf_93bbd9e3","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"}],"doc/source/contributor/internals/l2_agent_extensions.rst":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"* neutron.plugins.ml2.drivers.agent.common_agent_extension_api"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Common agent extension API object is used by L2 agents which are based on"},{"line_number":51,"context_line":"``neutron.plugins.ml2.drivers.agent._common_agent`` (e.g.  ``Linuxbridge"},{"line_number":52,"context_line":"agent``) and includes method that return instance of IptablesManager class"},{"line_number":53,"context_line":"which is used by L2 agent to manager security group rules::"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_5548d185","line":50,"range":{"start_line":50,"start_character":0,"end_line":50,"end_character":6},"updated":"2017-12-15 22:49:32.000000000","message":"s/The common","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"* neutron.plugins.ml2.drivers.agent.common_agent_extension_api"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Common agent extension API object is used by L2 agents which are based on"},{"line_number":51,"context_line":"``neutron.plugins.ml2.drivers.agent._common_agent`` (e.g.  ``Linuxbridge"},{"line_number":52,"context_line":"agent``) and includes method that return instance of IptablesManager class"},{"line_number":53,"context_line":"which is used by L2 agent to manager security group rules::"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_5ad0d91f","line":50,"range":{"start_line":50,"start_character":0,"end_line":50,"end_character":6},"in_reply_to":"df87a7cf_5548d185","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Common agent extension API object is used by L2 agents which are based on"},{"line_number":51,"context_line":"``neutron.plugins.ml2.drivers.agent._common_agent`` (e.g.  ``Linuxbridge"},{"line_number":52,"context_line":"agent``) and includes method that return instance of IptablesManager class"},{"line_number":53,"context_line":"which is used by L2 agent to manager security group rules::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"#. get_iptables_manager"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_f52325bd","line":52,"range":{"start_line":52,"start_character":22,"end_line":52,"end_character":53},"updated":"2017-12-15 22:49:32.000000000","message":"s/a method that returns an instance of the","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Common agent extension API object is used by L2 agents which are based on"},{"line_number":51,"context_line":"``neutron.plugins.ml2.drivers.agent._common_agent`` (e.g.  ``Linuxbridge"},{"line_number":52,"context_line":"agent``) and includes method that return instance of IptablesManager class"},{"line_number":53,"context_line":"which is used by L2 agent to manager security group rules::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"#. get_iptables_manager"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_7acd9d83","line":52,"range":{"start_line":52,"start_character":22,"end_line":52,"end_character":53},"in_reply_to":"df87a7cf_f52325bd","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":50,"context_line":"Common agent extension API object is used by L2 agents which are based on"},{"line_number":51,"context_line":"``neutron.plugins.ml2.drivers.agent._common_agent`` (e.g.  ``Linuxbridge"},{"line_number":52,"context_line":"agent``) and includes method that return instance of IptablesManager class"},{"line_number":53,"context_line":"which is used by L2 agent to manager security group rules::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"#. get_iptables_manager"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_13cfc97f","line":53,"range":{"start_line":53,"start_character":29,"end_line":53,"end_character":37},"updated":"2017-12-15 17:55:06.000000000","message":"manage","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":50,"context_line":"Common agent extension API object is used by L2 agents which are based on"},{"line_number":51,"context_line":"``neutron.plugins.ml2.drivers.agent._common_agent`` (e.g.  ``Linuxbridge"},{"line_number":52,"context_line":"agent``) and includes method that return instance of IptablesManager class"},{"line_number":53,"context_line":"which is used by L2 agent to manager security group rules::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"#. get_iptables_manager"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_9a80a1f9","line":53,"range":{"start_line":53,"start_character":29,"end_line":53,"end_character":37},"in_reply_to":"df87a7cf_13cfc97f","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":52,"context_line":"agent``) and includes method that return instance of IptablesManager class"},{"line_number":53,"context_line":"which is used by L2 agent to manager security group rules::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"#. get_iptables_manager"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"It also includes method which allows L2 agent to set instance of"},{"line_number":58,"context_line":"IptablesManager class in agent extension API."}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_754b9586","line":55,"updated":"2017-12-15 22:49:32.000000000","message":"And set_iptables_manager","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":52,"context_line":"agent``) and includes method that return instance of IptablesManager class"},{"line_number":53,"context_line":"which is used by L2 agent to manager security group rules::"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"#. get_iptables_manager"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"It also includes method which allows L2 agent to set instance of"},{"line_number":58,"context_line":"IptablesManager class in agent extension API."}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_ba0fa586","line":55,"in_reply_to":"df87a7cf_754b9586","updated":"2017-12-18 12:18:07.000000000","message":"I removed this method from agent api class","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":55,"context_line":"#. get_iptables_manager"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"It also includes method which allows L2 agent to set instance of"},{"line_number":58,"context_line":"IptablesManager class in agent extension API."}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_3528ac84","line":58,"updated":"2017-12-15 22:49:32.000000000","message":"These should probably go above on L53, and maybe the \"why\" goes here:\n\nExtensions that need to manage security group rules must use the same IptablesManager instance as the L2 agent, otherwise it could cause a race condition where rules are not applied properly.","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":55,"context_line":"#. get_iptables_manager"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"It also includes method which allows L2 agent to set instance of"},{"line_number":58,"context_line":"IptablesManager class in agent extension API."}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_5a89b9c7","line":58,"in_reply_to":"df87a7cf_3528ac84","updated":"2017-12-18 12:18:07.000000000","message":"ok, I rephrased it now","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"f1499e9b147b1e3f2f59b71d8f21609170a5d1a2","unresolved":false,"context_lines":[{"line_number":48,"context_line":"* neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_agent_extension_api"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"The Linux bridge agent extension API object includes a method that returns an"},{"line_number":51,"context_line":"instance of the IptablesManager class, which is used by L2 agent to manage"},{"line_number":52,"context_line":"security group rules::"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"#. get_iptables_manager"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f91af0f_4163601b","line":51,"range":{"start_line":51,"start_character":56,"end_line":51,"end_character":58},"updated":"2018-01-03 02:42:26.000000000","message":"s/the L2","commit_id":"08584799e35760df9a4eae866db89218b6266c47"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"add83ac59aef14469f93a5f722041e89a5b24f88","unresolved":false,"context_lines":[{"line_number":48,"context_line":"* neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_agent_extension_api"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"The Linux bridge agent extension API object includes a method that returns an"},{"line_number":51,"context_line":"instance of the IptablesManager class, which is used by L2 agent to manage"},{"line_number":52,"context_line":"security group rules::"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"#. get_iptables_manager"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9f91af0f_25a17faa","line":51,"range":{"start_line":51,"start_character":56,"end_line":51,"end_character":58},"in_reply_to":"9f91af0f_4163601b","updated":"2018-01-03 12:15:28.000000000","message":"Done","commit_id":"08584799e35760df9a4eae866db89218b6266c47"}],"doc/source/contributor/internals/quality_of_service.rst":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":380,"context_line":"`here \u003chttp://unix.stackexchange.com/a/100797\u003e`_. This solution is similar to Open"},{"line_number":381,"context_line":"vSwitch implementation."},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_b3a37db1","line":383,"range":{"start_line":383,"start_character":10,"end_line":383,"end_character":15},"updated":"2017-12-15 17:55:06.000000000","message":"bridge","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":380,"context_line":"`here \u003chttp://unix.stackexchange.com/a/100797\u003e`_. This solution is similar to Open"},{"line_number":381,"context_line":"vSwitch implementation."},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_53831105","line":383,"range":{"start_line":383,"start_character":51,"end_line":383,"end_character":64},"updated":"2017-12-15 17:55:06.000000000","message":"on the of the?","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":380,"context_line":"`here \u003chttp://unix.stackexchange.com/a/100797\u003e`_. This solution is similar to Open"},{"line_number":381,"context_line":"vSwitch implementation."},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_da4ce99f","line":383,"range":{"start_line":383,"start_character":51,"end_line":383,"end_character":64},"in_reply_to":"df87a7cf_53831105","updated":"2017-12-18 12:18:07.000000000","message":"fixed","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":380,"context_line":"`here \u003chttp://unix.stackexchange.com/a/100797\u003e`_. This solution is similar to Open"},{"line_number":381,"context_line":"vSwitch implementation."},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_ba47a577","line":383,"range":{"start_line":383,"start_character":10,"end_line":383,"end_character":15},"in_reply_to":"df87a7cf_b3a37db1","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"QoS driver design"},{"line_number":388,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_3378cd29","line":385,"updated":"2017-12-15 17:55:06.000000000","message":"missing trailing dot","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"QoS driver design"},{"line_number":388,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_b53b5ccf","line":385,"range":{"start_line":385,"start_character":17,"end_line":385,"end_character":27},"updated":"2017-12-15 22:49:32.000000000","message":"s/the ``mangle``","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"QoS driver design"},{"line_number":388,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_354d0c72","line":385,"range":{"start_line":385,"start_character":37,"end_line":385,"end_character":49},"updated":"2017-12-15 22:49:32.000000000","message":"why is iptables in `` ?","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"QoS driver design"},{"line_number":388,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_5a60d901","line":385,"in_reply_to":"df87a7cf_3378cd29","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"QoS driver design"},{"line_number":388,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_ba3c85e1","line":385,"range":{"start_line":385,"start_character":37,"end_line":385,"end_character":49},"in_reply_to":"df87a7cf_354d0c72","updated":"2017-12-18 12:18:07.000000000","message":"changed","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":382,"context_line":""},{"line_number":383,"context_line":"The Linux brige DSCP marking implementation relies on the of the"},{"line_number":384,"context_line":"common_extension_api to request access to the IptablesManager class and to"},{"line_number":385,"context_line":"manage chains in ``mangle`` table in ``iptables``"},{"line_number":386,"context_line":""},{"line_number":387,"context_line":"QoS driver design"},{"line_number":388,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df87a7cf_5a2539c1","line":385,"range":{"start_line":385,"start_character":17,"end_line":385,"end_character":27},"in_reply_to":"df87a7cf_b53b5ccf","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"}],"neutron/plugins/ml2/drivers/agent/_agent_manager_base.py":[{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"16a47d291600f6d3319c71f9860a109983e2ab54","unresolved":false,"context_lines":[{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: class - the class containing Agent Extension API class"},{"line_number":165,"context_line":"        \"\"\""},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf8cb3f7_306d2604","line":164,"range":{"start_line":164,"start_character":17,"end_line":164,"end_character":22},"updated":"2017-12-26 08:39:27.000000000","message":"return class?\n\nhttps://review.openstack.org/#/c/527965/4/doc/source/contributor/internals/l2_agent_extensions.rst@51  states that its an instance :)","commit_id":"08584799e35760df9a4eae866db89218b6266c47"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ea2115b7ca8b7cf88bc03d10c913dc40f608fb3a","unresolved":false,"context_lines":[{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: class - the class containing Agent Extension API class"},{"line_number":165,"context_line":"        \"\"\""},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf8cb3f7_d46dc798","line":164,"range":{"start_line":164,"start_character":17,"end_line":164,"end_character":22},"in_reply_to":"bf8cb3f7_306d2604","updated":"2017-12-26 21:49:16.000000000","message":"yes, but I was trying to be consistent with other docstrings in this file. Please check e.g. \"get_rpc_callbacks()\" method above - it is the same thing","commit_id":"08584799e35760df9a4eae866db89218b6266c47"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9c233ea80b288414916a881a5ca6e90915b6562a","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    @abc.abstractmethod"},{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: class - the class containing Agent Extension API class"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f91af0f_341761f0","line":161,"range":{"start_line":161,"start_character":29,"end_line":161,"end_character":36},"updated":"2018-01-04 00:52:09.000000000","message":"please describe what can be passed via kwargs. Or is it free game for anything? Does each agent define what it\u0027s interested in passing?","commit_id":"34d31a8d2efb254b34d902900f40777f20eee859"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7b92d13be8dcd05faddca11d7eb2c8b206f21ac8","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        \"\"\""},{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    @abc.abstractmethod"},{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: class - the class containing Agent Extension API class"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f91af0f_4b8ee42e","line":161,"range":{"start_line":161,"start_character":29,"end_line":161,"end_character":36},"in_reply_to":"9f91af0f_341761f0","updated":"2018-01-05 10:58:53.000000000","message":"in fact it\u0027s free game for anything here. I added it because I needed to pass instance of \"sg_agent\" from linuxbridge agent to extension api class but for example macvtap agent will not need it and it could need maybe something else in future.\n\nShould I describe it here with more details?","commit_id":"34d31a8d2efb254b34d902900f40777f20eee859"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9c233ea80b288414916a881a5ca6e90915b6562a","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    @abc.abstractmethod"},{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: class - the class containing Agent Extension API class"},{"line_number":165,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"9f91af0f_d42e3542","line":162,"range":{"start_line":162,"start_character":51,"end_line":162,"end_character":56},"updated":"2018-01-04 00:52:09.000000000","message":"you mean instance of the class right?","commit_id":"34d31a8d2efb254b34d902900f40777f20eee859"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7b92d13be8dcd05faddca11d7eb2c8b206f21ac8","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    @abc.abstractmethod"},{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: class - the class containing Agent Extension API class"},{"line_number":165,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"9f91af0f_8b170cee","line":162,"range":{"start_line":162,"start_character":51,"end_line":162,"end_character":56},"in_reply_to":"9f91af0f_d42e3542","updated":"2018-01-05 10:58:53.000000000","message":"yes, changed","commit_id":"34d31a8d2efb254b34d902900f40777f20eee859"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"9c233ea80b288414916a881a5ca6e90915b6562a","unresolved":false,"context_lines":[{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: class - the class containing Agent Extension API class"},{"line_number":165,"context_line":"        \"\"\""},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f91af0f_9428ad34","line":164,"updated":"2018-01-04 00:52:09.000000000","message":"I don\u0027t think you return a class","commit_id":"34d31a8d2efb254b34d902900f40777f20eee859"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7b92d13be8dcd05faddca11d7eb2c8b206f21ac8","unresolved":false,"context_lines":[{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: class - the class containing Agent Extension API class"},{"line_number":165,"context_line":"        \"\"\""},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":5,"id":"9f91af0f_8b9aac6b","line":164,"in_reply_to":"9f91af0f_9428ad34","updated":"2018-01-05 10:58:53.000000000","message":"changed","commit_id":"34d31a8d2efb254b34d902900f40777f20eee859"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b0e9b5b56cc5b831e1dc20582ea394047f892a8d","unresolved":false,"context_lines":[{"line_number":159,"context_line":""},{"line_number":160,"context_line":"    @abc.abstractmethod"},{"line_number":161,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":162,"context_line":"        \"\"\"Get L2 extensions drivers API interface class."},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        :return: instance of the class containing Agent Extension API"},{"line_number":165,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"9f91af0f_3450985d","line":162,"range":{"start_line":162,"start_character":51,"end_line":162,"end_character":56},"updated":"2018-01-05 17:05:23.000000000","message":"class!","commit_id":"cbee0f9f88ff34f70ff19590471b5405e06ff2a9"}],"neutron/plugins/ml2/drivers/agent/_common_agent.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        self.quitting_rpc_timeout \u003d quitting_rpc_timeout"},{"line_number":69,"context_line":"        self.agent_type \u003d agent_type"},{"line_number":70,"context_line":"        self.agent_binary \u003d agent_binary"},{"line_number":71,"context_line":"        self.agent_api \u003d common_agent_extension_api.CommonAgentExtensionAPI()"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    def _validate_manager_class(self):"},{"line_number":74,"context_line":"        if not isinstance(self.mgr,"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_f34905b7","line":71,"updated":"2017-12-15 17:55:06.000000000","message":"I am not sure putting this code into _common_agent module is the right thing to do. This module is used by the following agents: linuxbridge and macvtap. For what I understand, it only makes sense for linuxbridge (macvtap supports noop firewall driver only). Instead of exposing this \u0027agent_api\u0027 to all consuming agents, maybe we should have it specific to linuxbridge. Then our macvtap agent would not receive an api object with get_iptables_manager method, that doesn\u0027t make sense in this agent\u0027 context.\n\nNow, I understand that the code to initialize extension manager is common to all consuming agents, so we may still need to pass an api object to all of them. To have both common initialization code and to isolate iptables manager logic from macvtap, I think what we could do is:\n\n1. add an abstract method to the common agent class that would return api object class (or maybe the method can be not abstract but provide some default implementation, f.e. just return a dummy class with no methods, or even None).\n\n2. then call this new method to initialize agent_api.\n\n3. Finally, pass the object into extension manager (you already have this step, listing for completeness).\n\nThoughts?","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        self.quitting_rpc_timeout \u003d quitting_rpc_timeout"},{"line_number":69,"context_line":"        self.agent_type \u003d agent_type"},{"line_number":70,"context_line":"        self.agent_binary \u003d agent_binary"},{"line_number":71,"context_line":"        self.agent_api \u003d common_agent_extension_api.CommonAgentExtensionAPI()"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    def _validate_manager_class(self):"},{"line_number":74,"context_line":"        if not isinstance(self.mgr,"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_0b31a15a","line":71,"in_reply_to":"df87a7cf_f34905b7","updated":"2017-12-18 12:18:07.000000000","message":"You\u0027re right. I moved it to  LinuxBridgeManager class and did very similar like it already was for get_rpc_callbacks()","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        self.sg_agent \u003d agent_sg_rpc.SecurityGroupAgentRpc("},{"line_number":154,"context_line":"            self.context, self.sg_plugin_rpc, defer_refresh_firewall\u003dTrue)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        if hasattr(self.sg_agent.firewall, \"iptables\"):"},{"line_number":157,"context_line":"            self.agent_api.set_iptables_manager("},{"line_number":158,"context_line":"                self.sg_agent.firewall.iptables)"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_7302d571","line":156,"updated":"2017-12-15 17:55:06.000000000","message":"I don\u0027t think it\u0027s a good way to check it. We should instead inspect value for firewall_driver option to be one of iptables/iptables_hybrid (+maybe their full python import paths counterparts). Otherwise if you let\u0027s say have a 3party driver that also has the attribute but doesn\u0027t use iptables manager, then you may have a broken agent.","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        self.sg_agent \u003d agent_sg_rpc.SecurityGroupAgentRpc("},{"line_number":154,"context_line":"            self.context, self.sg_plugin_rpc, defer_refresh_firewall\u003dTrue)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        if hasattr(self.sg_agent.firewall, \"iptables\"):"},{"line_number":157,"context_line":"            self.agent_api.set_iptables_manager("},{"line_number":158,"context_line":"                self.sg_agent.firewall.iptables)"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_2bf02591","line":156,"in_reply_to":"df87a7cf_7302d571","updated":"2017-12-18 12:18:07.000000000","message":"Ok, I changed it to check config option","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        self.ext_manager \u003d ("},{"line_number":181,"context_line":"            ext_manager.L2AgentExtensionsManager(cfg.CONF))"},{"line_number":182,"context_line":"        self.ext_manager.initialize("},{"line_number":183,"context_line":"            connection, self.mgr.get_extension_driver_type(), self.agent_api)"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    def _clean_network_ports(self, device):"},{"line_number":186,"context_line":"        for netid, ports_list in self.network_ports.items():"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_539eb107","line":183,"updated":"2017-12-15 17:55:06.000000000","message":"to avoid the ugly hasattr() check in this class, you could instead override init_extension_manager in linuxbridge agent to look something like:\n\ndef init_extension_manager(...):\n    self.ext_manager \u003d super(...).init_extension_manager(...)\n    if CONF.firewall_driver in IPTABLES_DRIVERS:\n        self.ext_manager.set_iptables_manager(...)","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        self.ext_manager \u003d ("},{"line_number":181,"context_line":"            ext_manager.L2AgentExtensionsManager(cfg.CONF))"},{"line_number":182,"context_line":"        self.ext_manager.initialize("},{"line_number":183,"context_line":"            connection, self.mgr.get_extension_driver_type(), self.agent_api)"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    def _clean_network_ports(self, device):"},{"line_number":186,"context_line":"        for netid, ports_list in self.network_ports.items():"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_eb147da2","line":183,"in_reply_to":"df87a7cf_539eb107","updated":"2017-12-18 12:18:07.000000000","message":"I moved it to linuxbridge and changed little bit","commit_id":"922b97a1353c090d39c30227278e5267882041c4"}],"neutron/plugins/ml2/drivers/agent/common_agent_extension_api.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"45a40c889c837215007b812a955b6db18ed51510","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        \"\"\""},{"line_number":32,"context_line":"        self.iptables_manager \u003d iptables_manager"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def request_iptables_manager(self):"},{"line_number":35,"context_line":"        \"\"\"Allows extensions to request an iptables manager, used by agent,"},{"line_number":36,"context_line":"        to use for manage extension specific iptables rules"},{"line_number":37,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"df87a7cf_05b560ee","line":34,"range":{"start_line":34,"start_character":8,"end_line":34,"end_character":15},"updated":"2017-12-14 14:22:17.000000000","message":"nit: maybe \"get\" ?","commit_id":"8e0b071dea5d7afa90a12b876f175d97d586dd00"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"61c500ec960d30b19bbfe19cc766beb0c1f34c4f","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        \"\"\""},{"line_number":32,"context_line":"        self.iptables_manager \u003d iptables_manager"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def request_iptables_manager(self):"},{"line_number":35,"context_line":"        \"\"\"Allows extensions to request an iptables manager, used by agent,"},{"line_number":36,"context_line":"        to use for manage extension specific iptables rules"},{"line_number":37,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"df87a7cf_aa7f85a9","line":34,"range":{"start_line":34,"start_character":8,"end_line":34,"end_character":15},"in_reply_to":"df87a7cf_05b560ee","updated":"2017-12-15 14:30:48.000000000","message":"Done","commit_id":"8e0b071dea5d7afa90a12b876f175d97d586dd00"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        super(CommonAgentExtensionAPI, self).__init__()"},{"line_number":26,"context_line":"        self.iptables_manager \u003d None"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def set_iptables_manager(self, iptables_manager):"},{"line_number":29,"context_line":"        \"\"\"Allows agent to set an iptables manager, which can then be"},{"line_number":30,"context_line":"        requested by extensions"},{"line_number":31,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_73bad56e","line":28,"updated":"2017-12-15 17:55:06.000000000","message":"this method and the next one are not really common; macvtap agent doesn\u0027t use iptables manager. It will actually fail to start if you try to configure firewall_driver to anything but \u0027noop\u0027. Because of that, I don\u0027t think that those methods belong to common code for agents.","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        super(CommonAgentExtensionAPI, self).__init__()"},{"line_number":26,"context_line":"        self.iptables_manager \u003d None"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def set_iptables_manager(self, iptables_manager):"},{"line_number":29,"context_line":"        \"\"\"Allows agent to set an iptables manager, which can then be"},{"line_number":30,"context_line":"        requested by extensions"},{"line_number":31,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_cb0f3986","line":28,"in_reply_to":"df87a7cf_73bad56e","updated":"2017-12-18 12:18:07.000000000","message":"yes, moved to linuxbridge","commit_id":"922b97a1353c090d39c30227278e5267882041c4"}],"neutron/plugins/ml2/drivers/linuxbridge/agent/extension_drivers/qos_driver.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"45a40c889c837215007b812a955b6db18ed51510","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            self.iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":60,"context_line":"                state_less\u003dTrue,"},{"line_number":61,"context_line":"                use_ipv6\u003dipv6_utils.is_enabled_and_bind_by_default())"},{"line_number":62,"context_line":"        self.iptables_manager.initialize_mangle_table()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _dscp_chain_name(self, direction, device):"},{"line_number":65,"context_line":"        return iptables_manager.get_chain_name("}],"source_content_type":"text/x-python","patch_set":1,"id":"df87a7cf_05980068","line":62,"updated":"2017-12-14 14:22:17.000000000","message":"Calling this multiple times has no bad effects, right?  Doesn\u0027t look like it does.","commit_id":"8e0b071dea5d7afa90a12b876f175d97d586dd00"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"61c500ec960d30b19bbfe19cc766beb0c1f34c4f","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            self.iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":60,"context_line":"                state_less\u003dTrue,"},{"line_number":61,"context_line":"                use_ipv6\u003dipv6_utils.is_enabled_and_bind_by_default())"},{"line_number":62,"context_line":"        self.iptables_manager.initialize_mangle_table()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _dscp_chain_name(self, direction, device):"},{"line_number":65,"context_line":"        return iptables_manager.get_chain_name("}],"source_content_type":"text/x-python","patch_set":1,"id":"df87a7cf_e7cf0855","line":62,"in_reply_to":"df87a7cf_05980068","updated":"2017-12-15 14:30:48.000000000","message":"I don\u0027t think so as it will always set only standard chains in table.\nAnd also in fact it isn\u0027t called multiple times as iptables_manager is created with \"state_less\u003dTrue\" so it\u0027s not called in __init__ method","commit_id":"8e0b071dea5d7afa90a12b876f175d97d586dd00"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def initialize(self):"},{"line_number":53,"context_line":"        LOG.info(\"Initializing Linux bridge QoS extension\")"},{"line_number":54,"context_line":"        if self.agent_api:"},{"line_number":55,"context_line":"            self.iptables_manager \u003d self.agent_api.get_iptables_manager()"},{"line_number":56,"context_line":"        if not self.iptables_manager:"},{"line_number":57,"context_line":"            # If agent_api can\u0027t provide iptables_manager, it can be"},{"line_number":58,"context_line":"            # created here for extension needs"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_c6343de1","line":55,"updated":"2017-12-15 17:55:06.000000000","message":"by keeping a local reference to the manager, you make it so that the agent can\u0027t really safely call set_iptables_manager twice and expect extensions to use the second value passed. Do you think we should not allow iptables manager to change during execution? If so, why not passing it as an argument to __init__ of the api object (or raising an error when it\u0027s called the second time)?","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def initialize(self):"},{"line_number":53,"context_line":"        LOG.info(\"Initializing Linux bridge QoS extension\")"},{"line_number":54,"context_line":"        if self.agent_api:"},{"line_number":55,"context_line":"            self.iptables_manager \u003d self.agent_api.get_iptables_manager()"},{"line_number":56,"context_line":"        if not self.iptables_manager:"},{"line_number":57,"context_line":"            # If agent_api can\u0027t provide iptables_manager, it can be"},{"line_number":58,"context_line":"            # created here for extension needs"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_6b6dcd30","line":55,"in_reply_to":"df87a7cf_c6343de1","updated":"2017-12-18 12:18:07.000000000","message":"I changed agent extension and removed \"set_iptables_manager\" method. It should be passed from agent only via __init__ method.","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    def initialize(self):"},{"line_number":53,"context_line":"        LOG.info(\"Initializing Linux bridge QoS extension\")"},{"line_number":54,"context_line":"        if self.agent_api:"},{"line_number":55,"context_line":"            self.iptables_manager \u003d self.agent_api.get_iptables_manager()"},{"line_number":56,"context_line":"        if not self.iptables_manager:"},{"line_number":57,"context_line":"            # If agent_api can\u0027t provide iptables_manager, it can be"},{"line_number":58,"context_line":"            # created here for extension needs"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_f56fa4c2","line":55,"in_reply_to":"df87a7cf_c6343de1","updated":"2017-12-15 22:49:32.000000000","message":"I don\u0027t think it should change, I guess this has just always been implied.","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            # If agent_api can\u0027t provide iptables_manager, it can be"},{"line_number":58,"context_line":"            # created here for extension needs"},{"line_number":59,"context_line":"            self.iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":60,"context_line":"                state_less\u003dTrue,"},{"line_number":61,"context_line":"                use_ipv6\u003dipv6_utils.is_enabled_and_bind_by_default())"},{"line_number":62,"context_line":"        self.iptables_manager.initialize_mangle_table()"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_c6499d60","line":60,"updated":"2017-12-15 17:55:06.000000000","message":"why do we need to pass state_less now?","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            # If agent_api can\u0027t provide iptables_manager, it can be"},{"line_number":58,"context_line":"            # created here for extension needs"},{"line_number":59,"context_line":"            self.iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":60,"context_line":"                state_less\u003dTrue,"},{"line_number":61,"context_line":"                use_ipv6\u003dipv6_utils.is_enabled_and_bind_by_default())"},{"line_number":62,"context_line":"        self.iptables_manager.initialize_mangle_table()"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_4b700909","line":60,"in_reply_to":"df87a7cf_c6499d60","updated":"2017-12-18 12:18:07.000000000","message":"I don\u0027t want to manage e.g. \"nat\" tables with this instance of IptablesManager as I only need here \"mangle\" table","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":58,"context_line":"            # created here for extension needs"},{"line_number":59,"context_line":"            self.iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":60,"context_line":"                state_less\u003dTrue,"},{"line_number":61,"context_line":"                use_ipv6\u003dipv6_utils.is_enabled_and_bind_by_default())"},{"line_number":62,"context_line":"        self.iptables_manager.initialize_mangle_table()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _dscp_chain_name(self, direction, device):"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_263ba9c8","line":61,"updated":"2017-12-15 17:55:06.000000000","message":"why is it True in the old code and calculated in runtime in the new code? Should it be a separate fix?","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":58,"context_line":"            # created here for extension needs"},{"line_number":59,"context_line":"            self.iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":60,"context_line":"                state_less\u003dTrue,"},{"line_number":61,"context_line":"                use_ipv6\u003dipv6_utils.is_enabled_and_bind_by_default())"},{"line_number":62,"context_line":"        self.iptables_manager.initialize_mangle_table()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _dscp_chain_name(self, direction, device):"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_4b49e9b4","line":61,"in_reply_to":"df87a7cf_263ba9c8","updated":"2017-12-18 12:18:07.000000000","message":"If You think that it should be fixed in separate patch, I can propose it before this one will be merged","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            self.iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":60,"context_line":"                state_less\u003dTrue,"},{"line_number":61,"context_line":"                use_ipv6\u003dipv6_utils.is_enabled_and_bind_by_default())"},{"line_number":62,"context_line":"        self.iptables_manager.initialize_mangle_table()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _dscp_chain_name(self, direction, device):"},{"line_number":65,"context_line":"        return iptables_manager.get_chain_name("}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_46402d08","line":62,"updated":"2017-12-15 17:55:06.000000000","message":"shouldn\u0027t the extension already assume that all tables are initialized before set_iptables_manager is called?","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":59,"context_line":"            self.iptables_manager \u003d iptables_manager.IptablesManager("},{"line_number":60,"context_line":"                state_less\u003dTrue,"},{"line_number":61,"context_line":"                use_ipv6\u003dipv6_utils.is_enabled_and_bind_by_default())"},{"line_number":62,"context_line":"        self.iptables_manager.initialize_mangle_table()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _dscp_chain_name(self, direction, device):"},{"line_number":65,"context_line":"        return iptables_manager.get_chain_name("}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_4bdec9da","line":62,"in_reply_to":"df87a7cf_46402d08","updated":"2017-12-18 12:18:07.000000000","message":"no. It can be two cases:\n1. iptables_manager is passed via agent_api - then it will not have initialized mangle table because it is created with \"state_less\u003dTrue\" and mangle table is not initialized then\n2. iptables manager is created in L59 - it is also created with state_less\u003dTrue so mangle table is not initialized yet","commit_id":"922b97a1353c090d39c30227278e5267882041c4"}],"neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_agent_extension_api.py":[{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"16a47d291600f6d3319c71f9860a109983e2ab54","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def get_iptables_manager(self):"},{"line_number":29,"context_line":"        \"\"\"Allows extensions to get an iptables manager, used by agent,"},{"line_number":30,"context_line":"        to use for manage extension specific iptables rules"},{"line_number":31,"context_line":"        \"\"\""},{"line_number":32,"context_line":"        return self.iptables_manager"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf8cb3f7_535a342a","line":30,"range":{"start_line":30,"start_character":19,"end_line":30,"end_character":25},"updated":"2017-12-26 08:39:27.000000000","message":"nit: managing","commit_id":"08584799e35760df9a4eae866db89218b6266c47"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ea2115b7ca8b7cf88bc03d10c913dc40f608fb3a","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def get_iptables_manager(self):"},{"line_number":29,"context_line":"        \"\"\"Allows extensions to get an iptables manager, used by agent,"},{"line_number":30,"context_line":"        to use for manage extension specific iptables rules"},{"line_number":31,"context_line":"        \"\"\""},{"line_number":32,"context_line":"        return self.iptables_manager"}],"source_content_type":"text/x-python","patch_set":4,"id":"bf8cb3f7_9405ffc4","line":30,"range":{"start_line":30,"start_character":19,"end_line":30,"end_character":25},"in_reply_to":"bf8cb3f7_535a342a","updated":"2017-12-26 21:49:16.000000000","message":"I will change it when I will make other changes in this patch","commit_id":"08584799e35760df9a4eae866db89218b6266c47"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"add83ac59aef14469f93a5f722041e89a5b24f88","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def get_iptables_manager(self):"},{"line_number":29,"context_line":"        \"\"\"Allows extensions to get an iptables manager, used by agent,"},{"line_number":30,"context_line":"        to use for manage extension specific iptables rules"},{"line_number":31,"context_line":"        \"\"\""},{"line_number":32,"context_line":"        return self.iptables_manager"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_c591b354","line":30,"range":{"start_line":30,"start_character":19,"end_line":30,"end_character":25},"in_reply_to":"bf8cb3f7_9405ffc4","updated":"2018-01-03 12:15:28.000000000","message":"Done","commit_id":"08584799e35760df9a4eae866db89218b6266c47"}],"neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py":[{"author":{"_account_id":17776,"name":"Reedip","email":"reedip.banerjee@gmail.com","username":"Reedip"},"change_message_id":"16a47d291600f6d3319c71f9860a109983e2ab54","unresolved":false,"context_lines":[{"line_number":808,"context_line":""},{"line_number":809,"context_line":"    def _get_iptables_manager(self, sg_agent):"},{"line_number":810,"context_line":"        if not sg_agent:"},{"line_number":811,"context_line":"            return None"},{"line_number":812,"context_line":"        if cfg.CONF.SECURITYGROUP.firewall_driver in IPTABLES_DRIVERS:"},{"line_number":813,"context_line":"            return sg_agent.firewall.iptables"},{"line_number":814,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"bf8cb3f7_133cacbd","line":811,"range":{"start_line":811,"start_character":19,"end_line":811,"end_character":23},"updated":"2017-12-26 08:39:27.000000000","message":"WHat is the impact if the iptables_manager is None ?\u0027\nJust trying to understand the working","commit_id":"08584799e35760df9a4eae866db89218b6266c47"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ea2115b7ca8b7cf88bc03d10c913dc40f608fb3a","unresolved":false,"context_lines":[{"line_number":808,"context_line":""},{"line_number":809,"context_line":"    def _get_iptables_manager(self, sg_agent):"},{"line_number":810,"context_line":"        if not sg_agent:"},{"line_number":811,"context_line":"            return None"},{"line_number":812,"context_line":"        if cfg.CONF.SECURITYGROUP.firewall_driver in IPTABLES_DRIVERS:"},{"line_number":813,"context_line":"            return sg_agent.firewall.iptables"},{"line_number":814,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"bf8cb3f7_14224f53","line":811,"range":{"start_line":811,"start_character":19,"end_line":811,"end_character":23},"in_reply_to":"bf8cb3f7_133cacbd","updated":"2017-12-26 21:49:16.000000000","message":"Please check in https://review.openstack.org/#/c/527965/4/neutron/plugins/ml2/drivers/linuxbridge/agent/extension_drivers/qos_driver.py - if It is None then new instance of IptablesManager class will be created in QoS driver to manage DSCP marking rules","commit_id":"08584799e35760df9a4eae866db89218b6266c47"}],"neutron/plugins/ml2/drivers/macvtap/agent/macvtap_neutron_agent.py":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"f1499e9b147b1e3f2f59b71d8f21609170a5d1a2","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        return MacvtapRPCCallBack(context, agent, sg_agent)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":147,"context_line":"        return"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def get_rpc_consumers(self):"},{"line_number":150,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_fc081729","line":147,"range":{"start_line":147,"start_character":8,"end_line":147,"end_character":14},"updated":"2018-01-03 02:42:26.000000000","message":"This just seems like it should be \u0027pass\u0027 since you\u0027re doing nothing.  I must be missing something...","commit_id":"08584799e35760df9a4eae866db89218b6266c47"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"add83ac59aef14469f93a5f722041e89a5b24f88","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        return MacvtapRPCCallBack(context, agent, sg_agent)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    def get_agent_api(self, **kwargs):"},{"line_number":147,"context_line":"        return"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    def get_rpc_consumers(self):"},{"line_number":150,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"}],"source_content_type":"text/x-python","patch_set":4,"id":"9f91af0f_a594af45","line":147,"range":{"start_line":147,"start_character":8,"end_line":147,"end_character":14},"in_reply_to":"9f91af0f_fc081729","updated":"2018-01-03 12:15:28.000000000","message":"Done","commit_id":"08584799e35760df9a4eae866db89218b6266c47"}],"neutron/tests/unit/agent/linux/test_iptables_manager.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":1335,"context_line":"    def test_mangle_not_found(self):"},{"line_number":1336,"context_line":"        self.assertNotIn(\u0027mangle\u0027, self.iptables.ipv4)"},{"line_number":1337,"context_line":""},{"line_number":1338,"context_line":"    def test_initialize_mangle(self):"},{"line_number":1339,"context_line":"        iptables \u003d iptables_manager.IptablesManager(state_less\u003dTrue)"},{"line_number":1340,"context_line":"        iptables.initialize_mangle_table()"},{"line_number":1341,"context_line":"        self.assertIn(\u0027mangle\u0027, iptables.ipv4)"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_862dd547","line":1338,"range":{"start_line":1338,"start_character":8,"end_line":1338,"end_character":30},"updated":"2017-12-15 17:55:06.000000000","message":"please use the name reflecting the method under test -\u003e test_initialize_mangle_table.","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":1335,"context_line":"    def test_mangle_not_found(self):"},{"line_number":1336,"context_line":"        self.assertNotIn(\u0027mangle\u0027, self.iptables.ipv4)"},{"line_number":1337,"context_line":""},{"line_number":1338,"context_line":"    def test_initialize_mangle(self):"},{"line_number":1339,"context_line":"        iptables \u003d iptables_manager.IptablesManager(state_less\u003dTrue)"},{"line_number":1340,"context_line":"        iptables.initialize_mangle_table()"},{"line_number":1341,"context_line":"        self.assertIn(\u0027mangle\u0027, iptables.ipv4)"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_2bfa6542","line":1338,"range":{"start_line":1338,"start_character":8,"end_line":1338,"end_character":30},"in_reply_to":"df87a7cf_862dd547","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"cc835d49bda9b1580d5384769e682b42d0738cf4","unresolved":false,"context_lines":[{"line_number":1341,"context_line":"        self.assertIn(\u0027mangle\u0027, iptables.ipv4)"},{"line_number":1342,"context_line":"        self.assertNotIn(\u0027nat\u0027, iptables.ipv4)"},{"line_number":1343,"context_line":""},{"line_number":1344,"context_line":"    def test_initialize_nat(self):"},{"line_number":1345,"context_line":"        iptables \u003d iptables_manager.IptablesManager(state_less\u003dTrue)"},{"line_number":1346,"context_line":"        iptables.initialize_nat_table()"},{"line_number":1347,"context_line":"        self.assertIn(\u0027nat\u0027, iptables.ipv4)"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_4627cd65","line":1344,"range":{"start_line":1344,"start_character":8,"end_line":1344,"end_character":27},"updated":"2017-12-15 17:55:06.000000000","message":"ditto","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":1341,"context_line":"        self.assertIn(\u0027mangle\u0027, iptables.ipv4)"},{"line_number":1342,"context_line":"        self.assertNotIn(\u0027nat\u0027, iptables.ipv4)"},{"line_number":1343,"context_line":""},{"line_number":1344,"context_line":"    def test_initialize_nat(self):"},{"line_number":1345,"context_line":"        iptables \u003d iptables_manager.IptablesManager(state_less\u003dTrue)"},{"line_number":1346,"context_line":"        iptables.initialize_nat_table()"},{"line_number":1347,"context_line":"        self.assertIn(\u0027nat\u0027, iptables.ipv4)"}],"source_content_type":"text/x-python","patch_set":2,"id":"df87a7cf_4bf7a95a","line":1344,"range":{"start_line":1344,"start_character":8,"end_line":1344,"end_character":27},"in_reply_to":"df87a7cf_4627cd65","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"}],"releasenotes/notes/common-agent-extension-api-3fd06ff67329200a.yaml":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_b5691cbf","line":4,"range":{"start_line":4,"start_character":49,"end_line":4,"end_character":57},"updated":"2017-12-15 22:49:32.000000000","message":"s/now have the","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_e54d8e72","line":4,"range":{"start_line":4,"start_character":49,"end_line":4,"end_character":57},"in_reply_to":"df87a7cf_b5691cbf","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_756394dd","line":5,"range":{"start_line":5,"start_character":52,"end_line":5,"end_character":58},"updated":"2017-12-15 22:49:32.000000000","message":"s/drivers","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_0553d218","line":5,"range":{"start_line":5,"start_character":52,"end_line":5,"end_character":58},"in_reply_to":"df87a7cf_756394dd","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_359bccc9","line":6,"range":{"start_line":6,"start_character":19,"end_line":6,"end_character":21},"updated":"2017-12-15 22:49:32.000000000","message":"s/the L2","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_a5530616","line":6,"range":{"start_line":6,"start_character":19,"end_line":6,"end_character":21},"in_reply_to":"df87a7cf_359bccc9","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"},{"line_number":10,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_15a808d9","line":7,"range":{"start_line":7,"start_character":15,"end_line":7,"end_character":19},"updated":"2017-12-15 22:49:32.000000000","message":"I would just spell this out:\n\nIt is used, for example, to...","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"},{"line_number":10,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_b5aefce4","line":7,"range":{"start_line":7,"start_character":28,"end_line":7,"end_character":36},"updated":"2017-12-15 22:49:32.000000000","message":"s/an instance","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"},{"line_number":10,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_d5a940dd","line":7,"range":{"start_line":7,"start_character":37,"end_line":7,"end_character":39},"updated":"2017-12-15 22:49:32.000000000","message":"s/of the","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"e91f64bc4d7be5da5075fed6128049c21058110f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"},{"line_number":10,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_95b3b84d","line":7,"range":{"start_line":7,"start_character":60,"end_line":7,"end_character":62},"updated":"2017-12-15 22:49:32.000000000","message":"s/to the","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"},{"line_number":10,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_c5716aaa","line":7,"range":{"start_line":7,"start_character":15,"end_line":7,"end_character":19},"in_reply_to":"df87a7cf_15a808d9","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"},{"line_number":10,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_656adeb3","line":7,"range":{"start_line":7,"start_character":60,"end_line":7,"end_character":62},"in_reply_to":"df87a7cf_95b3b84d","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"},{"line_number":10,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_256056cf","line":7,"range":{"start_line":7,"start_character":28,"end_line":7,"end_character":36},"in_reply_to":"df87a7cf_b5aefce4","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"2a2ff2f566dbdcbcb8c4f5aee83ddf83756d52fe","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    L2 agents based on ``ML2`` ``_common_agent`` have now L2 extension API"},{"line_number":5,"context_line":"    available. This API can be used by L2 extension driver to request"},{"line_number":6,"context_line":"    resources from L2 agent."},{"line_number":7,"context_line":"    It is used e.g. to pass instance of ``IptablesManager`` to ``Linuxbridge``"},{"line_number":8,"context_line":"    L2 agent ``QoS extension driver``."},{"line_number":9,"context_line":"fixes:"},{"line_number":10,"context_line":"  - |"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"df87a7cf_e59b4ec6","line":7,"range":{"start_line":7,"start_character":37,"end_line":7,"end_character":39},"in_reply_to":"df87a7cf_d5a940dd","updated":"2017-12-18 12:18:07.000000000","message":"Done","commit_id":"922b97a1353c090d39c30227278e5267882041c4"}]}
