)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"223c4f867aae3656397fb9c1cda595d17f91cf2d","unresolved":false,"context_lines":[{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"},{"line_number":13,"context_line":"provides support for qos configuring in linuxbridge agent"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Co-Authored-By: Vikram Choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":18,"context_line":"Close-Bug: #1500012"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5a2ca52d_beb34f4c","line":15,"updated":"2015-10-17 13:51:03.000000000","message":"Can you please change \"Vikram Choudhary\" \u003d\u003d\u003e \"vikram.choudhary\".","commit_id":"55e9d5425a0aca4e1e8d3b09443f0fa2b29129f5"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"LinuxBridge neutron agent now have support for l2 extension drivers in same way"},{"line_number":11,"context_line":"how it was done on ovs and sriov neutron agents before."},{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa80f949_965cba26","line":9,"updated":"2015-11-04 12:32:45.000000000","message":"Remove the line.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"LinuxBridge neutron agent now have support for l2 extension drivers in same way"},{"line_number":11,"context_line":"how it was done on ovs and sriov neutron agents before."},{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa80f949_aa6e1c2d","line":9,"in_reply_to":"fa80f949_965cba26","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"LinuxBridge neutron agent now have support for l2 extension drivers in same way"},{"line_number":11,"context_line":"how it was done on ovs and sriov neutron agents before."},{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"},{"line_number":13,"context_line":"provides support for qos configuring in linuxbridge agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa80f949_d6524213","line":10,"updated":"2015-11-04 12:32:45.000000000","message":"have -\u003e has.\n\nAgent does not support l2 extension drivers, but merely extensions.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"LinuxBridge neutron agent now have support for l2 extension drivers in same way"},{"line_number":11,"context_line":"how it was done on ovs and sriov neutron agents before."},{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"},{"line_number":13,"context_line":"provides support for qos configuring in linuxbridge agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa80f949_ca504061","line":10,"in_reply_to":"fa80f949_d6524213","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"LinuxBridge neutron agent now have support for l2 extension drivers in same way"},{"line_number":11,"context_line":"how it was done on ovs and sriov neutron agents before."},{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"},{"line_number":13,"context_line":"provides support for qos configuring in linuxbridge agent"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa80f949_1660cacd","line":12,"updated":"2015-11-04 12:32:45.000000000","message":"It\u0027s not extension added, (extension is already there); it\u0027s qos extension driver that you added for linuxbridge.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Description:"},{"line_number":10,"context_line":"LinuxBridge neutron agent now have support for l2 extension drivers in same way"},{"line_number":11,"context_line":"how it was done on ovs and sriov neutron agents before."},{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"},{"line_number":13,"context_line":"provides support for qos configuring in linuxbridge agent"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa80f949_2ac8ec21","line":12,"in_reply_to":"fa80f949_1660cacd","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"},{"line_number":13,"context_line":"provides support for qos configuring in linuxbridge agent"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":18,"context_line":"Close-Bug: #1500012"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa80f949_16320af2","line":15,"updated":"2015-11-04 12:32:45.000000000","message":"How so?.. I don\u0027t see any code contributed by Vikram.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":12,"context_line":"There is also new qos extension for linuxbridge agent added. This extension"},{"line_number":13,"context_line":"provides support for qos configuring in linuxbridge agent"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":18,"context_line":"Close-Bug: #1500012"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"fa80f949_2a96acf0","line":15,"in_reply_to":"fa80f949_16320af2","updated":"2015-11-04 22:46:11.000000000","message":"There is no code made by Vikram here but he is helping me with this patch by giving me some advices. If it is not big problem I would prefer to left it like it is now :)","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"LinuxBridge neutron agent now have support for l2 extensions in same way"},{"line_number":10,"context_line":"how it was done on ovs and sriov neutron agents before."},{"line_number":11,"context_line":"There is also new QoS extension driver for linuxbridge agent added."},{"line_number":12,"context_line":"This driver provides support for QoS configuring in linuxbridge agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":21,"id":"9a68dd71_017e7ee4","line":9,"updated":"2016-01-20 14:09:34.000000000","message":"This is no longer part of the patch.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"LinuxBridge neutron agent now have support for l2 extensions in same way"},{"line_number":10,"context_line":"how it was done on ovs and sriov neutron agents before."},{"line_number":11,"context_line":"There is also new QoS extension driver for linuxbridge agent added."},{"line_number":12,"context_line":"This driver provides support for QoS configuring in linuxbridge agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":21,"id":"9a68dd71_d2e4963c","line":9,"in_reply_to":"9a68dd71_017e7ee4","updated":"2016-01-20 22:44:50.000000000","message":"True. I forgot to change it after this other patch was merged separately :)","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":17,"context_line":"Close-Bug: #1500012"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":21,"id":"9a68dd71_214e22c2","line":17,"updated":"2016-01-20 14:09:34.000000000","message":"Closes-Bug","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":14,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":17,"context_line":"Close-Bug: #1500012"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":21,"id":"9a68dd71_92d5be44","line":17,"in_reply_to":"9a68dd71_214e22c2","updated":"2016-01-20 22:44:50.000000000","message":"Done","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"56ffcbb75e4da179de8657f0cae52ec07d9dbd49","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":15,"context_line":"Closes-Bug: #1500012"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"9a68dd71_6171b575","line":15,"range":{"start_line":15,"start_character":7,"end_line":15,"end_character":10},"updated":"2016-01-25 08:01:44.000000000","message":"I suspect this will need a DocImpact so that we\u0027ll capture QoS details useful to deployers.\n\nThis will also need a release note. See examples under /releasenotes.","commit_id":"a7c2001bdef093ad032ae4a23169dbc9bc7aeb3e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7dba3a7f2940868e84ca7276064a9f6d3850e43d","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":15,"context_line":"Closes-Bug: #1500012"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":23,"id":"3a57f1b5_e7ac5137","line":15,"range":{"start_line":15,"start_character":7,"end_line":15,"end_character":10},"in_reply_to":"9a68dd71_6171b575","updated":"2016-02-10 21:40:11.000000000","message":"I added releasenote and DocImpact in commit message","commit_id":"a7c2001bdef093ad032ae4a23169dbc9bc7aeb3e"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"be92d69c6402c199b28fc6f8f3e7a24fb8e2979a","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":15,"context_line":"Closes-Bug: #1500012"},{"line_number":16,"context_line":"DocImpact Update agent configuration to show settings related to"},{"line_number":17,"context_line":"          QoS and bandwidth limiting"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"bae84128_694ac856","line":16,"updated":"2016-02-23 08:22:19.000000000","message":"nit: Add a \u0027:\u0027 after DocImpact","commit_id":"efb0b1112b0d1023f5d03715c9b56e65a3777042"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"560c0d68c633630c30607eb604b3329cd22daf38","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I457ca2569b5d4a916ba09e71040505cd0ad3257b"},{"line_number":15,"context_line":"Closes-Bug: #1500012"},{"line_number":16,"context_line":"DocImpact Update agent configuration to show settings related to"},{"line_number":17,"context_line":"          QoS and bandwidth limiting"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":27,"id":"bae84128_8ca2bafb","line":16,"in_reply_to":"bae84128_694ac856","updated":"2016-02-23 08:25:10.000000000","message":"Done","commit_id":"efb0b1112b0d1023f5d03715c9b56e65a3777042"},{"author":{"_account_id":18051,"name":"David Shaughnessy","email":"david.shaughnessy@intel.com","username":"davidsha"},"change_message_id":"d0da842ffc5e204c089a7dd02527d552f7ce7d31","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"There is new QoS extension driver for linuxbridge agent added."},{"line_number":10,"context_line":"This driver provides support for QoS configuring in linuxbridge agent"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":28,"id":"bae84128_22128357","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":62},"updated":"2016-02-23 15:36:45.000000000","message":"There is a new QoS extension driver for the linuxbridge agent being added.","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ad55c8cae9d9d0fa60f888462f56561b439730b2","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"There is new QoS extension driver for linuxbridge agent added."},{"line_number":10,"context_line":"This driver provides support for QoS configuring in linuxbridge agent"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":28,"id":"bae84128_4ba7d1bc","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":62},"in_reply_to":"bae84128_22128357","updated":"2016-02-23 20:51:55.000000000","message":"Done","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":18051,"name":"David Shaughnessy","email":"david.shaughnessy@intel.com","username":"davidsha"},"change_message_id":"d0da842ffc5e204c089a7dd02527d552f7ce7d31","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"There is new QoS extension driver for linuxbridge agent added."},{"line_number":10,"context_line":"This driver provides support for QoS configuring in linuxbridge agent"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":28,"id":"bae84128_423ce7c7","line":10,"range":{"start_line":10,"start_character":29,"end_line":10,"end_character":69},"updated":"2016-02-23 15:36:45.000000000","message":"for configuring QoS on the linuxbridge agent.","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ad55c8cae9d9d0fa60f888462f56561b439730b2","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add support for QoS for LinuxBridge agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"There is new QoS extension driver for linuxbridge agent added."},{"line_number":10,"context_line":"This driver provides support for QoS configuring in linuxbridge agent"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":28,"id":"bae84128_abaadd82","line":10,"range":{"start_line":10,"start_character":29,"end_line":10,"end_character":69},"in_reply_to":"bae84128_423ce7c7","updated":"2016-02-23 20:51:55.000000000","message":"Done","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":9,"context_line":"There is a new QoS extension driver for the linuxbridge agent"},{"line_number":10,"context_line":"being added. This driver provides support for QoS configuring"},{"line_number":11,"context_line":"on the linuxbridge agent."},{"line_number":12,"context_line":"This patch introduce two new config options for Linuxbridge agent:"},{"line_number":13,"context_line":"kernel_hz - HZ value of host kernel,"},{"line_number":14,"context_line":"tbf_latency - value of latency in tbf qdisc for calculate size of queue."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"9aed3d3a_550cbaec","line":12,"range":{"start_line":12,"start_character":11,"end_line":12,"end_character":20},"updated":"2016-02-29 12:07:54.000000000","message":"introduces","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":9,"context_line":"There is a new QoS extension driver for the linuxbridge agent"},{"line_number":10,"context_line":"being added. This driver provides support for QoS configuring"},{"line_number":11,"context_line":"on the linuxbridge agent."},{"line_number":12,"context_line":"This patch introduce two new config options for Linuxbridge agent:"},{"line_number":13,"context_line":"kernel_hz - HZ value of host kernel,"},{"line_number":14,"context_line":"tbf_latency - value of latency in tbf qdisc for calculate size of queue."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"9aed3d3a_b2537838","line":12,"range":{"start_line":12,"start_character":11,"end_line":12,"end_character":20},"in_reply_to":"9aed3d3a_550cbaec","updated":"2016-02-29 21:40:19.000000000","message":"Done","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":11,"context_line":"on the linuxbridge agent."},{"line_number":12,"context_line":"This patch introduce two new config options for Linuxbridge agent:"},{"line_number":13,"context_line":"kernel_hz - HZ value of host kernel,"},{"line_number":14,"context_line":"tbf_latency - value of latency in tbf qdisc for calculate size of queue."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"9aed3d3a_3502d6b4","line":14,"range":{"start_line":14,"start_character":44,"end_line":14,"end_character":47},"updated":"2016-02-29 12:07:54.000000000","message":"to","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":11,"context_line":"on the linuxbridge agent."},{"line_number":12,"context_line":"This patch introduce two new config options for Linuxbridge agent:"},{"line_number":13,"context_line":"kernel_hz - HZ value of host kernel,"},{"line_number":14,"context_line":"tbf_latency - value of latency in tbf qdisc for calculate size of queue."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Co-Authored-By: vikram.choudhary \u003cvikram.choudhary@huawei.com\u003e"},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":32,"id":"9aed3d3a_12334415","line":14,"range":{"start_line":14,"start_character":44,"end_line":14,"end_character":47},"in_reply_to":"9aed3d3a_3502d6b4","updated":"2016-02-29 21:40:19.000000000","message":"Done","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"}],"doc/source/devref/quality_of_service.rst":[{"author":{"_account_id":9515,"name":"Matthew Kassawara","email":"mkassawara@gmail.com","username":"ionosphere80"},"change_message_id":"ec2e2ad8670328c28cbf9ac062b2a72b847f3ea4","unresolved":false,"context_lines":[{"line_number":281,"context_line":"Agent backends"},{"line_number":282,"context_line":"--------------"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"At the moment, QoS is supported by Open vSwitch, SR-IOV and Linuxbridge"},{"line_number":285,"context_line":"ml2 drivers."},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"Each agent backend defines a QoS driver that implements the QosAgentDriver"}],"source_content_type":"text/x-rst","patch_set":10,"id":"fa80f949_d80577c2","line":284,"updated":"2015-11-04 23:13:33.000000000","message":"Use \"Linux bridge\" instead of Linuxbridge\" here and other places in this patch.","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"89fa9db3700df256e45bc3035c84b34d8540af21","unresolved":false,"context_lines":[{"line_number":281,"context_line":"Agent backends"},{"line_number":282,"context_line":"--------------"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"At the moment, QoS is supported by Open vSwitch, SR-IOV and Linuxbridge"},{"line_number":285,"context_line":"ml2 drivers."},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"Each agent backend defines a QoS driver that implements the QosAgentDriver"}],"source_content_type":"text/x-rst","patch_set":10,"id":"fa80f949_4f13d0b8","line":284,"in_reply_to":"fa80f949_d80577c2","updated":"2015-11-05 20:39:35.000000000","message":"Done","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":9515,"name":"Matthew Kassawara","email":"mkassawara@gmail.com","username":"ionosphere80"},"change_message_id":"ec2e2ad8670328c28cbf9ac062b2a72b847f3ea4","unresolved":false,"context_lines":[{"line_number":329,"context_line":"Linuxbridge"},{"line_number":330,"context_line":"~~~~~~~~~~~"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"Linuxbridge implementations relies on new tc_lib and functions:"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"* set_bw_limit"},{"line_number":335,"context_line":"* update_bw_limit"}],"source_content_type":"text/x-rst","patch_set":10,"id":"fa80f949_78e32b06","line":332,"updated":"2015-11-04 23:13:33.000000000","message":"... implementation relies on tc_lib and the following functions:","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"89fa9db3700df256e45bc3035c84b34d8540af21","unresolved":false,"context_lines":[{"line_number":329,"context_line":"Linuxbridge"},{"line_number":330,"context_line":"~~~~~~~~~~~"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"Linuxbridge implementations relies on new tc_lib and functions:"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"* set_bw_limit"},{"line_number":335,"context_line":"* update_bw_limit"}],"source_content_type":"text/x-rst","patch_set":10,"id":"fa80f949_4fde7012","line":332,"in_reply_to":"fa80f949_78e32b06","updated":"2015-11-05 20:39:35.000000000","message":"I changed it littlebit here","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":9515,"name":"Matthew Kassawara","email":"mkassawara@gmail.com","username":"ionosphere80"},"change_message_id":"ec2e2ad8670328c28cbf9ac062b2a72b847f3ea4","unresolved":false,"context_lines":[{"line_number":335,"context_line":"* update_bw_limit"},{"line_number":336,"context_line":"* delete_bw_limit"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"Bandwidth limit is effectively configured on the tap port by setting simple"},{"line_number":339,"context_line":"tc-tbf queueing discipline (qdisc) on port. This solution is similar to that"},{"line_number":340,"context_line":"what is provided by Open vSwitch implementation."},{"line_number":341,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"fa80f949_7891eb51","line":338,"updated":"2015-11-04 23:13:33.000000000","message":"Configure bandwidth limits on a tap port by setting the tc-tbf queueing discipline (qdisc) on it. Similar to the Open vSwitch implementation.","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"89fa9db3700df256e45bc3035c84b34d8540af21","unresolved":false,"context_lines":[{"line_number":335,"context_line":"* update_bw_limit"},{"line_number":336,"context_line":"* delete_bw_limit"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"Bandwidth limit is effectively configured on the tap port by setting simple"},{"line_number":339,"context_line":"tc-tbf queueing discipline (qdisc) on port. This solution is similar to that"},{"line_number":340,"context_line":"what is provided by Open vSwitch implementation."},{"line_number":341,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"fa80f949_cfd26000","line":338,"in_reply_to":"fa80f949_7891eb51","updated":"2015-11-05 20:39:35.000000000","message":"It is also changed  now","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"dcd8a2d1cee328c9aef78b6fe50cf32f4fb4e776","unresolved":false,"context_lines":[{"line_number":329,"context_line":"Linuxbridge"},{"line_number":330,"context_line":"~~~~~~~~~~~"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"Linuxbridge implementations relies on new tc_lib and functions:"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"* set_bw_limit"},{"line_number":335,"context_line":"* update_bw_limit"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_02006100","line":332,"updated":"2015-11-05 05:54:19.000000000","message":"remove \u0027and\u0027","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"65cb5db9ca14046b677868e25d808c57b6d9747d","unresolved":false,"context_lines":[{"line_number":329,"context_line":"Linuxbridge"},{"line_number":330,"context_line":"~~~~~~~~~~~"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"Linuxbridge implementations relies on new tc_lib and functions:"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"* set_bw_limit"},{"line_number":335,"context_line":"* update_bw_limit"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_54612738","line":332,"in_reply_to":"fa80f949_02006100","updated":"2015-11-05 20:39:25.000000000","message":"Done","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"dcd8a2d1cee328c9aef78b6fe50cf32f4fb4e776","unresolved":false,"context_lines":[{"line_number":336,"context_line":"* delete_bw_limit"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"Bandwidth limit is effectively configured on the tap port by setting simple"},{"line_number":339,"context_line":"tc-tbf queueing discipline (qdisc) on port. This solution is similar to that"},{"line_number":340,"context_line":"what is provided by Open vSwitch implementation."},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"Configuration"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_e20c3d3d","line":339,"updated":"2015-11-05 05:54:19.000000000","message":"a reference link about tc-tbf will be handy. A word about Kernel HZ calculation would be useful.","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"65cb5db9ca14046b677868e25d808c57b6d9747d","unresolved":false,"context_lines":[{"line_number":336,"context_line":"* delete_bw_limit"},{"line_number":337,"context_line":""},{"line_number":338,"context_line":"Bandwidth limit is effectively configured on the tap port by setting simple"},{"line_number":339,"context_line":"tc-tbf queueing discipline (qdisc) on port. This solution is similar to that"},{"line_number":340,"context_line":"what is provided by Open vSwitch implementation."},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"Configuration"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_d42677cd","line":339,"in_reply_to":"fa80f949_e20c3d3d","updated":"2015-11-05 20:39:25.000000000","message":"Done","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"dcd8a2d1cee328c9aef78b6fe50cf32f4fb4e776","unresolved":false,"context_lines":[{"line_number":337,"context_line":""},{"line_number":338,"context_line":"Bandwidth limit is effectively configured on the tap port by setting simple"},{"line_number":339,"context_line":"tc-tbf queueing discipline (qdisc) on port. This solution is similar to that"},{"line_number":340,"context_line":"what is provided by Open vSwitch implementation."},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"Configuration"},{"line_number":343,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_02838157","line":340,"updated":"2015-11-05 05:54:19.000000000","message":"How about rephrasing the last line ... \"The solution is similar to Open vSwitch implementation.\"","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"65cb5db9ca14046b677868e25d808c57b6d9747d","unresolved":false,"context_lines":[{"line_number":337,"context_line":""},{"line_number":338,"context_line":"Bandwidth limit is effectively configured on the tap port by setting simple"},{"line_number":339,"context_line":"tc-tbf queueing discipline (qdisc) on port. This solution is similar to that"},{"line_number":340,"context_line":"what is provided by Open vSwitch implementation."},{"line_number":341,"context_line":""},{"line_number":342,"context_line":"Configuration"},{"line_number":343,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_b42bb393","line":340,"in_reply_to":"fa80f949_02838157","updated":"2015-11-05 20:39:25.000000000","message":"Done","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"dcd8a2d1cee328c9aef78b6fe50cf32f4fb4e776","unresolved":false,"context_lines":[{"line_number":387,"context_line":"----------------"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"Additions to ovs_lib to set bandwidth limits on ports are covered in:"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"* neutron.tests.functional.agent.test_ovs_lib"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_22ed6525","line":390,"updated":"2015-11-05 05:54:19.000000000","message":"Let\u0027s add the details about LB testcases.","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"65cb5db9ca14046b677868e25d808c57b6d9747d","unresolved":false,"context_lines":[{"line_number":387,"context_line":"----------------"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"Additions to ovs_lib to set bandwidth limits on ports are covered in:"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"* neutron.tests.functional.agent.test_ovs_lib"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":""}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_2f80cc45","line":390,"in_reply_to":"fa80f949_22ed6525","updated":"2015-11-05 20:39:25.000000000","message":"Done","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"dcd8a2d1cee328c9aef78b6fe50cf32f4fb4e776","unresolved":false,"context_lines":[{"line_number":395,"context_line":"---------"},{"line_number":396,"context_line":""},{"line_number":397,"context_line":"API tests for basic CRUD operations for ports, networks, policies, and rules were added in:"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"* neutron.tests.api.test_qos"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_c2f33909","line":398,"updated":"2015-11-05 05:54:19.000000000","message":"ditto","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"65cb5db9ca14046b677868e25d808c57b6d9747d","unresolved":false,"context_lines":[{"line_number":395,"context_line":"---------"},{"line_number":396,"context_line":""},{"line_number":397,"context_line":"API tests for basic CRUD operations for ports, networks, policies, and rules were added in:"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"* neutron.tests.api.test_qos"}],"source_content_type":"text/x-rst","patch_set":11,"id":"fa80f949_0fcb88a6","line":398,"in_reply_to":"fa80f949_c2f33909","updated":"2015-11-05 20:39:25.000000000","message":"What I should add here? AFAIU those are API tests and are independent of used driver on agent side","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":331,"context_line":"Linux bridge"},{"line_number":332,"context_line":"~~~~~~~~~~~~"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"Linux bridge implementations relies on new tc_lib functions:"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"* set_bw_limit"},{"line_number":337,"context_line":"* update_bw_limit"}],"source_content_type":"text/x-rst","patch_set":21,"id":"9a68dd71_61dbbaee","line":334,"updated":"2016-01-20 14:09:34.000000000","message":"implementations -\u003e implementation","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":331,"context_line":"Linux bridge"},{"line_number":332,"context_line":"~~~~~~~~~~~~"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"Linux bridge implementations relies on new tc_lib functions:"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"* set_bw_limit"},{"line_number":337,"context_line":"* update_bw_limit"}],"source_content_type":"text/x-rst","patch_set":21,"id":"9a68dd71_2c31200c","line":334,"in_reply_to":"9a68dd71_61dbbaee","updated":"2016-01-20 22:44:50.000000000","message":"Done","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"Ingress bandwidth limit is effectively configured on the tap port by setting"},{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It require to provide value of HZ parameter configured in kernel on"},{"line_number":343,"context_line":"host.  This value is neccessary to proper calculate minimal burst value which"},{"line_number":344,"context_line":"should be set in tc. Details about how it is calculated can be found on"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"}],"source_content_type":"text/x-rst","patch_set":21,"id":"9a68dd71_61897aca","line":342,"updated":"2016-01-20 14:09:34.000000000","message":"require to provide value -\u003e requires a value","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":339,"context_line":""},{"line_number":340,"context_line":"Ingress bandwidth limit is effectively configured on the tap port by setting"},{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It require to provide value of HZ parameter configured in kernel on"},{"line_number":343,"context_line":"host.  This value is neccessary to proper calculate minimal burst value which"},{"line_number":344,"context_line":"should be set in tc. Details about how it is calculated can be found on"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"}],"source_content_type":"text/x-rst","patch_set":21,"id":"9a68dd71_4c36d404","line":342,"in_reply_to":"9a68dd71_61897aca","updated":"2016-01-20 22:44:50.000000000","message":"Done","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":340,"context_line":"Ingress bandwidth limit is effectively configured on the tap port by setting"},{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It require to provide value of HZ parameter configured in kernel on"},{"line_number":343,"context_line":"host.  This value is neccessary to proper calculate minimal burst value which"},{"line_number":344,"context_line":"should be set in tc. Details about how it is calculated can be found on"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"},{"line_number":346,"context_line":"vSwitch implementation."}],"source_content_type":"text/x-rst","patch_set":21,"id":"9a68dd71_a1b5327f","line":343,"updated":"2016-01-20 14:09:34.000000000","message":"host -\u003e the host, proper calculate -\u003e calculate","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":340,"context_line":"Ingress bandwidth limit is effectively configured on the tap port by setting"},{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It require to provide value of HZ parameter configured in kernel on"},{"line_number":343,"context_line":"host.  This value is neccessary to proper calculate minimal burst value which"},{"line_number":344,"context_line":"should be set in tc. Details about how it is calculated can be found on"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"},{"line_number":346,"context_line":"vSwitch implementation."}],"source_content_type":"text/x-rst","patch_set":21,"id":"9a68dd71_8c2cccac","line":343,"in_reply_to":"9a68dd71_a1b5327f","updated":"2016-01-20 22:44:50.000000000","message":"Done","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It require to provide value of HZ parameter configured in kernel on"},{"line_number":343,"context_line":"host.  This value is neccessary to proper calculate minimal burst value which"},{"line_number":344,"context_line":"should be set in tc. Details about how it is calculated can be found on"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"},{"line_number":346,"context_line":"vSwitch implementation."},{"line_number":347,"context_line":""}],"source_content_type":"text/x-rst","patch_set":21,"id":"9a68dd71_0168bef4","line":344,"updated":"2016-01-20 14:09:34.000000000","message":"on -\u003e in","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It require to provide value of HZ parameter configured in kernel on"},{"line_number":343,"context_line":"host.  This value is neccessary to proper calculate minimal burst value which"},{"line_number":344,"context_line":"should be set in tc. Details about how it is calculated can be found on"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"},{"line_number":346,"context_line":"vSwitch implementation."},{"line_number":347,"context_line":""}],"source_content_type":"text/x-rst","patch_set":21,"id":"9a68dd71_072517aa","line":344,"in_reply_to":"9a68dd71_0168bef4","updated":"2016-01-20 22:44:50.000000000","message":"Done","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":18051,"name":"David Shaughnessy","email":"david.shaughnessy@intel.com","username":"davidsha"},"change_message_id":"d0da842ffc5e204c089a7dd02527d552f7ce7d31","unresolved":false,"context_lines":[{"line_number":331,"context_line":"Linux bridge"},{"line_number":332,"context_line":"~~~~~~~~~~~~"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"Linux bridge implementation relies on new tc_lib functions:"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"* set_bw_limit"},{"line_number":337,"context_line":"* update_bw_limit"}],"source_content_type":"text/x-rst","patch_set":28,"id":"bae84128_02813fc3","line":334,"range":{"start_line":334,"start_character":0,"end_line":334,"end_character":58},"updated":"2016-02-23 15:36:45.000000000","message":"The Linux bridge implementation relies on the new tc_lib functions:","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ad55c8cae9d9d0fa60f888462f56561b439730b2","unresolved":false,"context_lines":[{"line_number":331,"context_line":"Linux bridge"},{"line_number":332,"context_line":"~~~~~~~~~~~~"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"Linux bridge implementation relies on new tc_lib functions:"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"* set_bw_limit"},{"line_number":337,"context_line":"* update_bw_limit"}],"source_content_type":"text/x-rst","patch_set":28,"id":"bae84128_4b8eb12e","line":334,"range":{"start_line":334,"start_character":0,"end_line":334,"end_character":58},"in_reply_to":"bae84128_02813fc3","updated":"2016-02-23 20:51:55.000000000","message":"Done","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":18051,"name":"David Shaughnessy","email":"david.shaughnessy@intel.com","username":"davidsha"},"change_message_id":"d0da842ffc5e204c089a7dd02527d552f7ce7d31","unresolved":false,"context_lines":[{"line_number":337,"context_line":"* update_bw_limit"},{"line_number":338,"context_line":"* delete_bw_limit"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"Ingress bandwidth limit is effectively configured on the tap port by setting"},{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It requires a value of HZ parameter configured in kernel on the host."},{"line_number":343,"context_line":"This value is neccessary to calculate minimal burst value which should be set in"},{"line_number":344,"context_line":"tc. Details about how it is calculated can be found in"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"}],"source_content_type":"text/x-rst","patch_set":28,"id":"bae84128_1d252008","line":342,"range":{"start_line":340,"start_character":0,"end_line":342,"end_character":78},"updated":"2016-02-23 15:36:45.000000000","message":"\"The ingress bandwidth limit is configured on the tap port by setting a\nsimple _`tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queuing discipline (qdisc)\non the port.\" \n\n\"It requires a value in Hz to configure the kernel on the host.\"\n\nNot sure if that\u0027s what you meant for that last sentence. I changed it a bit when I read the rest of the code.","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ad55c8cae9d9d0fa60f888462f56561b439730b2","unresolved":false,"context_lines":[{"line_number":337,"context_line":"* update_bw_limit"},{"line_number":338,"context_line":"* delete_bw_limit"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"Ingress bandwidth limit is effectively configured on the tap port by setting"},{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It requires a value of HZ parameter configured in kernel on the host."},{"line_number":343,"context_line":"This value is neccessary to calculate minimal burst value which should be set in"},{"line_number":344,"context_line":"tc. Details about how it is calculated can be found in"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"}],"source_content_type":"text/x-rst","patch_set":28,"id":"bae84128_e8deabdb","line":342,"range":{"start_line":340,"start_character":0,"end_line":342,"end_character":78},"in_reply_to":"bae84128_1d252008","updated":"2016-02-23 20:51:55.000000000","message":"I changed first part.\nSecond one You probably misunderstood. It is about some config option from Linux kernel. This option is called \"HZ\" (it\u0027s not unit Hz) and it is required to put in config value of this option from already running kernel. It is not used TO configure kernel because our agent is not configure kernel :)","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":18051,"name":"David Shaughnessy","email":"david.shaughnessy@intel.com","username":"davidsha"},"change_message_id":"d0da842ffc5e204c089a7dd02527d552f7ce7d31","unresolved":false,"context_lines":[{"line_number":340,"context_line":"Ingress bandwidth limit is effectively configured on the tap port by setting"},{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It requires a value of HZ parameter configured in kernel on the host."},{"line_number":343,"context_line":"This value is neccessary to calculate minimal burst value which should be set in"},{"line_number":344,"context_line":"tc. Details about how it is calculated can be found in"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"},{"line_number":346,"context_line":"vSwitch implementation."}],"source_content_type":"text/x-rst","patch_set":28,"id":"bae84128_9df4905b","line":343,"range":{"start_line":343,"start_character":28,"end_line":343,"end_character":80},"updated":"2016-02-23 15:36:45.000000000","message":"calculate the minimum burst value which is set in","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ad55c8cae9d9d0fa60f888462f56561b439730b2","unresolved":false,"context_lines":[{"line_number":340,"context_line":"Ingress bandwidth limit is effectively configured on the tap port by setting"},{"line_number":341,"context_line":"simple `tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc)"},{"line_number":342,"context_line":"on port. It requires a value of HZ parameter configured in kernel on the host."},{"line_number":343,"context_line":"This value is neccessary to calculate minimal burst value which should be set in"},{"line_number":344,"context_line":"tc. Details about how it is calculated can be found in"},{"line_number":345,"context_line":"`http://unix.stackexchange.com/a/100797`_. This solution is similar to Open"},{"line_number":346,"context_line":"vSwitch implementation."}],"source_content_type":"text/x-rst","patch_set":28,"id":"bae84128_6898db1c","line":343,"range":{"start_line":343,"start_character":28,"end_line":343,"end_character":80},"in_reply_to":"bae84128_9df4905b","updated":"2016-02-23 20:51:55.000000000","message":"Done","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":18051,"name":"David Shaughnessy","email":"david.shaughnessy@intel.com","username":"davidsha"},"change_message_id":"d0da842ffc5e204c089a7dd02527d552f7ce7d31","unresolved":false,"context_lines":[{"line_number":397,"context_line":"* neutron.tests.functional.agent.test_ovs_lib"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"New functional tests to tc_lib to set bandwidth limits on ports are in:"},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"* neutron.tests.functional.agent.linux.test_tc_lib"},{"line_number":403,"context_line":""}],"source_content_type":"text/x-rst","patch_set":28,"id":"bae84128_e246db79","line":400,"range":{"start_line":400,"start_character":4,"end_line":400,"end_character":30},"updated":"2016-02-23 15:36:45.000000000","message":"functional tests for tc_lib","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ad55c8cae9d9d0fa60f888462f56561b439730b2","unresolved":false,"context_lines":[{"line_number":397,"context_line":"* neutron.tests.functional.agent.test_ovs_lib"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"New functional tests to tc_lib to set bandwidth limits on ports are in:"},{"line_number":401,"context_line":""},{"line_number":402,"context_line":"* neutron.tests.functional.agent.linux.test_tc_lib"},{"line_number":403,"context_line":""}],"source_content_type":"text/x-rst","patch_set":28,"id":"bae84128_e88cebdb","line":400,"range":{"start_line":400,"start_character":4,"end_line":400,"end_character":30},"in_reply_to":"bae84128_e246db79","updated":"2016-02-23 20:51:55.000000000","message":"Done","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":337,"context_line":"* update_bw_limit"},{"line_number":338,"context_line":"* delete_bw_limit"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"The ingress bandwidth limit is configured on the tap port by setting a simple"},{"line_number":341,"context_line":"`tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc) on the"},{"line_number":342,"context_line":"port. It requires a value of HZ parameter configured in kernel on the host."},{"line_number":343,"context_line":"This value is neccessary to calculate the minimal burst value which is set in"}],"source_content_type":"text/x-rst","patch_set":31,"id":"9aed3d3a_faba3709","line":340,"updated":"2016-02-28 10:14:31.000000000","message":"Are there specific packages needed to support this or will a vanilla Ubuntu 14.04 support the API\u0027s?\n\ngkotton@ubuntu:~/neutron$ tc_show\ntc_show: command not found\ngkotton@ubuntu:~/neutron$ lsb_release -a\nNo LSB modules are available.\nDistributor ID:\tUbuntu\nDescription:\tUbuntu 14.04.1 LTS\nRelease:\t14.04\nCodename:\ttrusty","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":337,"context_line":"* update_bw_limit"},{"line_number":338,"context_line":"* delete_bw_limit"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"The ingress bandwidth limit is configured on the tap port by setting a simple"},{"line_number":341,"context_line":"`tc-tbf \u003chttp://linux.die.net/man/8/tc-tbf\u003e`_ queueing discipline (qdisc) on the"},{"line_number":342,"context_line":"port. It requires a value of HZ parameter configured in kernel on the host."},{"line_number":343,"context_line":"This value is neccessary to calculate the minimal burst value which is set in"}],"source_content_type":"text/x-rst","patch_set":31,"id":"9aed3d3a_ba69cf27","line":340,"in_reply_to":"9aed3d3a_faba3709","updated":"2016-02-28 20:34:02.000000000","message":"tc is standard, kernel tool available on all distributions (I didn\u0027t see any without it). It\u0027s not \"tc_show\" command. It is \"tc\" command. For example \"tc qdisc show dev eth0\".","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"}],"etc/neutron/rootwrap.d/linuxbridge-plugin.filters":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":19,"context_line":"find: RegExpFilter, find, root, find, /sys/class/net, -maxdepth, 1, -type, l, -printf, %.*"},{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"#tc"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"3a29b11f_2e14c2e6","line":22,"updated":"2015-10-23 13:15:17.000000000","message":"redundant comment. Instead, please say here that it\u0027s needed for QoS bandwidth limit implementation","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b2355d2df4aaa95bad6a379c50079c50ed402ea5","unresolved":false,"context_lines":[{"line_number":19,"context_line":"find: RegExpFilter, find, root, find, /sys/class/net, -maxdepth, 1, -type, l, -printf, %.*"},{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"#tc"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"3a29b11f_0049838e","line":22,"in_reply_to":"3a29b11f_2e14c2e6","updated":"2015-10-23 22:42:41.000000000","message":"Done","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"#tc"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"3a29b11f_ced50e1c","line":23,"updated":"2015-10-23 13:15:17.000000000","message":"Can we be more specific about which arguments are allowed?","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b2355d2df4aaa95bad6a379c50079c50ed402ea5","unresolved":false,"context_lines":[{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"#tc"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"3a29b11f_800b532b","line":23,"in_reply_to":"3a29b11f_ced50e1c","updated":"2015-10-23 22:42:41.000000000","message":"Yes, I specified only used arg here","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":19,"context_line":"find: RegExpFilter, find, root, find, /sys/class/net, -maxdepth, 1, -type, l, -printf, %.*"},{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"#tc command needed for QoS support in linuxbridge agent:"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root, qdisc"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"1a26ad4f_624c839e","line":22,"updated":"2015-11-01 12:33:05.000000000","message":"Better to add a space after \u0027#\u0027 and remove \u0027:\u0027 from the end to make it consistent.","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":19,"context_line":"find: RegExpFilter, find, root, find, /sys/class/net, -maxdepth, 1, -type, l, -printf, %.*"},{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"#tc command needed for QoS support in linuxbridge agent:"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root, qdisc"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"fa80f949_f81c4979","line":22,"in_reply_to":"1a26ad4f_624c839e","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":19,"context_line":"find: RegExpFilter, find, root, find, /sys/class/net, -maxdepth, 1, -type, l, -printf, %.*"},{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc command needed for QoS support in linuxbridge agent"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root, qdisc"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"fa80f949_d6a002f7","line":22,"updated":"2015-11-04 12:32:45.000000000","message":"It\u0027s obvious it\u0027s for linuxbridge agent because the file name implies it.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":19,"context_line":"find: RegExpFilter, find, root, find, /sys/class/net, -maxdepth, 1, -type, l, -printf, %.*"},{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc command needed for QoS support in linuxbridge agent"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root, qdisc"}],"source_content_type":"application/octet-stream","patch_set":9,"id":"fa80f949_67770d3b","line":22,"in_reply_to":"fa80f949_d6a002f7","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":14615,"name":"Sergey Belous","email":"belous.py@gmail.com","username":"sbelous"},"change_message_id":"ecc65b10a196839a660d81359904d0d447818068","unresolved":false,"context_lines":[{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc command needed for QoS support"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root, qdisc"}],"source_content_type":"application/octet-stream","patch_set":25,"id":"dae33548_0cf0db8f","line":23,"range":{"start_line":23,"start_character":0,"end_line":23,"end_character":34},"updated":"2016-02-15 13:40:06.000000000","message":"I think, we must use more restricted filter (RegExpFilter, for example) here to make things safer.","commit_id":"6bb1b3f835aba00b787a1bfeeaf601a31eb2dec7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"5b7012c760dafb4332ea9d486c9d40258f74003e","unresolved":false,"context_lines":[{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc command needed for QoS support"},{"line_number":23,"context_line":"tc: CommandFilter, tc, root, qdisc"}],"source_content_type":"application/octet-stream","patch_set":25,"id":"dae33548_8805e0c3","line":23,"range":{"start_line":23,"start_character":0,"end_line":23,"end_character":34},"in_reply_to":"dae33548_0cf0db8f","updated":"2016-02-15 23:28:12.000000000","message":"Changed to more specified commands with regex. Should be better now.","commit_id":"6bb1b3f835aba00b787a1bfeeaf601a31eb2dec7"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":19,"context_line":"find: RegExpFilter, find, root, find, /sys/class/net, -maxdepth, 1, -type, l, -printf, %.*"},{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc command needed for QoS support"},{"line_number":23,"context_line":"#tc: CommandFilter, tc, root, qdisc"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"tc_replace_tbf: RegExpFilter, tc, root, tc, qdisc, replace, dev, .+, root, tbf, rate, .+, latency, .+, burst, .+"}],"source_content_type":"application/octet-stream","patch_set":26,"id":"bae84128_8aeac80d","line":22,"updated":"2016-02-22 13:29:50.000000000","message":"That would belong to all lines below, so command -\u003e commands","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":19,"context_line":"find: RegExpFilter, find, root, find, /sys/class/net, -maxdepth, 1, -type, l, -printf, %.*"},{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc command needed for QoS support"},{"line_number":23,"context_line":"#tc: CommandFilter, tc, root, qdisc"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"tc_replace_tbf: RegExpFilter, tc, root, tc, qdisc, replace, dev, .+, root, tbf, rate, .+, latency, .+, burst, .+"}],"source_content_type":"application/octet-stream","patch_set":26,"id":"bae84128_36eb1015","line":22,"in_reply_to":"bae84128_8aeac80d","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc command needed for QoS support"},{"line_number":23,"context_line":"#tc: CommandFilter, tc, root, qdisc"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"tc_replace_tbf: RegExpFilter, tc, root, tc, qdisc, replace, dev, .+, root, tbf, rate, .+, latency, .+, burst, .+"},{"line_number":26,"context_line":"tc_delete: RegExpFilter, tc, root, tc, qdisc, del, dev, .+, root"}],"source_content_type":"application/octet-stream","patch_set":26,"id":"bae84128_aa806c47","line":23,"updated":"2016-02-22 13:29:50.000000000","message":"Please remove the commented line.","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc command needed for QoS support"},{"line_number":23,"context_line":"#tc: CommandFilter, tc, root, qdisc"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"tc_replace_tbf: RegExpFilter, tc, root, tc, qdisc, replace, dev, .+, root, tbf, rate, .+, latency, .+, burst, .+"},{"line_number":26,"context_line":"tc_delete: RegExpFilter, tc, root, tc, qdisc, del, dev, .+, root"}],"source_content_type":"application/octet-stream","patch_set":26,"id":"bae84128_d68bc466","line":23,"in_reply_to":"bae84128_aa806c47","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5e02408ebe7e0f1f17433336d7fd897dbf71d6f0","unresolved":false,"context_lines":[{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc commands needed for QoS support"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"tc_replace_tbf: RegExpFilter, tc, root, tc, qdisc, replace, dev, .+, root, tbf, rate, .+, latency, .+, burst, .+"},{"line_number":25,"context_line":"tc_delete: RegExpFilter, tc, root, tc, qdisc, del, dev, .+, root"},{"line_number":26,"context_line":"tc_show: RegExpFilter, tc, root, tc, qdisc, show, dev, .+"}],"source_content_type":"application/octet-stream","patch_set":28,"id":"bae84128_c053da15","line":23,"updated":"2016-02-23 12:10:02.000000000","message":"nitty nit: the empty line is redundant","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ad55c8cae9d9d0fa60f888462f56561b439730b2","unresolved":false,"context_lines":[{"line_number":20,"context_line":"ip_exec: IpNetnsExecFilter, ip, root"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# tc commands needed for QoS support"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"tc_replace_tbf: RegExpFilter, tc, root, tc, qdisc, replace, dev, .+, root, tbf, rate, .+, latency, .+, burst, .+"},{"line_number":25,"context_line":"tc_delete: RegExpFilter, tc, root, tc, qdisc, del, dev, .+, root"},{"line_number":26,"context_line":"tc_show: RegExpFilter, tc, root, tc, qdisc, show, dev, .+"}],"source_content_type":"application/octet-stream","patch_set":28,"id":"bae84128_e8b34b96","line":23,"in_reply_to":"bae84128_c053da15","updated":"2016-02-23 20:51:55.000000000","message":"Done","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"}],"neutron/agent/linux/tc_lib.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b6f14090b770f6b1e1e61974d4c06df2f23d0706","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class TcCommand(ip_lib.IPDevice):"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    #TODO(sk): those two params should be maybe added to agent\u0027s config file:"},{"line_number":23,"context_line":"    kernel_hz \u003d 250"},{"line_number":24,"context_line":"    latency \u003d \"50ms\" "},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def _tc(self, cmd, **kwargs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_72f11bcd","line":23,"updated":"2015-10-19 09:51:51.000000000","message":"Can\u0027t we auto discover this from the system?\n\ngrep \"CONFIG_HZ\u003d\" /boot/config-$(uname -r)  ? \n\nI\u0027m not sure if it\u0027s available to all systems, but at least it could be worth trying.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"c6821a33c127b914ca4f65efdedd7b537024840b","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class TcCommand(ip_lib.IPDevice):"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    #TODO(sk): those two params should be maybe added to agent\u0027s config file:"},{"line_number":23,"context_line":"    kernel_hz \u003d 250"},{"line_number":24,"context_line":"    latency \u003d \"50ms\" "},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def _tc(self, cmd, **kwargs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_cddbad1a","line":23,"in_reply_to":"3a29b11f_38b6258b","updated":"2015-10-19 12:43:57.000000000","message":"Config file is a better option.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ed2749af6bd019b931fc9318383ec33bdfdd453b","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class TcCommand(ip_lib.IPDevice):"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    #TODO(sk): those two params should be maybe added to agent\u0027s config file:"},{"line_number":23,"context_line":"    kernel_hz \u003d 250"},{"line_number":24,"context_line":"    latency \u003d \"50ms\" "},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def _tc(self, cmd, **kwargs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_38b6258b","line":23,"in_reply_to":"3a29b11f_72f11bcd","updated":"2015-10-19 10:15:25.000000000","message":"I don\u0027t know how it is on different systems. I can for now only check it on Ubuntu and it is like You said there. I was tather thinking about put this in config file (or maybe try to do autodiscover that and if there is no such file, put some \"legacy\" value?).\nI will for sure change it later.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b6f14090b770f6b1e1e61974d4c06df2f23d0706","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    #TODO(sk): those two params should be maybe added to agent\u0027s config file:"},{"line_number":23,"context_line":"    kernel_hz \u003d 250"},{"line_number":24,"context_line":"    latency \u003d \"50ms\" "},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def _tc(self, cmd, **kwargs):"},{"line_number":27,"context_line":"        cmd \u003d [\u0027tc\u0027] + cmd"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_52797f92","line":24,"updated":"2015-10-19 09:51:51.000000000","message":"nit: trailing white space.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"be37ea21a57dbaeb9d46c691e3c6cb5cc4cb5700","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    #TODO(sk): those two params should be maybe added to agent\u0027s config file:"},{"line_number":23,"context_line":"    kernel_hz \u003d 250"},{"line_number":24,"context_line":"    latency \u003d \"50ms\" "},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def _tc(self, cmd, **kwargs):"},{"line_number":27,"context_line":"        cmd \u003d [\u0027tc\u0027] + cmd"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_977e29ad","line":24,"updated":"2015-10-19 09:37:03.000000000","message":"trailing space","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ed2749af6bd019b931fc9318383ec33bdfdd453b","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    #TODO(sk): those two params should be maybe added to agent\u0027s config file:"},{"line_number":23,"context_line":"    kernel_hz \u003d 250"},{"line_number":24,"context_line":"    latency \u003d \"50ms\" "},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def _tc(self, cmd, **kwargs):"},{"line_number":27,"context_line":"        cmd \u003d [\u0027tc\u0027] + cmd"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_d8a7f14d","line":24,"in_reply_to":"3a29b11f_977e29ad","updated":"2015-10-19 10:15:25.000000000","message":"thx, I will fix it :)","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b6f14090b770f6b1e1e61974d4c06df2f23d0706","unresolved":false,"context_lines":[{"line_number":35,"context_line":"            \u0027qdisc\u0027, \u0027add\u0027, \u0027dev\u0027, self.name,"},{"line_number":36,"context_line":"            \u0027root\u0027, \u0027tbf\u0027,"},{"line_number":37,"context_line":"            \u0027rate\u0027, rate_limit,"},{"line_number":38,"context_line":"            \u0027latency\u0027, self.latency,"},{"line_number":39,"context_line":"            \u0027burst\u0027, burst"},{"line_number":40,"context_line":"        ]"},{"line_number":41,"context_line":"        return self._tc(cmd)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_b2957341","line":38,"updated":"2015-10-19 09:51:51.000000000","message":"Why do you add latency? I think that\u0027s not necessary.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"d506a6b422a545777649a616f3ccc53b988defa6","unresolved":false,"context_lines":[{"line_number":35,"context_line":"            \u0027qdisc\u0027, \u0027add\u0027, \u0027dev\u0027, self.name,"},{"line_number":36,"context_line":"            \u0027root\u0027, \u0027tbf\u0027,"},{"line_number":37,"context_line":"            \u0027rate\u0027, rate_limit,"},{"line_number":38,"context_line":"            \u0027latency\u0027, self.latency,"},{"line_number":39,"context_line":"            \u0027burst\u0027, burst"},{"line_number":40,"context_line":"        ]"},{"line_number":41,"context_line":"        return self._tc(cmd)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_12278013","line":38,"in_reply_to":"3a29b11f_1b7563ca","updated":"2015-10-19 12:00:30.000000000","message":"Miguel: it is explained very well on: http://unix.stackexchange.com/a/100797","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"faf04e21d232e1bce78a53ef30efd98c2588a9e9","unresolved":false,"context_lines":[{"line_number":35,"context_line":"            \u0027qdisc\u0027, \u0027add\u0027, \u0027dev\u0027, self.name,"},{"line_number":36,"context_line":"            \u0027root\u0027, \u0027tbf\u0027,"},{"line_number":37,"context_line":"            \u0027rate\u0027, rate_limit,"},{"line_number":38,"context_line":"            \u0027latency\u0027, self.latency,"},{"line_number":39,"context_line":"            \u0027burst\u0027, burst"},{"line_number":40,"context_line":"        ]"},{"line_number":41,"context_line":"        return self._tc(cmd)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_1b7563ca","line":38,"in_reply_to":"3a29b11f_3bab7f8b","updated":"2015-10-19 10:29:52.000000000","message":"limit or latency\n              Limit is the number of bytes that can be queued waiting for tokens to become available. You can also specify this the other way around by setting the latency parameter,  which  specifies  the\n              maximum  amount  of  time  a packet can sit in the TBF. The latter calculation takes into account the size of the bucket, the rate and possibly the peakrate (if set). These two parameters are\n              mutually exclusive.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ed2749af6bd019b931fc9318383ec33bdfdd453b","unresolved":false,"context_lines":[{"line_number":35,"context_line":"            \u0027qdisc\u0027, \u0027add\u0027, \u0027dev\u0027, self.name,"},{"line_number":36,"context_line":"            \u0027root\u0027, \u0027tbf\u0027,"},{"line_number":37,"context_line":"            \u0027rate\u0027, rate_limit,"},{"line_number":38,"context_line":"            \u0027latency\u0027, self.latency,"},{"line_number":39,"context_line":"            \u0027burst\u0027, burst"},{"line_number":40,"context_line":"        ]"},{"line_number":41,"context_line":"        return self._tc(cmd)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_d855b11d","line":38,"in_reply_to":"3a29b11f_b2957341","updated":"2015-10-19 10:15:25.000000000","message":"as tc manual said it is mandatory to give latency or limit (in bytes) fot tbf qdisc. I\u0027m thinking about using htb instead of tbf here but it is classfull qdisc so I don\u0027t know if it is neccessary here to only limit bandwidth.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b4e7a6a1ce8a35b4007b9c86f75e8324477771c3","unresolved":false,"context_lines":[{"line_number":35,"context_line":"            \u0027qdisc\u0027, \u0027add\u0027, \u0027dev\u0027, self.name,"},{"line_number":36,"context_line":"            \u0027root\u0027, \u0027tbf\u0027,"},{"line_number":37,"context_line":"            \u0027rate\u0027, rate_limit,"},{"line_number":38,"context_line":"            \u0027latency\u0027, self.latency,"},{"line_number":39,"context_line":"            \u0027burst\u0027, burst"},{"line_number":40,"context_line":"        ]"},{"line_number":41,"context_line":"        return self._tc(cmd)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_3bab7f8b","line":38,"in_reply_to":"3a29b11f_d855b11d","updated":"2015-10-19 10:21:01.000000000","message":"May be for port bridge-ingress level, this is more than enough, and probably going to be more performant than more complex things. I guess we can change that later when needed, let\u0027s keep things simple while we can :)\n\nJust verify if the latency parameter is really mandatory and what does it exactly mean? , latency limit? induced latency?","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"c6821a33c127b914ca4f65efdedd7b537024840b","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def _get_burst_value(self, bw_limit, burst_limit):"},{"line_number":48,"context_line":"        min_burst_value \u003d self._get_min_burst_value(bw_limit)"},{"line_number":49,"context_line":"        return max(min_burst_value, burst_limit*1024)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":52,"context_line":"        return int(bw_limit/self.kernel_hz) * 1024"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_6dedb98a","line":49,"updated":"2015-10-19 12:43:57.000000000","message":"Better not to use magic numbers. IMO, it\u0027s better to have constant for 1024.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"6b2a1c5b8abd5c41ef22dd624436ae782e438b64","unresolved":false,"context_lines":[{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def _get_burst_value(self, bw_limit, burst_limit):"},{"line_number":48,"context_line":"        min_burst_value \u003d self._get_min_burst_value(bw_limit)"},{"line_number":49,"context_line":"        return max(min_burst_value, burst_limit*1024)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":52,"context_line":"        return int(bw_limit/self.kernel_hz) * 1024"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_bc6e8994","line":49,"in_reply_to":"3a29b11f_6dedb98a","updated":"2015-10-19 20:03:08.000000000","message":"but this is not \"magic\" number. I only replace kilobytes with bytes. Really it is neccassary to use constant in such case?","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"c6821a33c127b914ca4f65efdedd7b537024840b","unresolved":false,"context_lines":[{"line_number":49,"context_line":"        return max(min_burst_value, burst_limit*1024)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":52,"context_line":"        return int(bw_limit/self.kernel_hz) * 1024"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_cdfc0d41","line":52,"updated":"2015-10-19 12:43:57.000000000","message":"ditto","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.namespace)"},{"line_number":31,"context_line":"        return ip_wrapper.netns.execute(cmd, run_as_root\u003dTrue, **kwargs)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def set_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"},{"line_number":34,"context_line":"        burst \u003d self.get_burst_value(bw_limit, burst_limit)"},{"line_number":35,"context_line":"        latency \u003d \"%s%s\" % (latency_value, LATENCY_UNIT)"},{"line_number":36,"context_line":"        rate_limit \u003d \"%skbps\" % bw_limit"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_ae277261","line":33,"updated":"2015-10-23 13:15:17.000000000","message":"Sorry for ignorance, but what is tbf or qdisc? Can those names be something more user friendly than that?","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b2355d2df4aaa95bad6a379c50079c50ed402ea5","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.namespace)"},{"line_number":31,"context_line":"        return ip_wrapper.netns.execute(cmd, run_as_root\u003dTrue, **kwargs)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def set_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"},{"line_number":34,"context_line":"        burst \u003d self.get_burst_value(bw_limit, burst_limit)"},{"line_number":35,"context_line":"        latency \u003d \"%s%s\" % (latency_value, LATENCY_UNIT)"},{"line_number":36,"context_line":"        rate_limit \u003d \"%skbps\" % bw_limit"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_60d717ee","line":33,"in_reply_to":"3a29b11f_ae277261","updated":"2015-10-23 22:42:41.000000000","message":"qdisc is something like queue algorithm used in tc (\u0027queueing discipline\u0027 from tc man page) and tbf is one of possible variants of this algorithm.\nI changed methods\u0027 names to more friendly.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def set_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"},{"line_number":34,"context_line":"        burst \u003d self.get_burst_value(bw_limit, burst_limit)"},{"line_number":35,"context_line":"        latency \u003d \"%s%s\" % (latency_value, LATENCY_UNIT)"},{"line_number":36,"context_line":"        rate_limit \u003d \"%skbps\" % bw_limit"},{"line_number":37,"context_line":"        cmd \u003d ["},{"line_number":38,"context_line":"            \u0027qdisc\u0027, \u0027add\u0027, \u0027dev\u0027, self.name,"},{"line_number":39,"context_line":"            \u0027root\u0027, \u0027tbf\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_4e233e56","line":36,"updated":"2015-10-23 13:15:17.000000000","message":"nit: Why do you use a constant for latency but not bw limit?","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b2355d2df4aaa95bad6a379c50079c50ed402ea5","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def set_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"},{"line_number":34,"context_line":"        burst \u003d self.get_burst_value(bw_limit, burst_limit)"},{"line_number":35,"context_line":"        latency \u003d \"%s%s\" % (latency_value, LATENCY_UNIT)"},{"line_number":36,"context_line":"        rate_limit \u003d \"%skbps\" % bw_limit"},{"line_number":37,"context_line":"        cmd \u003d ["},{"line_number":38,"context_line":"            \u0027qdisc\u0027, \u0027add\u0027, \u0027dev\u0027, self.name,"},{"line_number":39,"context_line":"            \u0027root\u0027, \u0027tbf\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_80f7d38b","line":36,"in_reply_to":"3a29b11f_4e233e56","updated":"2015-10-23 22:42:41.000000000","message":"My mistake. Fixed.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":39,"context_line":"            \u0027root\u0027, \u0027tbf\u0027,"},{"line_number":40,"context_line":"            \u0027rate\u0027, rate_limit,"},{"line_number":41,"context_line":"            \u0027latency\u0027, latency,"},{"line_number":42,"context_line":"            \u0027burst\u0027, burst"},{"line_number":43,"context_line":"        ]"},{"line_number":44,"context_line":"        return self._tc(cmd)"},{"line_number":45,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_6e1e3a0d","line":42,"updated":"2015-10-23 13:15:17.000000000","message":"Can you explain each argument of the command? Specifically, I am interested in \u0027root\u0027 and \u0027tbf\u0027. You can expand on it in doc/source/devref/quality_of_service.rst, Agent backends section.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def delete_tbf_qdisc(self):"},{"line_number":47,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":48,"context_line":"        return self._tc(cmd, extra_ok_codes\u003d[2])"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def get_burst_value(self, bw_limit, burst_limit):"},{"line_number":51,"context_line":"        min_burst_value \u003d self._get_min_burst_value(bw_limit)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_0e19c621","line":48,"updated":"2015-10-23 13:15:17.000000000","message":"What does error code 2 mean? Is it documented anywhere?","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b2355d2df4aaa95bad6a379c50079c50ed402ea5","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def delete_tbf_qdisc(self):"},{"line_number":47,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":48,"context_line":"        return self._tc(cmd, extra_ok_codes\u003d[2])"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def get_burst_value(self, bw_limit, burst_limit):"},{"line_number":51,"context_line":"        min_burst_value \u003d self._get_min_burst_value(bw_limit)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_4080db8b","line":48,"in_reply_to":"3a29b11f_0e19c621","updated":"2015-10-23 22:42:41.000000000","message":"It means just \"RTNETLINK answers: No such file or directory\" and I want to ignore them such error when qdisc is deleting. Should I put it in comment here maybe?","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"2975615fdfdddd9996b9a3c5f6f2110b3b596022","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def delete_tbf_qdisc(self):"},{"line_number":47,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":48,"context_line":"        return self._tc(cmd, extra_ok_codes\u003d[2])"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def get_burst_value(self, bw_limit, burst_limit):"},{"line_number":51,"context_line":"        min_burst_value \u003d self._get_min_burst_value(bw_limit)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a26ad4f_927f9b65","line":48,"in_reply_to":"3a29b11f_4080db8b","updated":"2015-11-02 12:26:50.000000000","message":"Yes, some comments could make a long way towards readability.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 Slawek Kaplonski \u003cslawek@kaplonski.pl\u003e"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#"},{"line_number":5,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":6,"context_line":"#    not use this file except in compliance with the License. You may obtain"},{"line_number":7,"context_line":"#    a copy of the License at"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_621a437f","line":4,"updated":"2015-11-01 12:33:05.000000000","message":"Un-necessary blank line.","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 Slawek Kaplonski \u003cslawek@kaplonski.pl\u003e"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#"},{"line_number":5,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":6,"context_line":"#    not use this file except in compliance with the License. You may obtain"},{"line_number":7,"context_line":"#    a copy of the License at"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_3b316bed","line":4,"in_reply_to":"1a26ad4f_621a437f","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        super(TcCommand, self).__init__(name, namespace\u003dnamespace)"},{"line_number":27,"context_line":"        self.kernel_hz \u003d kernel_hz"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _tc(self, cmd, **kwargs):"},{"line_number":30,"context_line":"        cmd \u003d [\u0027tc\u0027] + cmd"},{"line_number":31,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.namespace)"},{"line_number":32,"context_line":"        return ip_wrapper.netns.execute(cmd, run_as_root\u003dTrue, **kwargs)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_821f5f6b","line":29,"updated":"2015-11-01 12:33:05.000000000","message":"How about renaming it to \"def _execute_tc_cmd\"","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        super(TcCommand, self).__init__(name, namespace\u003dnamespace)"},{"line_number":27,"context_line":"        self.kernel_hz \u003d kernel_hz"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _tc(self, cmd, **kwargs):"},{"line_number":30,"context_line":"        cmd \u003d [\u0027tc\u0027] + cmd"},{"line_number":31,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.namespace)"},{"line_number":32,"context_line":"        return ip_wrapper.netns.execute(cmd, run_as_root\u003dTrue, **kwargs)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_fb78c391","line":29,"in_reply_to":"1a26ad4f_821f5f6b","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.namespace)"},{"line_number":32,"context_line":"        return ip_wrapper.netns.execute(cmd, run_as_root\u003dTrue, **kwargs)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def set_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":35,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def update_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_e2609303","line":34,"updated":"2015-11-01 12:33:05.000000000","message":"Can\u0027t we just name it as \"set_bw_limit\"","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        ip_wrapper \u003d ip_lib.IPWrapper(self.namespace)"},{"line_number":32,"context_line":"        return ip_wrapper.netns.execute(cmd, run_as_root\u003dTrue, **kwargs)"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def set_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":35,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def update_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_db813f4f","line":34,"in_reply_to":"1a26ad4f_e2609303","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    def set_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":35,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def update_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":38,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def delete_classless_bw_limit(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_c2531738","line":37,"updated":"2015-11-01 12:33:05.000000000","message":"update_bw_limit","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    def set_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":35,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def update_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":38,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def delete_classless_bw_limit(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_fb868364","line":37,"in_reply_to":"1a26ad4f_c2531738","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def update_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":38,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def delete_classless_bw_limit(self):"},{"line_number":41,"context_line":"        return self._delete_tbf_qdisc()"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def get_burst_value(self, bw_limit, burst_limit):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_62332315","line":40,"updated":"2015-11-01 12:33:05.000000000","message":"delete_bw_limit","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    def update_classless_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":38,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def delete_classless_bw_limit(self):"},{"line_number":41,"context_line":"        return self._delete_tbf_qdisc()"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def get_burst_value(self, bw_limit, burst_limit):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_9b7bb77b","line":40,"in_reply_to":"1a26ad4f_62332315","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":47,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":48,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def _replace_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"},{"line_number":51,"context_line":"        burst \u003d self.get_burst_value(bw_limit, burst_limit)"},{"line_number":52,"context_line":"        latency \u003d \"%s%s\" % (latency_value, LATENCY_UNIT)"},{"line_number":53,"context_line":"        rate_limit \u003d \"%s%s\" % (bw_limit, BW_LIMIT_UNIT)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_22420b69","line":50,"updated":"2015-11-01 12:33:05.000000000","message":"how about renaming it as \"_apply_burst_value\" or \"_set_burst_value\"","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":47,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":48,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    def _replace_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"},{"line_number":51,"context_line":"        burst \u003d self.get_burst_value(bw_limit, burst_limit)"},{"line_number":52,"context_line":"        latency \u003d \"%s%s\" % (latency_value, LATENCY_UNIT)"},{"line_number":53,"context_line":"        rate_limit \u003d \"%s%s\" % (bw_limit, BW_LIMIT_UNIT)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_fb3be39a","line":50,"in_reply_to":"1a26ad4f_22420b69","updated":"2015-11-03 21:07:23.000000000","message":"I don\u0027t know. In fact this method is applying bandwidth limit and burst at once. And IMHO such method name is fine because it gives You information about what it is doing in fact.","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        ]"},{"line_number":61,"context_line":"        return self._tc(cmd)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _delete_tbf_qdisc(self):"},{"line_number":64,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":65,"context_line":"        return self._tc(cmd, extra_ok_codes\u003d[2])"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_423e27db","line":63,"updated":"2015-11-01 12:33:05.000000000","message":"how about renaming it as \"_delete_burst_value\"","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        ]"},{"line_number":61,"context_line":"        return self._tc(cmd)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _delete_tbf_qdisc(self):"},{"line_number":64,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":65,"context_line":"        return self._tc(cmd, extra_ok_codes\u003d[2])"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_9b5737ca","line":63,"in_reply_to":"1a26ad4f_423e27db","updated":"2015-11-03 21:07:23.000000000","message":"Same as above. This method is in fact deleting qdisc (not only burst value) so rename it is not good IMHO. Both those methods are quite \"low level\" methods and are only for \"private\" use so I think that such names are fine here.","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_b6121eb3","line":1,"updated":"2015-11-04 12:32:45.000000000","message":"I see multiple copyright holders in different files (sometimes it\u0027s Slawek, sometimes OVH). Is it really expected?","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_27902543","line":1,"in_reply_to":"fa80f949_b6121eb3","updated":"2015-11-04 22:46:11.000000000","message":"Should be OVH in all those files.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def set_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":34,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def update_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":37,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def delete_bw_limit(self):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_5652d268","line":36,"updated":"2015-11-04 12:32:45.000000000","message":"Any reason to have two identical functions for set and update?","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def set_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":34,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def update_bw_limit(self, bw_limit, burst_limit, latency_value):"},{"line_number":37,"context_line":"        return self._replace_tbf_qdisc(bw_limit, burst_limit, latency_value)"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def delete_bw_limit(self):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_a7cbb552","line":36,"in_reply_to":"fa80f949_5652d268","updated":"2015-11-04 22:46:11.000000000","message":"I made two methods because if it is called from \"outside\" then it is better to have method with proper name (update or set) and in fact maybe if there will be other qdisc used in future then those functions will be not same. If You want I can change it to one function.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":47,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _replace_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"},{"line_number":50,"context_line":"        burst \u003d self.get_burst_value(bw_limit, burst_limit)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_166a0a81","line":47,"updated":"2015-11-04 12:32:45.000000000","message":"Can you explain the math here? How is kernel hz involved? Do you have references to some external documentation for that?","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":47,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def _replace_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"},{"line_number":50,"context_line":"        burst \u003d self.get_burst_value(bw_limit, burst_limit)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_a74095a6","line":47,"in_reply_to":"fa80f949_166a0a81","updated":"2015-11-04 22:46:11.000000000","message":"It is described in tc-tbf man: http://linux.die.net/man/8/tc-tbf and also it is very well explained in http://unix.stackexchange.com/a/100797\nMinimal burst value is configured bw_limit divided by HZ value configured in kernel. Multiply by 1024 is only for getting this value in kilobytes instead of bytes.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        ]"},{"line_number":60,"context_line":"        return self._execute_tc_cmd(cmd)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _delete_tbf_qdisc(self):"},{"line_number":63,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":64,"context_line":"        return self._execute_tc_cmd(cmd, extra_ok_codes\u003d[2])"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_96ed9a8d","line":62,"updated":"2015-11-04 12:32:45.000000000","message":"Why having this private method instead of incorporating its code into delete_bw_limit?","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        ]"},{"line_number":60,"context_line":"        return self._execute_tc_cmd(cmd)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _delete_tbf_qdisc(self):"},{"line_number":63,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":64,"context_line":"        return self._execute_tc_cmd(cmd, extra_ok_codes\u003d[2])"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_471689a8","line":62,"in_reply_to":"fa80f949_96ed9a8d","updated":"2015-11-04 22:46:11.000000000","message":"I don\u0027t know why I made it like this. Fixed now","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _delete_tbf_qdisc(self):"},{"line_number":63,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":64,"context_line":"        return self._execute_tc_cmd(cmd, extra_ok_codes\u003d[2])"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_962b5a30","line":64,"updated":"2015-11-04 12:32:45.000000000","message":"Please add a comment explaining why error code \u003d 2 is ok.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    def _delete_tbf_qdisc(self):"},{"line_number":63,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":64,"context_line":"        return self._execute_tc_cmd(cmd, extra_ok_codes\u003d[2])"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_c7503961","line":64,"in_reply_to":"fa80f949_962b5a30","updated":"2015-11-04 22:46:11.000000000","message":"Return_code\u003d2 is fine because it means \"RTNETLINK answers: No such file or directory\" what is fine when we are trying to delete qdisc.\nI added such comment in code also","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":18658,"name":"Jas Singh","email":"singhj@us.ibm.com","username":"singhj"},"change_message_id":"2287ad515d5ea48825d75b5d404b740058a95a22","unresolved":false,"context_lines":[{"line_number":38,"context_line":"            return bits_to_bytes(value)"},{"line_number":39,"context_line":"        else:"},{"line_number":40,"context_line":"            return int(value)"},{"line_number":41,"context_line":"    i \u003d 1"},{"line_number":42,"context_line":"    for unit in UNITS:"},{"line_number":43,"context_line":"        val_unit \u003d value[-1:]"},{"line_number":44,"context_line":"        if val_unit \u003d\u003d unit:"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa80f949_db4a5183","line":41,"updated":"2015-11-04 23:50:30.000000000","message":"Just curious: any reason to not be able to use a dict or something for UNITS. Just for clarity and to get the exponent of the the val_unit without looping. It\u0027d probably be better to not bother doing any of the other steps if the val_unit turns out to be something not in the UNITS bucket. eg. if input contains an error 10mbits (for example) will will have become 10ms which will show \"s\" as the val_unit.","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"65cb5db9ca14046b677868e25d808c57b6d9747d","unresolved":false,"context_lines":[{"line_number":38,"context_line":"            return bits_to_bytes(value)"},{"line_number":39,"context_line":"        else:"},{"line_number":40,"context_line":"            return int(value)"},{"line_number":41,"context_line":"    i \u003d 1"},{"line_number":42,"context_line":"    for unit in UNITS:"},{"line_number":43,"context_line":"        val_unit \u003d value[-1:]"},{"line_number":44,"context_line":"        if val_unit \u003d\u003d unit:"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa80f949_0fb148e1","line":41,"in_reply_to":"fa80f949_db4a5183","updated":"2015-11-05 20:39:25.000000000","message":"You are right that it can be done with dict and without iterations :) I just changed it.\nI don\u0027t want to use full unit names (like kbit) because now I can use same function to convert bytes and bytes and bytes_per_second. As there is in tc manual: http://linux.die.net/man/8/tc it shouldn\u0027t be given as mbits there.\nI know that this function is not perfect and I\u0027m not proud of it but I spent quite long time on looking for better solution and I can\u0027t find anything. It looks that tc hasn\u0027t got any possibility to \"force\" unit of displayed values. I also can\u0027t find any place (like /proc or /sys) where those values can be stored.\nI need this function only for some functional (and fullstack) tests so it is I think not very critical point and that\u0027s why I decided to left it in that way.","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":18658,"name":"Jas Singh","email":"singhj@us.ibm.com","username":"singhj"},"change_message_id":"2287ad515d5ea48825d75b5d404b740058a95a22","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        else:"},{"line_number":40,"context_line":"            return int(value)"},{"line_number":41,"context_line":"    i \u003d 1"},{"line_number":42,"context_line":"    for unit in UNITS:"},{"line_number":43,"context_line":"        val_unit \u003d value[-1:]"},{"line_number":44,"context_line":"        if val_unit \u003d\u003d unit:"},{"line_number":45,"context_line":"            val \u003d int(value[:-1])"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa80f949_9b5a8982","line":42,"updated":"2015-11-04 23:50:30.000000000","message":"The extraction of val_unit seems like it could have been out side of the loop.","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"65cb5db9ca14046b677868e25d808c57b6d9747d","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        else:"},{"line_number":40,"context_line":"            return int(value)"},{"line_number":41,"context_line":"    i \u003d 1"},{"line_number":42,"context_line":"    for unit in UNITS:"},{"line_number":43,"context_line":"        val_unit \u003d value[-1:]"},{"line_number":44,"context_line":"        if val_unit \u003d\u003d unit:"},{"line_number":45,"context_line":"            val \u003d int(value[:-1])"}],"source_content_type":"text/x-python","patch_set":11,"id":"fa80f949_2fb44ccf","line":42,"in_reply_to":"fa80f949_9b5a8982","updated":"2015-11-05 20:39:25.000000000","message":"Done","commit_id":"1b93617aac2271a121bb38e491bc793110a4313d"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"8cb329ec1c2be730c7f6e02fc774bd4fae35fd57","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_11d1b9fb","line":1,"updated":"2016-01-08 04:24:48.000000000","message":"Let\u0027s move to fresh year 2016;)","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"501579c3a93496f584b359fc324c2347573f3f80","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_6d92864d","line":1,"in_reply_to":"fa69d971_11d1b9fb","updated":"2016-01-08 08:27:21.000000000","message":"Done","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c552a0e0a9bf41fdb4e3a89d189a9e7d98085372","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def bits_to_bytes(value):"},{"line_number":56,"context_line":"    return int(value) / 8"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def bytes_to_kilobytes(value):"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_950c513c","line":56,"range":{"start_line":56,"start_character":15,"end_line":56,"end_character":20},"updated":"2016-01-14 10:55:06.000000000","message":"I\u0027d recommend rounding up\n\nint(value+7)/8\n\nso 1 bit would return at least 1 byte in this context.\n\nOtherwise we\u0027d get 0","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"276874236a25adc03aaa9741a2e35bb4cc7b7b7d","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def bits_to_bytes(value):"},{"line_number":56,"context_line":"    return int(value) / 8"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def bytes_to_kilobytes(value):"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_4311c7ae","line":56,"range":{"start_line":56,"start_character":15,"end_line":56,"end_character":20},"in_reply_to":"da6ed579_950c513c","updated":"2016-01-16 16:34:12.000000000","message":"Done","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c552a0e0a9bf41fdb4e3a89d189a9e7d98085372","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":60,"context_line":"    if value:"},{"line_number":61,"context_line":"        return value / 1024"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"class TcCommand(ip_lib.IPDevice):"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_f5490d61","line":61,"range":{"start_line":61,"start_character":15,"end_line":61,"end_character":20},"updated":"2016-01-14 10:55:06.000000000","message":"same here\n\n(value+1023)/1024\n\nThis way, at least with 1 byte we get 1kb\nand with 1025 bytes we get 2kb \n\nwhich in terms of bandwidth makes it possible. (we had a similar issue with SR-IOV, there was more severe because SR-IOV only accepted 1Mbps steps).","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"276874236a25adc03aaa9741a2e35bb4cc7b7b7d","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":60,"context_line":"    if value:"},{"line_number":61,"context_line":"        return value / 1024"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"class TcCommand(ip_lib.IPDevice):"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_63164ba9","line":61,"range":{"start_line":61,"start_character":15,"end_line":61,"end_character":20},"in_reply_to":"da6ed579_f5490d61","updated":"2016-01-16 16:34:12.000000000","message":"Done","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5d81bac32d5133d4ee3bb59a25b4656d80e378df","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":18,"id":"da6ed579_053c2e2e","line":1,"updated":"2016-01-17 05:38:05.000000000","message":"2016,... I think it got a bad rebase ;(","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bbb1238ccf11570e992d5222acc524df98feeaa7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba63e191_c82404b1","line":1,"in_reply_to":"da6ed579_053c2e2e","updated":"2016-01-18 20:36:52.000000000","message":"Done. Thx. I probably made my last changes on wrong Patch Set :/ (I was very tired when I was doing it)","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5d81bac32d5133d4ee3bb59a25b4656d80e378df","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def bits_to_bytes(value):"},{"line_number":56,"context_line":"    return int(value + 7) / 8"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def bytes_to_kilobytes(value):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da6ed579_c545b6b3","line":56,"updated":"2016-01-17 05:38:05.000000000","message":"Let\u0027s write a word about this, otherwise people might be confused.","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bbb1238ccf11570e992d5222acc524df98feeaa7","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def bits_to_bytes(value):"},{"line_number":56,"context_line":"    return int(value + 7) / 8"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def bytes_to_kilobytes(value):"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba63e191_488d747a","line":56,"in_reply_to":"da6ed579_c545b6b3","updated":"2016-01-18 20:36:52.000000000","message":"Done","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5d81bac32d5133d4ee3bb59a25b4656d80e378df","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":60,"context_line":"    if value:"},{"line_number":61,"context_line":"        return (value + 1023) / 1024"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"class TcCommand(ip_lib.IPDevice):"}],"source_content_type":"text/x-python","patch_set":18,"id":"da6ed579_65116aaf","line":61,"updated":"2016-01-17 05:38:05.000000000","message":"Let\u0027s write a word about this, otherwise people might be confused.","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bbb1238ccf11570e992d5222acc524df98feeaa7","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":60,"context_line":"    if value:"},{"line_number":61,"context_line":"        return (value + 1023) / 1024"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"class TcCommand(ip_lib.IPDevice):"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba63e191_08ee9c22","line":61,"in_reply_to":"da6ed579_65116aaf","updated":"2016-01-18 20:36:52.000000000","message":"Done","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":106,"context_line":"            r\"qdisc (\\w+) \\d+: \\w+ refcnt \\d rate (\\w+) burst (\\w+) \\w*\""},{"line_number":107,"context_line":"        )"},{"line_number":108,"context_line":"        bw_limit \u003d None"},{"line_number":109,"context_line":"        burst_limit \u003d None"},{"line_number":110,"context_line":"        m \u003d pattern.match(cmd_result)"},{"line_number":111,"context_line":"        if not m:"},{"line_number":112,"context_line":"            return None, None"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_ef80e348","line":109,"updated":"2016-01-19 02:09:08.000000000","message":"These initializations are unnecessary because they are assigned None in L116-117 even if the argument of bytes_to_kilobytes() is None.","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":106,"context_line":"            r\"qdisc (\\w+) \\d+: \\w+ refcnt \\d rate (\\w+) burst (\\w+) \\w*\""},{"line_number":107,"context_line":"        )"},{"line_number":108,"context_line":"        bw_limit \u003d None"},{"line_number":109,"context_line":"        burst_limit \u003d None"},{"line_number":110,"context_line":"        m \u003d pattern.match(cmd_result)"},{"line_number":111,"context_line":"        if not m:"},{"line_number":112,"context_line":"            return None, None"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_01587531","line":109,"in_reply_to":"ba63e191_ef80e348","updated":"2016-01-19 21:29:07.000000000","message":"True. Fixed","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            return int(value)"},{"line_number":46,"context_line":"    unit \u003d value[-1:]"},{"line_number":47,"context_line":"    val \u003d int(value[:-1])"},{"line_number":48,"context_line":"    if unit in UNITS.keys():"},{"line_number":49,"context_line":"        if input_in_bits:"},{"line_number":50,"context_line":"            return bits_to_bytes(val) * (1024 ** UNITS[unit])"},{"line_number":51,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_bca9d5e1","line":48,"updated":"2016-01-20 14:09:34.000000000","message":"we should have some code to raise an error if it\u0027s not in UNITS","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"1d0b0a29bf716466f5405b1edde382a71bacd4c4","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            return int(value)"},{"line_number":46,"context_line":"    unit \u003d value[-1:]"},{"line_number":47,"context_line":"    val \u003d int(value[:-1])"},{"line_number":48,"context_line":"    if unit in UNITS.keys():"},{"line_number":49,"context_line":"        if input_in_bits:"},{"line_number":50,"context_line":"            return bits_to_bytes(val) * (1024 ** UNITS[unit])"},{"line_number":51,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_01e3aba4","line":48,"in_reply_to":"9a68dd71_5ef3be0a","updated":"2016-01-21 10:03:15.000000000","message":"Ok. I added such exception to be raised here","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d8da492d49014573d85d61e6fe4762db9bb72df8","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            return int(value)"},{"line_number":46,"context_line":"    unit \u003d value[-1:]"},{"line_number":47,"context_line":"    val \u003d int(value[:-1])"},{"line_number":48,"context_line":"    if unit in UNITS.keys():"},{"line_number":49,"context_line":"        if input_in_bits:"},{"line_number":50,"context_line":"            return bits_to_bytes(val) * (1024 ** UNITS[unit])"},{"line_number":51,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_5ef3be0a","line":48,"in_reply_to":"9a68dd71_878d877d","updated":"2016-01-21 08:51:11.000000000","message":"Yes. Your helper function should not have error handling code outside of it. It should be independent and testable on its own.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":45,"context_line":"            return int(value)"},{"line_number":46,"context_line":"    unit \u003d value[-1:]"},{"line_number":47,"context_line":"    val \u003d int(value[:-1])"},{"line_number":48,"context_line":"    if unit in UNITS.keys():"},{"line_number":49,"context_line":"        if input_in_bits:"},{"line_number":50,"context_line":"            return bits_to_bytes(val) * (1024 ** UNITS[unit])"},{"line_number":51,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_878d877d","line":48,"in_reply_to":"9a68dd71_bca9d5e1","updated":"2016-01-20 22:44:50.000000000","message":"Now it will just return None which is handled later. Are you proposing to add some special exception type for that and raise it if it will happen?","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":61,"context_line":"    if value:"},{"line_number":62,"context_line":"        #NOTE(slaweq): round up that even 1 byte will give 1 kB as a result:"},{"line_number":63,"context_line":"        return int((value + 1023) / 1024)"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_dc5da9ed","line":61,"updated":"2016-01-20 14:09:34.000000000","message":"Any reason why we check value here?","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"1d0b0a29bf716466f5405b1edde382a71bacd4c4","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":61,"context_line":"    if value:"},{"line_number":62,"context_line":"        #NOTE(slaweq): round up that even 1 byte will give 1 kB as a result:"},{"line_number":63,"context_line":"        return int((value + 1023) / 1024)"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_1e5f8642","line":61,"in_reply_to":"9a68dd71_7ecfa2b0","updated":"2016-01-21 10:03:15.000000000","message":"It is now changed.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d8da492d49014573d85d61e6fe4762db9bb72df8","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":61,"context_line":"    if value:"},{"line_number":62,"context_line":"        #NOTE(slaweq): round up that even 1 byte will give 1 kB as a result:"},{"line_number":63,"context_line":"        return int((value + 1023) / 1024)"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_7ecfa2b0","line":61,"in_reply_to":"9a68dd71_87c10731","updated":"2016-01-21 08:51:11.000000000","message":"I believe functions should raise errors on bad input instead of silently swallowing it and returning None.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":61,"context_line":"    if value:"},{"line_number":62,"context_line":"        #NOTE(slaweq): round up that even 1 byte will give 1 kB as a result:"},{"line_number":63,"context_line":"        return int((value + 1023) / 1024)"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_87c10731","line":61,"in_reply_to":"9a68dd71_dc5da9ed","updated":"2016-01-20 22:44:50.000000000","message":"Because input is taken from other method and sometime could be None in some cases. Then without this checking it will raise TypeError exception.\nBut You are right, it will be better to check if value is not None before put it here as arguments. I changed it","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":98,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def _get_tbf_limits(self):"},{"line_number":101,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027show\u0027, \u0027dev\u0027, self.name]"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_7c3cbd2f","line":98,"updated":"2016-01-20 14:09:34.000000000","message":"what if kernel_hz \u003d\u003d 0?","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"1d0b0a29bf716466f5405b1edde382a71bacd4c4","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":98,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def _get_tbf_limits(self):"},{"line_number":101,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027show\u0027, \u0027dev\u0027, self.name]"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_4194438a","line":98,"in_reply_to":"9a68dd71_1e4c6641","updated":"2016-01-21 10:03:15.000000000","message":"I was thinking about that but I decided that if user set wrong value then better would be to show it him \"directly\" otherwise he could be not aware that something is working different way then he \"expect\" :) Second argument for me to use it in different way is that setting value is added in linuxbridge agent and this is IMHO more generic library. If someone will use it in different neutron module then it would be not good to use default value from linuxbridge config. What You think about that?","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d8da492d49014573d85d61e6fe4762db9bb72df8","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":98,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def _get_tbf_limits(self):"},{"line_number":101,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027show\u0027, \u0027dev\u0027, self.name]"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_1e4c6641","line":98,"in_reply_to":"9a68dd71_230cce93","updated":"2016-01-21 08:51:11.000000000","message":"Probably. You could also use the default 250 value and issue a warning.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"7f67095c5ba1e486ea13c25bc1de3c8de318bf9c","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":98,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def _get_tbf_limits(self):"},{"line_number":101,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027show\u0027, \u0027dev\u0027, self.name]"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_6dbb7673","line":98,"in_reply_to":"9a68dd71_4194438a","updated":"2016-01-21 10:33:37.000000000","message":"I don\u0027t mind either way.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":98,"context_line":"        return int(bw_limit / self.kernel_hz) * 1024"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    def _get_tbf_limits(self):"},{"line_number":101,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027show\u0027, \u0027dev\u0027, self.name]"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_230cce93","line":98,"in_reply_to":"9a68dd71_7c3cbd2f","updated":"2016-01-20 22:44:50.000000000","message":"hmm, good point. I added exception in such case in __init__ method. Will it be good?","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":21,"context_line":"LATENCY_UNIT \u003d \"ms\""},{"line_number":22,"context_line":"BW_LIMIT_UNIT \u003d \"kbps\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# Those are RATES (bits per second) and SIZE (bytes) unit names from tc manual:"},{"line_number":25,"context_line":"UNITS \u003d {"},{"line_number":26,"context_line":"    \"k\": 1,"},{"line_number":27,"context_line":"    \"m\": 2,"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_aa022c6d","line":24,"range":{"start_line":24,"start_character":78,"end_line":24,"end_character":79},"updated":"2016-02-22 13:29:50.000000000","message":"trailing :","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":21,"context_line":"LATENCY_UNIT \u003d \"ms\""},{"line_number":22,"context_line":"BW_LIMIT_UNIT \u003d \"kbps\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# Those are RATES (bits per second) and SIZE (bytes) unit names from tc manual:"},{"line_number":25,"context_line":"UNITS \u003d {"},{"line_number":26,"context_line":"    \"k\": 1,"},{"line_number":27,"context_line":"    \"m\": 2,"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_f6e52838","line":24,"range":{"start_line":24,"start_character":78,"end_line":24,"end_character":79},"in_reply_to":"bae84128_aa022c6d","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class InvalidHzValue(exceptions.NeutronException):"},{"line_number":34,"context_line":"    message \u003d _(\"Kernel HZ value %(value)s is not valid. This value must be\""},{"line_number":35,"context_line":"                \"greater than 0\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_2a00dca9","line":34,"updated":"2016-02-22 13:29:50.000000000","message":"you miss a space between \u0027be\u0027 and \u0027greater\u0027","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class InvalidHzValue(exceptions.NeutronException):"},{"line_number":34,"context_line":"    message \u003d _(\"Kernel HZ value %(value)s is not valid. This value must be\""},{"line_number":35,"context_line":"                \"greater than 0\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_36d2f05c","line":34,"in_reply_to":"bae84128_2a00dca9","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class InvalidHzValue(exceptions.NeutronException):"},{"line_number":34,"context_line":"    message \u003d _(\"Kernel HZ value %(value)s is not valid. This value must be\""},{"line_number":35,"context_line":"                \"greater than 0\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class InvalidUnit(exceptions.NeutronException):"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_2a173cee","line":35,"updated":"2016-02-22 13:29:50.000000000","message":"I guess we want a trailing dot after the last sentence.","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class InvalidHzValue(exceptions.NeutronException):"},{"line_number":34,"context_line":"    message \u003d _(\"Kernel HZ value %(value)s is not valid. This value must be\""},{"line_number":35,"context_line":"                \"greater than 0\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class InvalidUnit(exceptions.NeutronException):"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_56cdf4b5","line":35,"in_reply_to":"bae84128_2a173cee","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        else:"},{"line_number":56,"context_line":"            return value"},{"line_number":57,"context_line":"    unit \u003d value[-1:]"},{"line_number":58,"context_line":"    val \u003d int(value[:-1])"},{"line_number":59,"context_line":"    if unit not in UNITS.keys():"},{"line_number":60,"context_line":"        raise InvalidUnit(unit\u003dunit)"},{"line_number":61,"context_line":"    if input_in_bits:"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_6a930450","line":58,"updated":"2016-02-22 13:29:50.000000000","message":"nitty nitty nit: you could calculate val after line 60","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        else:"},{"line_number":56,"context_line":"            return value"},{"line_number":57,"context_line":"    unit \u003d value[-1:]"},{"line_number":58,"context_line":"    val \u003d int(value[:-1])"},{"line_number":59,"context_line":"    if unit not in UNITS.keys():"},{"line_number":60,"context_line":"        raise InvalidUnit(unit\u003dunit)"},{"line_number":61,"context_line":"    if input_in_bits:"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_363950a5","line":58,"in_reply_to":"bae84128_6a930450","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"def bits_to_bytes(value):"},{"line_number":68,"context_line":"    #NOTE(slaweq): round up that even 1 bit will give 1 byte as a result:"},{"line_number":69,"context_line":"    return int((value + 7) / 8)"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_aa106ca9","line":68,"range":{"start_line":68,"start_character":72,"end_line":68,"end_character":73},"updated":"2016-02-22 13:29:50.000000000","message":"ditto","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"def bits_to_bytes(value):"},{"line_number":68,"context_line":"    #NOTE(slaweq): round up that even 1 bit will give 1 byte as a result:"},{"line_number":69,"context_line":"    return int((value + 7) / 8)"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_5644d419","line":68,"range":{"start_line":68,"start_character":72,"end_line":68,"end_character":73},"in_reply_to":"bae84128_aa106ca9","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":73,"context_line":"    #NOTE(slaweq): round up that even 1 byte will give 1 kB as a result:"},{"line_number":74,"context_line":"    return int((value + 1023) / 1024)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_0a2878e1","line":73,"range":{"start_line":73,"start_character":71,"end_line":73,"end_character":72},"updated":"2016-02-22 13:29:50.000000000","message":"ditto","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"def bytes_to_kilobytes(value):"},{"line_number":73,"context_line":"    #NOTE(slaweq): round up that even 1 byte will give 1 kB as a result:"},{"line_number":74,"context_line":"    return int((value + 1023) / 1024)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_b64d6040","line":73,"range":{"start_line":73,"start_character":71,"end_line":73,"end_character":72},"in_reply_to":"bae84128_0a2878e1","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":101,"context_line":"        # Return_code\u003d2 is fine because it means"},{"line_number":102,"context_line":"        # \"RTNETLINK answers: No such file or directory\" what is fine when we"},{"line_number":103,"context_line":"        # are trying to delete qdisc:"},{"line_number":104,"context_line":"        return self._execute_tc_cmd(cmd, extra_ok_codes\u003d[2])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def get_burst_value(self, bw_limit, burst_limit):"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_ca84d0d5","line":103,"range":{"start_line":103,"start_character":36,"end_line":103,"end_character":37},"updated":"2016-02-22 13:29:50.000000000","message":"ditto","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        cmd \u003d [\u0027qdisc\u0027, \u0027del\u0027, \u0027dev\u0027, self.name, \u0027root\u0027]"},{"line_number":101,"context_line":"        # Return_code\u003d2 is fine because it means"},{"line_number":102,"context_line":"        # \"RTNETLINK answers: No such file or directory\" what is fine when we"},{"line_number":103,"context_line":"        # are trying to delete qdisc:"},{"line_number":104,"context_line":"        return self._execute_tc_cmd(cmd, extra_ok_codes\u003d[2])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def get_burst_value(self, bw_limit, burst_limit):"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_f65368e0","line":103,"range":{"start_line":103,"start_character":36,"end_line":103,"end_character":37},"in_reply_to":"bae84128_ca84d0d5","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":111,"context_line":"        #as bw_limit is given in kbps we need to convert it to bytes:"},{"line_number":112,"context_line":"        bw_limit_bytes \u003d convert_to_bytes(\u0027%skb\u0027 % bw_limit)"},{"line_number":113,"context_line":"        return int(bw_limit_bytes / self.kernel_hz)"},{"line_number":114,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_ca833003","line":111,"range":{"start_line":111,"start_character":68,"end_line":111,"end_character":69},"updated":"2016-02-22 13:29:50.000000000","message":"remove trailing :","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        return max(min_burst_value, burst_limit * 1024)"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    def _get_min_burst_value(self, bw_limit):"},{"line_number":111,"context_line":"        #as bw_limit is given in kbps we need to convert it to bytes:"},{"line_number":112,"context_line":"        bw_limit_bytes \u003d convert_to_bytes(\u0027%skb\u0027 % bw_limit)"},{"line_number":113,"context_line":"        return int(bw_limit_bytes / self.kernel_hz)"},{"line_number":114,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_366030a5","line":111,"range":{"start_line":111,"start_character":68,"end_line":111,"end_character":69},"in_reply_to":"bae84128_ca833003","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b66232334f50cdc88c5b6cc0ef2040d809743ed2","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"LATENCY_UNIT \u003d \"ms\""},{"line_number":22,"context_line":"BW_LIMIT_UNIT \u003d \"kbps\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# Those are RATES (bits per second) and SIZE (bytes) unit names from tc manual"},{"line_number":25,"context_line":"UNITS \u003d {"}],"source_content_type":"text/x-python","patch_set":29,"id":"9aed3d3a_bc40ef57","line":22,"updated":"2016-02-26 12:06:48.000000000","message":"As per IRC conversation, this must be kbit\nhttp://man7.org/linux/man-pages/man8/tc.8.html\n\nThanks for the IRC clarifications.","commit_id":"82f0fe011b9b9654f8d7d832eac735e19f2e7ac5"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a0b7f82030c79e3a7ceaf922d71cf024a70cafa8","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"LATENCY_UNIT \u003d \"ms\""},{"line_number":22,"context_line":"BW_LIMIT_UNIT \u003d \"kbps\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# Those are RATES (bits per second) and SIZE (bytes) unit names from tc manual"},{"line_number":25,"context_line":"UNITS \u003d {"}],"source_content_type":"text/x-python","patch_set":29,"id":"9aed3d3a_03b51ced","line":22,"in_reply_to":"9aed3d3a_bc40ef57","updated":"2016-02-26 21:30:12.000000000","message":"Yes, done","commit_id":"82f0fe011b9b9654f8d7d832eac735e19f2e7ac5"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import re"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_3a62dfad","line":17,"updated":"2016-02-28 10:14:31.000000000","message":"please add from neutron._i18n import _ so there will be no deprecation wanrings","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import re"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from neutron.agent.linux import ip_lib"},{"line_number":19,"context_line":"from neutron.common import exceptions"},{"line_number":20,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_1a50bb5c","line":17,"in_reply_to":"9aed3d3a_3a62dfad","updated":"2016-02-28 20:34:02.000000000","message":"Done","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":35,"context_line":"}"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class InvalidHzValue(exceptions.NeutronException):"},{"line_number":39,"context_line":"    message \u003d _(\"Kernel HZ value %(value)s is not valid. This value must be \""},{"line_number":40,"context_line":"                \"greater than 0.\")"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_ba6eef93","line":38,"range":{"start_line":38,"start_character":6,"end_line":38,"end_character":20},"updated":"2016-02-28 10:14:31.000000000","message":"Consider changing this to InvalidKernelHzValue","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":35,"context_line":"}"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class InvalidHzValue(exceptions.NeutronException):"},{"line_number":39,"context_line":"    message \u003d _(\"Kernel HZ value %(value)s is not valid. This value must be \""},{"line_number":40,"context_line":"                \"greater than 0.\")"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_3a649f47","line":38,"range":{"start_line":38,"start_character":6,"end_line":38,"end_character":20},"in_reply_to":"9aed3d3a_ba6eef93","updated":"2016-02-28 20:34:02.000000000","message":"Done","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LATENCY_UNIT \u003d \"ms\""},{"line_number":27,"context_line":"BW_LIMIT_UNIT \u003d \"kbit\"  # kilobits per second in tc\u0027s notation"},{"line_number":28,"context_line":"BURST_UNIT \u003d \"kbit\"  # bits in tc\u0027s notation"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"# Those are RATES (bits per second) and SIZE (bytes) unit names from tc manual"},{"line_number":31,"context_line":"UNITS \u003d {"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_55dafa4c","line":28,"range":{"start_line":28,"start_character":23,"end_line":28,"end_character":27},"updated":"2016-02-29 12:07:54.000000000","message":"you mean \u0027kilobits\u0027?","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LATENCY_UNIT \u003d \"ms\""},{"line_number":27,"context_line":"BW_LIMIT_UNIT \u003d \"kbit\"  # kilobits per second in tc\u0027s notation"},{"line_number":28,"context_line":"BURST_UNIT \u003d \"kbit\"  # bits in tc\u0027s notation"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"# Those are RATES (bits per second) and SIZE (bytes) unit names from tc manual"},{"line_number":31,"context_line":"UNITS \u003d {"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_ac15e1e5","line":28,"range":{"start_line":28,"start_character":23,"end_line":28,"end_character":27},"in_reply_to":"9aed3d3a_55dafa4c","updated":"2016-02-29 21:40:19.000000000","message":"yes, my mistake","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            IEC_BASE)"},{"line_number":115,"context_line":"        return max(min_burst_value, burst_limit)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    def _get_min_burst_value_in_bits(self, bw_limit):"},{"line_number":118,"context_line":"        #as bw_limit is given in kbit we need to convert it to bits"},{"line_number":119,"context_line":"        bw_limit_bits \u003d bw_limit * 1024"},{"line_number":120,"context_line":"        return int(bw_limit_bits / self.kernel_hz)"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_b5338661","line":117,"updated":"2016-02-29 12:07:54.000000000","message":"What\u0027s the point here to convert it to bits, if then we convert it back into kbits in line 112?","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            IEC_BASE)"},{"line_number":115,"context_line":"        return max(min_burst_value, burst_limit)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    def _get_min_burst_value_in_bits(self, bw_limit):"},{"line_number":118,"context_line":"        #as bw_limit is given in kbit we need to convert it to bits"},{"line_number":119,"context_line":"        bw_limit_bits \u003d bw_limit * 1024"},{"line_number":120,"context_line":"        return int(bw_limit_bits / self.kernel_hz)"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_f764d2b9","line":117,"in_reply_to":"9aed3d3a_b5338661","updated":"2016-02-29 21:40:19.000000000","message":"You are right here. I changed it to calculate it directly in kilobits","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        # we need to calculate it as 1000bit \u003d 1kbit:"},{"line_number":138,"context_line":"        bw_limit \u003d convert_to_bits(m.group(2), SI_BASE)"},{"line_number":139,"context_line":"        #NOTE(slaweq): because tc is giving burst limit in IEC units"},{"line_number":140,"context_line":"        # we need to calculate it as 1024bit \u003d 1kbit:"},{"line_number":141,"context_line":"        burst_limit \u003d convert_to_bits(m.group(3), IEC_BASE)"},{"line_number":142,"context_line":"        if bw_limit:"},{"line_number":143,"context_line":"            #NOTE(slaweq): because tc is giving bw limit in SI units"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_151cf2bf","line":140,"updated":"2016-02-29 12:07:54.000000000","message":"(No action required) That\u0027s freaking mess... Bad boy, tc, bad boy! :(","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        # we need to calculate it as 1000bit \u003d 1kbit:"},{"line_number":138,"context_line":"        bw_limit \u003d convert_to_bits(m.group(2), SI_BASE)"},{"line_number":139,"context_line":"        #NOTE(slaweq): because tc is giving burst limit in IEC units"},{"line_number":140,"context_line":"        # we need to calculate it as 1024bit \u003d 1kbit:"},{"line_number":141,"context_line":"        burst_limit \u003d convert_to_bits(m.group(3), IEC_BASE)"},{"line_number":142,"context_line":"        if bw_limit:"},{"line_number":143,"context_line":"            #NOTE(slaweq): because tc is giving bw limit in SI units"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_97746668","line":140,"in_reply_to":"9aed3d3a_151cf2bf","updated":"2016-02-29 21:40:19.000000000","message":"yep :/","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        if bw_limit:"},{"line_number":143,"context_line":"            #NOTE(slaweq): because tc is giving bw limit in SI units"},{"line_number":144,"context_line":"            # we need to calculate it as 1000bit \u003d 1kbit:"},{"line_number":145,"context_line":"            bw_limit \u003d bits_to_kilobits(bw_limit, SI_BASE)"},{"line_number":146,"context_line":"        if burst_limit:"},{"line_number":147,"context_line":"            #NOTE(slaweq): because tc is giving burst limit in IEC units"},{"line_number":148,"context_line":"            # we need to calculate it as 1024bit \u003d 1kbit:"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_55ce7a2e","line":145,"updated":"2016-02-29 12:07:54.000000000","message":"Again, seems like we convert back and forth here?..","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        if bw_limit:"},{"line_number":143,"context_line":"            #NOTE(slaweq): because tc is giving bw limit in SI units"},{"line_number":144,"context_line":"            # we need to calculate it as 1000bit \u003d 1kbit:"},{"line_number":145,"context_line":"            bw_limit \u003d bits_to_kilobits(bw_limit, SI_BASE)"},{"line_number":146,"context_line":"        if burst_limit:"},{"line_number":147,"context_line":"            #NOTE(slaweq): because tc is giving burst limit in IEC units"},{"line_number":148,"context_line":"            # we need to calculate it as 1024bit \u003d 1kbit:"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_9298f4c1","line":145,"in_reply_to":"9aed3d3a_55ce7a2e","updated":"2016-02-29 21:40:19.000000000","message":"Not exactly here. I\u0027m  first convert any value which I will get from tc output to bits because it can be kilo,mega bits or bytes. And after that I\u0027m converting this value to kilobits because I want to return \"from class\" always value in same units as it is used in \"set\" method.\nBut You\u0027re right that it can be done in one method so I changed it to convert_to_kilobits(value, base) and use only this here.\nI hope it\u0027s better now","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        if burst_limit:"},{"line_number":147,"context_line":"            #NOTE(slaweq): because tc is giving burst limit in IEC units"},{"line_number":148,"context_line":"            # we need to calculate it as 1024bit \u003d 1kbit:"},{"line_number":149,"context_line":"            burst_limit \u003d bits_to_kilobits(burst_limit, IEC_BASE)"},{"line_number":150,"context_line":"        return bw_limit, burst_limit"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _replace_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_95d482bd","line":149,"updated":"2016-02-29 12:07:54.000000000","message":"ditto","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        if burst_limit:"},{"line_number":147,"context_line":"            #NOTE(slaweq): because tc is giving burst limit in IEC units"},{"line_number":148,"context_line":"            # we need to calculate it as 1024bit \u003d 1kbit:"},{"line_number":149,"context_line":"            burst_limit \u003d bits_to_kilobits(burst_limit, IEC_BASE)"},{"line_number":150,"context_line":"        return bw_limit, burst_limit"},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def _replace_tbf_qdisc(self, bw_limit, burst_limit, latency_value):"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_52f14c00","line":149,"in_reply_to":"9aed3d3a_95d482bd","updated":"2016-02-29 21:40:19.000000000","message":"here also I changed it in same way as above","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"}],"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":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":98,"context_line":"                self._report_state)"},{"line_number":99,"context_line":"            heartbeat.start(interval\u003dreport_interval)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        # The initialization is complete; we can start receiving messages"},{"line_number":102,"context_line":"        self.connection.consume_in_threads()"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        self.daemon_loop()"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_55c31aed","line":101,"updated":"2016-02-29 12:07:54.000000000","message":"That change would probably belong to a separate patch since it fixes an ordering issue that is not qos specific but affects the whole extension mechanism.","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":98,"context_line":"                self._report_state)"},{"line_number":99,"context_line":"            heartbeat.start(interval\u003dreport_interval)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        # The initialization is complete; we can start receiving messages"},{"line_number":102,"context_line":"        self.connection.consume_in_threads()"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        self.daemon_loop()"}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_b2a89878","line":101,"in_reply_to":"9aed3d3a_55c31aed","updated":"2016-02-29 21:40:19.000000000","message":"I thought that but on friday I was talking with ajo about that and he told me that I can put it here and add info about closing second bug in commit message. As it was easier for me and make my fullstack test for QoS working I decided to do it this way.\nSo should I move it to separate patch?","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"}],"neutron/plugins/ml2/drivers/linuxbridge/agent/common/config.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":78,"context_line":"                       \"For LinuxBridge, this requires ebtables. For OVS, it \""},{"line_number":79,"context_line":"                       \"requires a version that supports matching ARP \""},{"line_number":80,"context_line":"                       \"headers.\")),"},{"line_number":81,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":82,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used for \""},{"line_number":83,"context_line":"                      \"calculate minimum value of burst in tc tbf qdisc when \""},{"line_number":84,"context_line":"                      \"qos extension is enabled and used for port\")),"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_4eea5edc","line":81,"updated":"2015-10-23 13:15:17.000000000","message":"+ for separate opts list, but first, please clarify whether we can extract the values from kernel and avoid the need for configuration.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"7958c81d2c02a635373b10e634aca721a19613ee","unresolved":false,"context_lines":[{"line_number":78,"context_line":"                       \"For LinuxBridge, this requires ebtables. For OVS, it \""},{"line_number":79,"context_line":"                       \"requires a version that supports matching ARP \""},{"line_number":80,"context_line":"                       \"headers.\")),"},{"line_number":81,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":82,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used for \""},{"line_number":83,"context_line":"                      \"calculate minimum value of burst in tc tbf qdisc when \""},{"line_number":84,"context_line":"                      \"qos extension is enabled and used for port\")),"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_ba75defa","line":81,"updated":"2015-10-21 07:21:19.000000000","message":"I feel better to have a separate opts called \"qos_opts\" for qos related configurations.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":78,"context_line":"                       \"For LinuxBridge, this requires ebtables. For OVS, it \""},{"line_number":79,"context_line":"                       \"requires a version that supports matching ARP \""},{"line_number":80,"context_line":"                       \"headers.\")),"},{"line_number":81,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":82,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used for \""},{"line_number":83,"context_line":"                      \"calculate minimum value of burst in tc tbf qdisc when \""},{"line_number":84,"context_line":"                      \"qos extension is enabled and used for port\")),"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_d868518a","line":81,"in_reply_to":"3a29b11f_4eea5edc","updated":"2015-11-01 10:12:15.000000000","message":"I moved it to new section now. I didn\u0027t find any possibility to get this value from kernel except checking kernel\u0027s config file","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                       \"requires a version that supports matching ARP \""},{"line_number":80,"context_line":"                       \"headers.\")),"},{"line_number":81,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":82,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used for \""},{"line_number":83,"context_line":"                      \"calculate minimum value of burst in tc tbf qdisc when \""},{"line_number":84,"context_line":"                      \"qos extension is enabled and used for port\")),"},{"line_number":85,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_6ee5da06","line":82,"updated":"2015-10-23 13:15:17.000000000","message":"Used for -\u003e Used to","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                       \"requires a version that supports matching ARP \""},{"line_number":80,"context_line":"                       \"headers.\")),"},{"line_number":81,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":82,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used for \""},{"line_number":83,"context_line":"                      \"calculate minimum value of burst in tc tbf qdisc when \""},{"line_number":84,"context_line":"                      \"qos extension is enabled and used for port\")),"},{"line_number":85,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_785d7deb","line":82,"in_reply_to":"3a29b11f_6ee5da06","updated":"2015-11-01 10:12:15.000000000","message":"Done","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                       \"headers.\")),"},{"line_number":81,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":82,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used for \""},{"line_number":83,"context_line":"                      \"calculate minimum value of burst in tc tbf qdisc when \""},{"line_number":84,"context_line":"                      \"qos extension is enabled and used for port\")),"},{"line_number":85,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":86,"context_line":"               help\u003d_(\"Value of latency set in tc tbf qdisc when qos \""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_0ef0e6c7","line":83,"updated":"2015-10-23 13:15:17.000000000","message":"tc? tbf? qdisc? I am not sure it\u0027s a user friendly description of the option.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":80,"context_line":"                       \"headers.\")),"},{"line_number":81,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":82,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used for \""},{"line_number":83,"context_line":"                      \"calculate minimum value of burst in tc tbf qdisc when \""},{"line_number":84,"context_line":"                      \"qos extension is enabled and used for port\")),"},{"line_number":85,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":86,"context_line":"               help\u003d_(\"Value of latency set in tc tbf qdisc when qos \""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_9862d9ac","line":83,"in_reply_to":"3a29b11f_0ef0e6c7","updated":"2015-11-01 10:12:15.000000000","message":"I tried to change it littlebit. Maybe it will be better now","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":19,"context_line":"DEFAULT_BRIDGE_MAPPINGS \u003d []"},{"line_number":20,"context_line":"DEFAULT_INTERFACE_MAPPINGS \u003d []"},{"line_number":21,"context_line":"DEFAULT_VXLAN_GROUP \u003d \u0027224.0.0.1\u0027"},{"line_number":22,"context_line":"DEFAULT_KERNEL_HZ_VALUE \u003d 250"},{"line_number":23,"context_line":"DEFAULT_TC_TBF_LATENCY \u003d 50  # [ms]"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"vxlan_opts \u003d ["}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_2210cb58","line":22,"updated":"2015-11-01 12:33:05.000000000","message":"Do you want to mention about the unit over here.","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":19,"context_line":"DEFAULT_BRIDGE_MAPPINGS \u003d []"},{"line_number":20,"context_line":"DEFAULT_INTERFACE_MAPPINGS \u003d []"},{"line_number":21,"context_line":"DEFAULT_VXLAN_GROUP \u003d \u0027224.0.0.1\u0027"},{"line_number":22,"context_line":"DEFAULT_KERNEL_HZ_VALUE \u003d 250"},{"line_number":23,"context_line":"DEFAULT_TC_TBF_LATENCY \u003d 50  # [ms]"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"vxlan_opts \u003d ["}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_7be4d30c","line":22,"in_reply_to":"1a26ad4f_2210cb58","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"974417fe17453e4cbc2b5597157df73e7398396d","unresolved":false,"context_lines":[{"line_number":83,"context_line":"qos_options \u003d ["},{"line_number":84,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":85,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used to \""},{"line_number":86,"context_line":"                      \"calculate minimum value of burst in bw limit rules for \""},{"line_number":87,"context_line":"                      \"port when qos extension is enabled and used for port\")),"},{"line_number":88,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":89,"context_line":"               help\u003d_(\"Value of latency set for configuration of bw limit \""}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_52dd836d","line":86,"updated":"2015-11-02 12:26:44.000000000","message":"don\u0027t use abbreviations like \u0027bw\u0027. Instead, use full words like \u0027bandwidth limit\u0027.","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":83,"context_line":"qos_options \u003d ["},{"line_number":84,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":85,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used to \""},{"line_number":86,"context_line":"                      \"calculate minimum value of burst in bw limit rules for \""},{"line_number":87,"context_line":"                      \"port when qos extension is enabled and used for port\")),"},{"line_number":88,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":89,"context_line":"               help\u003d_(\"Value of latency set for configuration of bw limit \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_3b9c0b69","line":86,"in_reply_to":"1a26ad4f_52dd836d","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"974417fe17453e4cbc2b5597157df73e7398396d","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":85,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used to \""},{"line_number":86,"context_line":"                      \"calculate minimum value of burst in bw limit rules for \""},{"line_number":87,"context_line":"                      \"port when qos extension is enabled and used for port\")),"},{"line_number":88,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":89,"context_line":"               help\u003d_(\"Value of latency set for configuration of bw limit \""},{"line_number":90,"context_line":"                      \"when tc is used for bw limitations  when qos extension \""}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_f2e5af37","line":87,"updated":"2015-11-02 12:26:44.000000000","message":"nit: better use QoS, not \u0027qos\u0027 in user visible messages.","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":84,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":85,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used to \""},{"line_number":86,"context_line":"                      \"calculate minimum value of burst in bw limit rules for \""},{"line_number":87,"context_line":"                      \"port when qos extension is enabled and used for port\")),"},{"line_number":88,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":89,"context_line":"               help\u003d_(\"Value of latency set for configuration of bw limit \""},{"line_number":90,"context_line":"                      \"when tc is used for bw limitations  when qos extension \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_db87ff10","line":87,"in_reply_to":"1a26ad4f_f2e5af37","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"qos_options \u003d ["},{"line_number":84,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":85,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used to \""},{"line_number":86,"context_line":"                      \"calculate minimum value of burst in bandwidth limit \""},{"line_number":87,"context_line":"                      \"rules for port when QoS extension is enabled and \""},{"line_number":88,"context_line":"                      \"used for port\")),"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_76fef66c","line":85,"updated":"2015-11-04 12:32:45.000000000","message":"From user point of view, this message does not give me any clue on how I should determine it for my system. Can you make a more specific suggestion for the value?\n\nWithout proper recommendation, it may actually be better to leave it unavailable for configuration.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"qos_options \u003d ["},{"line_number":84,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":85,"context_line":"               help\u003d_(\"HZ value set in kernel on running host. Used to \""},{"line_number":86,"context_line":"                      \"calculate minimum value of burst in bandwidth limit \""},{"line_number":87,"context_line":"                      \"rules for port when QoS extension is enabled and \""},{"line_number":88,"context_line":"                      \"used for port\")),"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_07ec018e","line":85,"in_reply_to":"fa80f949_76fef66c","updated":"2015-11-04 22:46:11.000000000","message":"I added in description of this option more explanation where it can be found. I hope it is enough for You :)","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                      \"rules for port when QoS extension is enabled and \""},{"line_number":88,"context_line":"                      \"used for port\")),"},{"line_number":89,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":90,"context_line":"               help\u003d_(\"Value of latency set for configuration of bandwidth \""},{"line_number":91,"context_line":"                      \"limit when tc is used for bw limitations  when QoS \""},{"line_number":92,"context_line":"                      \"extension is enabled and used for port\"))"},{"line_number":93,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_b660de36","line":90,"updated":"2015-11-04 12:32:45.000000000","message":"same","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                      \"rules for port when QoS extension is enabled and \""},{"line_number":88,"context_line":"                      \"used for port\")),"},{"line_number":89,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":90,"context_line":"               help\u003d_(\"Value of latency set for configuration of bandwidth \""},{"line_number":91,"context_line":"                      \"limit when tc is used for bw limitations  when QoS \""},{"line_number":92,"context_line":"                      \"extension is enabled and used for port\"))"},{"line_number":93,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_274b4589","line":90,"in_reply_to":"fa80f949_b660de36","updated":"2015-11-04 22:46:11.000000000","message":"Here I also added littlebit more explanation.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                      \"used for port\")),"},{"line_number":89,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":90,"context_line":"               help\u003d_(\"Value of latency set for configuration of bandwidth \""},{"line_number":91,"context_line":"                      \"limit when tc is used for bw limitations  when QoS \""},{"line_number":92,"context_line":"                      \"extension is enabled and used for port\"))"},{"line_number":93,"context_line":"]"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_b62bfeea","line":91,"updated":"2015-11-04 12:32:45.000000000","message":"two spaces after \u0027limitations\u0027","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                      \"used for port\")),"},{"line_number":89,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":90,"context_line":"               help\u003d_(\"Value of latency set for configuration of bandwidth \""},{"line_number":91,"context_line":"                      \"limit when tc is used for bw limitations  when QoS \""},{"line_number":92,"context_line":"                      \"extension is enabled and used for port\"))"},{"line_number":93,"context_line":"]"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_2796e5f0","line":91,"in_reply_to":"fa80f949_b62bfeea","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9515,"name":"Matthew Kassawara","email":"mkassawara@gmail.com","username":"ionosphere80"},"change_message_id":"ec2e2ad8670328c28cbf9ac062b2a72b847f3ea4","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                      \"rules for port when QoS extension is enabled and \""},{"line_number":88,"context_line":"                      \"used for port. This value should be read from kernel\u0027s \""},{"line_number":89,"context_line":"                      \"config file. For example on Ubuntu systems this \""},{"line_number":90,"context_line":"                      \"file should be in /boot directory\")),"},{"line_number":91,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":92,"context_line":"               help\u003d_(\"Value of latency set for configuration of bandwidth \""},{"line_number":93,"context_line":"                      \"limit when tc is used for bw limitations when QoS \""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa80f949_38e1239b","line":90,"updated":"2015-11-04 23:13:33.000000000","message":"Avoid mentioning specific distributions.\n\nSuggestion:\n\nValue of host kernel tick rate (hz) for calculating minimum burst value in bandwidth limit rules for a port with QoS. See kernel configuration file for HZ value and tc-tbf manual for more information.","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"89fa9db3700df256e45bc3035c84b34d8540af21","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                      \"rules for port when QoS extension is enabled and \""},{"line_number":88,"context_line":"                      \"used for port. This value should be read from kernel\u0027s \""},{"line_number":89,"context_line":"                      \"config file. For example on Ubuntu systems this \""},{"line_number":90,"context_line":"                      \"file should be in /boot directory\")),"},{"line_number":91,"context_line":"    cfg.IntOpt(\u0027tbf_latency\u0027, default\u003dDEFAULT_TC_TBF_LATENCY,"},{"line_number":92,"context_line":"               help\u003d_(\"Value of latency set for configuration of bandwidth \""},{"line_number":93,"context_line":"                      \"limit when tc is used for bw limitations when QoS \""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa80f949_0f5b8888","line":90,"in_reply_to":"fa80f949_38e1239b","updated":"2015-11-05 20:39:35.000000000","message":"Done","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":9515,"name":"Matthew Kassawara","email":"mkassawara@gmail.com","username":"ionosphere80"},"change_message_id":"ec2e2ad8670328c28cbf9ac062b2a72b847f3ea4","unresolved":false,"context_lines":[{"line_number":94,"context_line":"                      \"extension is enabled and used for port. \""},{"line_number":95,"context_line":"                      \"This is length of queue for packets which are waiting \""},{"line_number":96,"context_line":"                      \"to be send via interface. For more details please \""},{"line_number":97,"context_line":"                      \"check tc-tbf manual\"))"},{"line_number":98,"context_line":"]"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa80f949_bb5aed28","line":97,"updated":"2015-11-04 23:13:33.000000000","message":"Suggestion:\n\nValue of latency (ms) for calculating size of queue for a port with QoS. See tc-tbf manual for more information.","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"89fa9db3700df256e45bc3035c84b34d8540af21","unresolved":false,"context_lines":[{"line_number":94,"context_line":"                      \"extension is enabled and used for port. \""},{"line_number":95,"context_line":"                      \"This is length of queue for packets which are waiting \""},{"line_number":96,"context_line":"                      \"to be send via interface. For more details please \""},{"line_number":97,"context_line":"                      \"check tc-tbf manual\"))"},{"line_number":98,"context_line":"]"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa80f949_efd724bd","line":97,"in_reply_to":"fa80f949_bb5aed28","updated":"2015-11-05 20:39:35.000000000","message":"Done","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c552a0e0a9bf41fdb4e3a89d189a9e7d98085372","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"qos_options \u003d ["},{"line_number":95,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":96,"context_line":"               help\u003d_(\"Value of host kernel tick rate (hz) for calculating \""},{"line_number":97,"context_line":"                      \"minimum burst value in bandwidth limit rules for \""},{"line_number":98,"context_line":"                      \"a port with QoS. See kernel configuration file for \""},{"line_number":99,"context_line":"                      \"HZ value and tc-tbf manual for more information.\")),"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_35b2454d","line":96,"updated":"2016-01-14 10:55:06.000000000","message":"Ah, great, I was going to ask for a setting but I see you got it there already :D awesome :)","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"276874236a25adc03aaa9741a2e35bb4cc7b7b7d","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"qos_options \u003d ["},{"line_number":95,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":96,"context_line":"               help\u003d_(\"Value of host kernel tick rate (hz) for calculating \""},{"line_number":97,"context_line":"                      \"minimum burst value in bandwidth limit rules for \""},{"line_number":98,"context_line":"                      \"a port with QoS. See kernel configuration file for \""},{"line_number":99,"context_line":"                      \"HZ value and tc-tbf manual for more information.\")),"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_831fbfb6","line":96,"in_reply_to":"da6ed579_35b2454d","updated":"2016-01-16 16:34:12.000000000","message":"I spent quite long time to check if it is possible somehow to check it automatically. But looks that it\u0027s not possible so I added such option here.","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":64,"context_line":"]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"qos_options \u003d ["},{"line_number":67,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":68,"context_line":"               help\u003d_(\"Value of host kernel tick rate (hz) for calculating \""},{"line_number":69,"context_line":"                      \"minimum burst value in bandwidth limit rules for \""},{"line_number":70,"context_line":"                      \"a port with QoS. See kernel configuration file for \""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_baf54fcc","line":67,"updated":"2016-02-28 10:14:31.000000000","message":"please add these variables to the commit message. That will help people documenting the feature","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":64,"context_line":"]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"qos_options \u003d ["},{"line_number":67,"context_line":"    cfg.IntOpt(\u0027kernel_hz\u0027, default\u003dDEFAULT_KERNEL_HZ_VALUE,"},{"line_number":68,"context_line":"               help\u003d_(\"Value of host kernel tick rate (hz) for calculating \""},{"line_number":69,"context_line":"                      \"minimum burst value in bandwidth limit rules for \""},{"line_number":70,"context_line":"                      \"a port with QoS. See kernel configuration file for \""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_bd270411","line":67,"in_reply_to":"9aed3d3a_baf54fcc","updated":"2016-02-28 20:34:02.000000000","message":"Done","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"}],"neutron/plugins/ml2/drivers/linuxbridge/agent/extension_drivers/extension_drivers/qos_driver.py":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"223c4f867aae3656397fb9c1cda595d17f91cf2d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 Openstack Foundation"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a2ca52d_deb2cb4b","line":1,"updated":"2015-10-17 13:51:03.000000000","message":"Plz mention your company name instead of Openstack Foundation.","commit_id":"55e9d5425a0aca4e1e8d3b09443f0fa2b29129f5"}],"neutron/plugins/ml2/drivers/linuxbridge/agent/extension_drivers/qos_driver.py":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"c6821a33c127b914ca4f65efdedd7b537024840b","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        super(QosLinuxbridgeAgentDriver, self).__init__()"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"},{"line_number":35,"context_line":"        LOG.info(\"QOS LinuxBridge Extension initialized\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def create_bandwidth_limit(self, port, rule):"},{"line_number":38,"context_line":"        LOG.debug(\"Create bandwidth limit in LinuxBridge QOS agent called; \""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_bf48d45c","line":35,"updated":"2015-10-19 12:43:57.000000000","message":"How about rephrasing as \"LinuxBridge\u0027s QoS Extension initialized\"?","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"6b2a1c5b8abd5c41ef22dd624436ae782e438b64","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        super(QosLinuxbridgeAgentDriver, self).__init__()"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"},{"line_number":35,"context_line":"        LOG.info(\"QOS LinuxBridge Extension initialized\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def create_bandwidth_limit(self, port, rule):"},{"line_number":38,"context_line":"        LOG.debug(\"Create bandwidth limit in LinuxBridge QOS agent called; \""}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_1c069dce","line":35,"in_reply_to":"3a29b11f_bf48d45c","updated":"2015-10-19 20:03:08.000000000","message":"Done","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"c6821a33c127b914ca4f65efdedd7b537024840b","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        LOG.info(\"QOS LinuxBridge Extension initialized\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def create_bandwidth_limit(self, port, rule):"},{"line_number":38,"context_line":"        LOG.debug(\"Create bandwidth limit in LinuxBridge QOS agent called; \""},{"line_number":39,"context_line":"                 \"Port \u003d %(port)s; rule \u003d %(rule)s\","},{"line_number":40,"context_line":"                 {\u0027port\u0027: port, \u0027rule\u0027: rule})"},{"line_number":41,"context_line":"        self.update_bandwidth_limit(port, rule)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_3f5da4e9","line":38,"updated":"2015-10-19 12:43:57.000000000","message":"If you want to trace this function then probably we can use import \n - from oslo_log import helpers as log_helpers\n\nand use \"@log_helpers.log_method_call\" decorator.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"6b2a1c5b8abd5c41ef22dd624436ae782e438b64","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        LOG.info(\"QOS LinuxBridge Extension initialized\")"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def create_bandwidth_limit(self, port, rule):"},{"line_number":38,"context_line":"        LOG.debug(\"Create bandwidth limit in LinuxBridge QOS agent called; \""},{"line_number":39,"context_line":"                 \"Port \u003d %(port)s; rule \u003d %(rule)s\","},{"line_number":40,"context_line":"                 {\u0027port\u0027: port, \u0027rule\u0027: rule})"},{"line_number":41,"context_line":"        self.update_bandwidth_limit(port, rule)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_bc9f694f","line":38,"in_reply_to":"3a29b11f_3f5da4e9","updated":"2015-10-19 20:03:08.000000000","message":"Done","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"c6821a33c127b914ca4f65efdedd7b537024840b","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        self.update_bandwidth_limit(port, rule)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def update_bandwidth_limit(self, port, rule):"},{"line_number":44,"context_line":"        LOG.debug(\"Update bandwidth limit in LinuxBridge QOS agent called; \""},{"line_number":45,"context_line":"                 \"Port \u003d %(port)s; rule \u003d %(rule)s\","},{"line_number":46,"context_line":"                 {\u0027port\u0027: port, \u0027rule\u0027: rule})"},{"line_number":47,"context_line":"        self._delete_bandwidth_limit(port)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_9f6cf89d","line":44,"updated":"2015-10-19 12:43:57.000000000","message":"ditto","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"6b2a1c5b8abd5c41ef22dd624436ae782e438b64","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        self.update_bandwidth_limit(port, rule)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def update_bandwidth_limit(self, port, rule):"},{"line_number":44,"context_line":"        LOG.debug(\"Update bandwidth limit in LinuxBridge QOS agent called; \""},{"line_number":45,"context_line":"                 \"Port \u003d %(port)s; rule \u003d %(rule)s\","},{"line_number":46,"context_line":"                 {\u0027port\u0027: port, \u0027rule\u0027: rule})"},{"line_number":47,"context_line":"        self._delete_bandwidth_limit(port)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_5cae5586","line":44,"in_reply_to":"3a29b11f_9f6cf89d","updated":"2015-10-19 20:03:08.000000000","message":"Done","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"c6821a33c127b914ca4f65efdedd7b537024840b","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        self._create_bandwidth_limit(port, rule)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def delete_bandwidth_limit(self, port):"},{"line_number":52,"context_line":"        LOG.debug(\"Delete bandwidth limit in LinuxBridge QOS agent called; \""},{"line_number":53,"context_line":"                 \"Port \u003d %s\", port)"},{"line_number":54,"context_line":"        self._delete_bandwidth_limit(port)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_5f0500c0","line":51,"updated":"2015-10-19 12:43:57.000000000","message":"ditto","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"6b2a1c5b8abd5c41ef22dd624436ae782e438b64","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        self._create_bandwidth_limit(port, rule)"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    def delete_bandwidth_limit(self, port):"},{"line_number":52,"context_line":"        LOG.debug(\"Delete bandwidth limit in LinuxBridge QOS agent called; \""},{"line_number":53,"context_line":"                 \"Port \u003d %s\", port)"},{"line_number":54,"context_line":"        self._delete_bandwidth_limit(port)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_1cb77dd9","line":51,"in_reply_to":"3a29b11f_5f0500c0","updated":"2015-10-19 20:03:08.000000000","message":"Done","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"c6821a33c127b914ca4f65efdedd7b537024840b","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    def delete_bandwidth_limit(self, port):"},{"line_number":52,"context_line":"        LOG.debug(\"Delete bandwidth limit in LinuxBridge QOS agent called; \""},{"line_number":53,"context_line":"                 \"Port \u003d %s\", port)"},{"line_number":54,"context_line":"        self._delete_bandwidth_limit(port)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def _create_bandwidth_limit(self, port, rule):"},{"line_number":57,"context_line":"        tc_wrapper \u003d tc_lib.TcCommand(port[\u0027device\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_bf00d4ab","line":54,"updated":"2015-10-19 12:43:57.000000000","message":"IMO, it\u0027s better to have the functionality of _delete_bandwidth_limit over here.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"6b2a1c5b8abd5c41ef22dd624436ae782e438b64","unresolved":false,"context_lines":[{"line_number":51,"context_line":"    def delete_bandwidth_limit(self, port):"},{"line_number":52,"context_line":"        LOG.debug(\"Delete bandwidth limit in LinuxBridge QOS agent called; \""},{"line_number":53,"context_line":"                 \"Port \u003d %s\", port)"},{"line_number":54,"context_line":"        self._delete_bandwidth_limit(port)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def _create_bandwidth_limit(self, port, rule):"},{"line_number":57,"context_line":"        tc_wrapper \u003d tc_lib.TcCommand(port[\u0027device\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_fcb3a1e7","line":54,"in_reply_to":"3a29b11f_bf00d4ab","updated":"2015-10-19 20:03:08.000000000","message":"Done","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    )"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def __init__(self):"},{"line_number":34,"context_line":"        super(QosLinuxbridgeAgentDriver, self).__init__()"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def initialize(self):"},{"line_number":37,"context_line":"        LOG.info(_(\"LinuxBridge\u0027s QoS Extension initialized\"))"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_eed80a55","line":34,"updated":"2015-10-23 13:15:17.000000000","message":"This __init__ is redundant. Remove.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    )"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def __init__(self):"},{"line_number":34,"context_line":"        super(QosLinuxbridgeAgentDriver, self).__init__()"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def initialize(self):"},{"line_number":37,"context_line":"        LOG.info(_(\"LinuxBridge\u0027s QoS Extension initialized\"))"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_3825c55b","line":34,"in_reply_to":"3a29b11f_eed80a55","updated":"2015-11-01 10:12:15.000000000","message":"Done","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        super(QosLinuxbridgeAgentDriver, self).__init__()"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def initialize(self):"},{"line_number":37,"context_line":"        LOG.info(_(\"LinuxBridge\u0027s QoS Extension initialized\"))"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @log_helpers.log_method_call"},{"line_number":40,"context_line":"    def create_bandwidth_limit(self, port, rule):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_8edb964e","line":37,"updated":"2015-10-23 13:15:17.000000000","message":"Info log messages must use _LI function, not _.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        super(QosLinuxbridgeAgentDriver, self).__init__()"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def initialize(self):"},{"line_number":37,"context_line":"        LOG.info(_(\"LinuxBridge\u0027s QoS Extension initialized\"))"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    @log_helpers.log_method_call"},{"line_number":40,"context_line":"    def create_bandwidth_limit(self, port, rule):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_f81f4d07","line":37,"in_reply_to":"3a29b11f_8edb964e","updated":"2015-11-01 10:12:15.000000000","message":"Done","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"6b6c1deb01b1f88ae18c65584d672d85f1a2cea9","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        self.update_bandwidth_limit(port, rule)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    @log_helpers.log_method_call"},{"line_number":44,"context_line":"    def update_bandwidth_limit(self, port, rule):"},{"line_number":45,"context_line":"        self.delete_bandwidth_limit(port)"},{"line_number":46,"context_line":"        self._create_bandwidth_limit(port, rule)"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_aede923b","line":44,"updated":"2015-10-23 13:15:17.000000000","message":"Can\u0027t we update it atomically?","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        self.update_bandwidth_limit(port, rule)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    @log_helpers.log_method_call"},{"line_number":44,"context_line":"    def update_bandwidth_limit(self, port, rule):"},{"line_number":45,"context_line":"        self.delete_bandwidth_limit(port)"},{"line_number":46,"context_line":"        self._create_bandwidth_limit(port, rule)"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_181d690f","line":44,"in_reply_to":"3a29b11f_aede923b","updated":"2015-11-01 10:12:15.000000000","message":"Done","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    )"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"},{"line_number":35,"context_line":"        LOG.info(_LI(\"LinuxBridge\u0027s QoS Extension initialized\"))"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    @log_helpers.log_method_call"},{"line_number":38,"context_line":"    def create_bandwidth_limit(self, port, rule):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_f6774600","line":35,"updated":"2015-11-04 12:32:45.000000000","message":"why is \u0027E\u0027 in \u0027extension\u0027 upper-case?","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    )"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"},{"line_number":35,"context_line":"        LOG.info(_LI(\"LinuxBridge\u0027s QoS Extension initialized\"))"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    @log_helpers.log_method_call"},{"line_number":38,"context_line":"    def create_bandwidth_limit(self, port, rule):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_07488186","line":35,"in_reply_to":"fa80f949_f6774600","updated":"2015-11-04 22:46:11.000000000","message":"by mistake. Fixed","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9515,"name":"Matthew Kassawara","email":"mkassawara@gmail.com","username":"ionosphere80"},"change_message_id":"ec2e2ad8670328c28cbf9ac062b2a72b847f3ea4","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    )"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"},{"line_number":35,"context_line":"        LOG.info(_LI(\"LinuxBridge\u0027s QoS extension initialized\"))"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    @log_helpers.log_method_call"},{"line_number":38,"context_line":"    def create_bandwidth_limit(self, port, rule):"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa80f949_1b91b999","line":35,"updated":"2015-11-04 23:13:33.000000000","message":"Initializing Linux bridge QoS extension","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"89fa9db3700df256e45bc3035c84b34d8540af21","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    )"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"},{"line_number":35,"context_line":"        LOG.info(_LI(\"LinuxBridge\u0027s QoS extension initialized\"))"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    @log_helpers.log_method_call"},{"line_number":38,"context_line":"    def create_bandwidth_limit(self, port, rule):"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa80f949_afa6fc50","line":35,"in_reply_to":"fa80f949_1b91b999","updated":"2015-11-05 20:39:35.000000000","message":"Done","commit_id":"e1b48a15f7b44131557fec754b595746053b265e"},{"author":{"_account_id":11307,"name":"Andreas Scheuring","email":"andreas.scheuring@de.ibm.com","username":"uniqueName"},"change_message_id":"b7aebf237cfaf2fa7f3d8db51a7ed9db9e29222c","unresolved":false,"context_lines":[{"line_number":28,"context_line":"class QosLinuxbridgeAgentDriver(qos.QosAgentDriver):"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    SUPPORTED_RULES \u003d ("},{"line_number":31,"context_line":"        mech_linuxbridge.LinuxbridgeMechanismDriver.supported_qos_rule_types"},{"line_number":32,"context_line":"    )"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a8ffd7b_3316d9f1","line":31,"updated":"2015-11-26 16:36:38.000000000","message":"Why is supported_qos_rule_types defined and taken from the mechdriver? It\u0027s not used in the mech_driver at all. Why not defining it here in the OoSLinuxbridgeAgentDriver?","commit_id":"55f3a7402236e30f0bb6e9131c5933af6ea506d6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"e0aed18801a0b5b68a26cd31d438e9958177349f","unresolved":false,"context_lines":[{"line_number":28,"context_line":"class QosLinuxbridgeAgentDriver(qos.QosAgentDriver):"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    SUPPORTED_RULES \u003d ("},{"line_number":31,"context_line":"        mech_linuxbridge.LinuxbridgeMechanismDriver.supported_qos_rule_types"},{"line_number":32,"context_line":"    )"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a8ffd7b_f367f14a","line":31,"in_reply_to":"9a8ffd7b_3316d9f1","updated":"2015-11-26 16:41:14.000000000","message":"it\u0027s used by ml2 driver to determine the list of supported rule types: https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/managers.py#L318","commit_id":"55f3a7402236e30f0bb6e9131c5933af6ea506d6"},{"author":{"_account_id":11307,"name":"Andreas Scheuring","email":"andreas.scheuring@de.ibm.com","username":"uniqueName"},"change_message_id":"53c13b2d20fe769a8d9e9f25c69ba4bbad8632cf","unresolved":false,"context_lines":[{"line_number":28,"context_line":"class QosLinuxbridgeAgentDriver(qos.QosAgentDriver):"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    SUPPORTED_RULES \u003d ("},{"line_number":31,"context_line":"        mech_linuxbridge.LinuxbridgeMechanismDriver.supported_qos_rule_types"},{"line_number":32,"context_line":"    )"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def initialize(self):"}],"source_content_type":"text/x-python","patch_set":15,"id":"9a8ffd7b_ce70f2a6","line":31,"in_reply_to":"9a8ffd7b_f367f14a","updated":"2015-11-27 07:28:42.000000000","message":"Thanks - makes sense! Didn\u0027t had a look at the manager class....","commit_id":"55f3a7402236e30f0bb6e9131c5933af6ea506d6"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"8cb329ec1c2be730c7f6e02fc774bd4fae35fd57","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_31f5dd82","line":1,"updated":"2016-01-08 04:24:48.000000000","message":"2016:)","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"501579c3a93496f584b359fc324c2347573f3f80","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_8dad7a8a","line":1,"in_reply_to":"fa69d971_31f5dd82","updated":"2016-01-08 08:27:21.000000000","message":"Done","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5d81bac32d5133d4ee3bb59a25b4656d80e378df","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":18,"id":"da6ed579_a548c2cd","line":1,"range":{"start_line":1,"start_character":12,"end_line":1,"end_character":16},"updated":"2016-01-17 05:38:05.000000000","message":"bad rebase","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bbb1238ccf11570e992d5222acc524df98feeaa7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba63e191_08d53c42","line":1,"range":{"start_line":1,"start_character":12,"end_line":1,"end_character":16},"in_reply_to":"da6ed579_a548c2cd","updated":"2016-01-18 20:36:52.000000000","message":"Done. Thx","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.agent.l2.extensions import qos"},{"line_number":20,"context_line":"from neutron.agent.linux import tc_lib"},{"line_number":21,"context_line":"from neutron.i18n import _LI"},{"line_number":22,"context_line":"from neutron.plugins.ml2.drivers.linuxbridge.mech_driver import ("},{"line_number":23,"context_line":"    mech_linuxbridge)"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_5a2d2345","line":21,"updated":"2016-02-28 10:14:31.000000000","message":"please use neutron._i18n import _LI","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from neutron.agent.l2.extensions import qos"},{"line_number":20,"context_line":"from neutron.agent.linux import tc_lib"},{"line_number":21,"context_line":"from neutron.i18n import _LI"},{"line_number":22,"context_line":"from neutron.plugins.ml2.drivers.linuxbridge.mech_driver import ("},{"line_number":23,"context_line":"    mech_linuxbridge)"},{"line_number":24,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_5ac88322","line":21,"in_reply_to":"9aed3d3a_5a2d2345","updated":"2016-02-28 20:34:02.000000000","message":"Done","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"}],"neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b6f14090b770f6b1e1e61974d4c06df2f23d0706","unresolved":false,"context_lines":[{"line_number":757,"context_line":"        # notifications there is no guarantee the notifications are"},{"line_number":758,"context_line":"        # processed in the same order as the relevant API requests."},{"line_number":759,"context_line":"        self.agent.updated_devices.add(tap_name)"},{"line_number":760,"context_line":"        LOG.debug(\"port_update RPC received for port: %s\", port_id)"},{"line_number":761,"context_line":""},{"line_number":762,"context_line":"    def fdb_add(self, context, fdb_entries):"},{"line_number":763,"context_line":"        LOG.debug(\"fdb_add received\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_9852d912","line":760,"updated":"2015-10-19 09:51:51.000000000","message":"I think you need to handle network_update too, and subscribe to such events as we did in the ovs agent:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py#L417","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"6b2a1c5b8abd5c41ef22dd624436ae782e438b64","unresolved":false,"context_lines":[{"line_number":757,"context_line":"        # notifications there is no guarantee the notifications are"},{"line_number":758,"context_line":"        # processed in the same order as the relevant API requests."},{"line_number":759,"context_line":"        self.agent.updated_devices.add(tap_name)"},{"line_number":760,"context_line":"        LOG.debug(\"port_update RPC received for port: %s\", port_id)"},{"line_number":761,"context_line":""},{"line_number":762,"context_line":"    def fdb_add(self, context, fdb_entries):"},{"line_number":763,"context_line":"        LOG.debug(\"fdb_add received\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_fc7081de","line":760,"in_reply_to":"3a29b11f_9852d912","updated":"2015-10-19 20:03:08.000000000","message":"Done (I hope :))","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ed2749af6bd019b931fc9318383ec33bdfdd453b","unresolved":false,"context_lines":[{"line_number":757,"context_line":"        # notifications there is no guarantee the notifications are"},{"line_number":758,"context_line":"        # processed in the same order as the relevant API requests."},{"line_number":759,"context_line":"        self.agent.updated_devices.add(tap_name)"},{"line_number":760,"context_line":"        LOG.debug(\"port_update RPC received for port: %s\", port_id)"},{"line_number":761,"context_line":""},{"line_number":762,"context_line":"    def fdb_add(self, context, fdb_entries):"},{"line_number":763,"context_line":"        LOG.debug(\"fdb_add received\")"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a29b11f_981df975","line":760,"in_reply_to":"3a29b11f_9852d912","updated":"2015-10-19 10:15:25.000000000","message":"thx, I will check and add it.","commit_id":"cba05d1aca1ac36763fc11bbd644785055d24e30"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"7958c81d2c02a635373b10e634aca721a19613ee","unresolved":false,"context_lines":[{"line_number":759,"context_line":"        self.agent.updated_devices.add(tap_name)"},{"line_number":760,"context_line":"        LOG.debug(\"port_update RPC received for port: %s\", port_id)"},{"line_number":761,"context_line":""},{"line_number":762,"context_line":"    def network_update(self, context, **kwargs):"},{"line_number":763,"context_line":"        network_id \u003d kwargs[\u0027network\u0027][\u0027id\u0027]"},{"line_number":764,"context_line":"        for port_id in self.network_ports[network_id]:"},{"line_number":765,"context_line":"            tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_7ac98625","line":762,"updated":"2015-10-21 07:21:19.000000000","message":"No need to handle \"port_delete\"?","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":759,"context_line":"        self.agent.updated_devices.add(tap_name)"},{"line_number":760,"context_line":"        LOG.debug(\"port_update RPC received for port: %s\", port_id)"},{"line_number":761,"context_line":""},{"line_number":762,"context_line":"    def network_update(self, context, **kwargs):"},{"line_number":763,"context_line":"        network_id \u003d kwargs[\u0027network\u0027][\u0027id\u0027]"},{"line_number":764,"context_line":"        for port_id in self.network_ports[network_id]:"},{"line_number":765,"context_line":"            tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a26ad4f_82543fff","line":762,"in_reply_to":"3a29b11f_7ac98625","updated":"2015-11-01 10:12:15.000000000","message":"Now I added also handling of port delete notification.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":764,"context_line":"        tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"},{"line_number":765,"context_line":"        self.agent.deleted_devices.add(tap_name)"},{"line_number":766,"context_line":"        self.agent.updated_devices.discard(tap_name)"},{"line_number":767,"context_line":"        LOG.debug(\"port_delete RPC received for port: %s\", port_id)"},{"line_number":768,"context_line":""},{"line_number":769,"context_line":"    def network_update(self, context, **kwargs):"},{"line_number":770,"context_line":"        network_id \u003d kwargs[\u0027network\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_e27973c9","line":767,"updated":"2015-11-01 12:33:05.000000000","message":"Better to add the debug in the beginning of the function.","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":764,"context_line":"        tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"},{"line_number":765,"context_line":"        self.agent.deleted_devices.add(tap_name)"},{"line_number":766,"context_line":"        self.agent.updated_devices.discard(tap_name)"},{"line_number":767,"context_line":"        LOG.debug(\"port_delete RPC received for port: %s\", port_id)"},{"line_number":768,"context_line":""},{"line_number":769,"context_line":"    def network_update(self, context, **kwargs):"},{"line_number":770,"context_line":"        network_id \u003d kwargs[\u0027network\u0027][\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_1bad8788","line":767,"in_reply_to":"1a26ad4f_e27973c9","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":769,"context_line":"    def network_update(self, context, **kwargs):"},{"line_number":770,"context_line":"        network_id \u003d kwargs[\u0027network\u0027][\u0027id\u0027]"},{"line_number":771,"context_line":"        for port_id in self.network_ports[network_id]:"},{"line_number":772,"context_line":"            tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"},{"line_number":773,"context_line":"            if tap_name not in self.agent.deleted_devices:"},{"line_number":774,"context_line":"                self.agent.updated_devices.add(tap_name)"},{"line_number":775,"context_line":"        LOG.debug(\"network_update message processed for network \""}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_4215c746","line":772,"updated":"2015-11-01 12:33:05.000000000","message":"How about calling \" port_update\" function from here ?","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":769,"context_line":"    def network_update(self, context, **kwargs):"},{"line_number":770,"context_line":"        network_id \u003d kwargs[\u0027network\u0027][\u0027id\u0027]"},{"line_number":771,"context_line":"        for port_id in self.network_ports[network_id]:"},{"line_number":772,"context_line":"            tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"},{"line_number":773,"context_line":"            if tap_name not in self.agent.deleted_devices:"},{"line_number":774,"context_line":"                self.agent.updated_devices.add(tap_name)"},{"line_number":775,"context_line":"        LOG.debug(\"network_update message processed for network \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_5bd1cffa","line":772,"in_reply_to":"1a26ad4f_4215c746","updated":"2015-11-03 21:07:23.000000000","message":"I don\u0027t know. I was trying to do it as similar to ovs_neutron_agent as it it possible (to be consistent with it). In fact calling port_update method here will even print in debug wrong messages (port_update RPC received).","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":772,"context_line":"            tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"},{"line_number":773,"context_line":"            if tap_name not in self.agent.deleted_devices:"},{"line_number":774,"context_line":"                self.agent.updated_devices.add(tap_name)"},{"line_number":775,"context_line":"        LOG.debug(\"network_update message processed for network \""},{"line_number":776,"context_line":"                  \"%(network_id)s, with ports: %(ports)s\","},{"line_number":777,"context_line":"                  {\u0027network_id\u0027: network_id,"},{"line_number":778,"context_line":"                   \u0027ports\u0027: self.network_ports[network_id]})"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_568732b5","line":775,"updated":"2015-11-04 12:32:45.000000000","message":"In port_delete, you log first, then process; here, it\u0027s vice versa. Any specific reason for that?","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":772,"context_line":"            tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"},{"line_number":773,"context_line":"            if tap_name not in self.agent.deleted_devices:"},{"line_number":774,"context_line":"                self.agent.updated_devices.add(tap_name)"},{"line_number":775,"context_line":"        LOG.debug(\"network_update message processed for network \""},{"line_number":776,"context_line":"                  \"%(network_id)s, with ports: %(ports)s\","},{"line_number":777,"context_line":"                  {\u0027network_id\u0027: network_id,"},{"line_number":778,"context_line":"                   \u0027ports\u0027: self.network_ports[network_id]})"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_872b1194","line":775,"in_reply_to":"fa80f949_568732b5","updated":"2015-11-04 22:46:11.000000000","message":"No. Fixed","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":891,"context_line":"            \u0027topic\u0027: constants.L2_AGENT_TOPIC,"},{"line_number":892,"context_line":"            \u0027configurations\u0027: configurations,"},{"line_number":893,"context_line":"            \u0027agent_type\u0027: constants.AGENT_TYPE_LINUXBRIDGE,"},{"line_number":894,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":895,"context_line":""},{"line_number":896,"context_line":"        # stores received port_updates and port_deletes for"},{"line_number":897,"context_line":"        # processing by the main loop"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_9181244d","line":894,"updated":"2015-11-04 12:32:45.000000000","message":"Since we add l2 extensions support in this patch, can we also add \u0027extensions\u0027 list to agent_state, as we did for ovs agent?","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":891,"context_line":"            \u0027topic\u0027: constants.L2_AGENT_TOPIC,"},{"line_number":892,"context_line":"            \u0027configurations\u0027: configurations,"},{"line_number":893,"context_line":"            \u0027agent_type\u0027: constants.AGENT_TYPE_LINUXBRIDGE,"},{"line_number":894,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":895,"context_line":""},{"line_number":896,"context_line":"        # stores received port_updates and port_deletes for"},{"line_number":897,"context_line":"        # processing by the main loop"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_8a5eb810","line":894,"in_reply_to":"fa80f949_9181244d","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":945,"context_line":"        # Handle updates from service"},{"line_number":946,"context_line":"        self.endpoints \u003d [LinuxBridgeRpcCallbacks(self.context, self,"},{"line_number":947,"context_line":"                                                  self.sg_agent)]"},{"line_number":948,"context_line":"        # Define the listening consumers for the agent"},{"line_number":949,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"},{"line_number":950,"context_line":"                     [topics.NETWORK, topics.DELETE],"},{"line_number":951,"context_line":"                     [topics.SECURITY_GROUP, topics.UPDATE]]"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_7120409c","line":948,"updated":"2015-11-04 12:32:45.000000000","message":"Shouldn\u0027t you also subscribe to port_delete/network_update events here?","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":945,"context_line":"        # Handle updates from service"},{"line_number":946,"context_line":"        self.endpoints \u003d [LinuxBridgeRpcCallbacks(self.context, self,"},{"line_number":947,"context_line":"                                                  self.sg_agent)]"},{"line_number":948,"context_line":"        # Define the listening consumers for the agent"},{"line_number":949,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"},{"line_number":950,"context_line":"                     [topics.NETWORK, topics.DELETE],"},{"line_number":951,"context_line":"                     [topics.SECURITY_GROUP, topics.UPDATE]]"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_8a8c7880","line":948,"in_reply_to":"fa80f949_7120409c","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f91e93571f448778a0fc4822551015de029008d3","unresolved":false,"context_lines":[{"line_number":1123,"context_line":"        return (device_info.get(\u0027added\u0027)"},{"line_number":1124,"context_line":"                or device_info.get(\u0027updated\u0027)"},{"line_number":1125,"context_line":"                or device_info.get(\u0027removed\u0027)"},{"line_number":1126,"context_line":"                or self.updated_devices"},{"line_number":1127,"context_line":"                or self.deleted_devices)"},{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"    def daemon_loop(self):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_b1d0e854","line":1126,"updated":"2015-11-04 12:32:45.000000000","message":"Instead of this, I think we should update scan_devices() to consider deleted_devices. Also, I believe updated_devices are already handled there (otherwise port_update would not work now).","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":1123,"context_line":"        return (device_info.get(\u0027added\u0027)"},{"line_number":1124,"context_line":"                or device_info.get(\u0027updated\u0027)"},{"line_number":1125,"context_line":"                or device_info.get(\u0027removed\u0027)"},{"line_number":1126,"context_line":"                or self.updated_devices"},{"line_number":1127,"context_line":"                or self.deleted_devices)"},{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"    def daemon_loop(self):"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_8ac0f82b","line":1126,"in_reply_to":"fa80f949_b1d0e854","updated":"2015-11-04 22:46:11.000000000","message":"Ok, I changed scan_devices() method to add deleted_devices to list of removed ports","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c552a0e0a9bf41fdb4e3a89d189a9e7d98085372","unresolved":false,"context_lines":[{"line_number":685,"context_line":"        LOG.debug(\"Delete %s\", bridge_name)"},{"line_number":686,"context_line":"        self.agent.br_mgr.delete_bridge(bridge_name)"},{"line_number":687,"context_line":""},{"line_number":688,"context_line":"    def port_update(self, context, **kwargs):"},{"line_number":689,"context_line":"        port_id \u003d kwargs[\u0027port\u0027][\u0027id\u0027]"},{"line_number":690,"context_line":"        tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"},{"line_number":691,"context_line":"        # Put the tap name in the updated_devices set."}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_1572a149","line":688,"updated":"2016-01-14 10:55:06.000000000","message":"note: here\u0027s where port_update is consumed. missing port_delete.","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"276874236a25adc03aaa9741a2e35bb4cc7b7b7d","unresolved":false,"context_lines":[{"line_number":685,"context_line":"        LOG.debug(\"Delete %s\", bridge_name)"},{"line_number":686,"context_line":"        self.agent.br_mgr.delete_bridge(bridge_name)"},{"line_number":687,"context_line":""},{"line_number":688,"context_line":"    def port_update(self, context, **kwargs):"},{"line_number":689,"context_line":"        port_id \u003d kwargs[\u0027port\u0027][\u0027id\u0027]"},{"line_number":690,"context_line":"        tap_name \u003d self.agent.br_mgr.get_tap_device_name(port_id)"},{"line_number":691,"context_line":"        # Put the tap name in the updated_devices set."}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_834d7fc6","line":688,"in_reply_to":"da6ed579_1572a149","updated":"2016-01-16 16:34:12.000000000","message":"Same as below. I think that it is not neccessary to handle port_delete in special way here. All tc config for such interface is then just deleted with interface.","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"c552a0e0a9bf41fdb4e3a89d189a9e7d98085372","unresolved":false,"context_lines":[{"line_number":896,"context_line":"                                                  self.sg_agent)]"},{"line_number":897,"context_line":"        # Define the listening consumers for the agent"},{"line_number":898,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"},{"line_number":899,"context_line":"                     [topics.PORT, topics.DELETE],"},{"line_number":900,"context_line":"                     [topics.NETWORK, topics.DELETE],"},{"line_number":901,"context_line":"                     [topics.NETWORK, topics.UPDATE],"},{"line_number":902,"context_line":"                     [topics.SECURITY_GROUP, topics.UPDATE]]"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_b5a395b1","line":899,"range":{"start_line":899,"start_character":35,"end_line":899,"end_character":41},"updated":"2016-01-14 10:55:06.000000000","message":"where are you consuming port_delete exactly? \n\ndo you need to take care of that for linux bridge? (tc rules cleanup before the port is deleted, or is that automatically cleaned up by the kernel?)","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"276874236a25adc03aaa9741a2e35bb4cc7b7b7d","unresolved":false,"context_lines":[{"line_number":896,"context_line":"                                                  self.sg_agent)]"},{"line_number":897,"context_line":"        # Define the listening consumers for the agent"},{"line_number":898,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"},{"line_number":899,"context_line":"                     [topics.PORT, topics.DELETE],"},{"line_number":900,"context_line":"                     [topics.NETWORK, topics.DELETE],"},{"line_number":901,"context_line":"                     [topics.NETWORK, topics.UPDATE],"},{"line_number":902,"context_line":"                     [topics.SECURITY_GROUP, topics.UPDATE]]"}],"source_content_type":"text/x-python","patch_set":17,"id":"da6ed579_63640b49","line":899,"range":{"start_line":899,"start_character":35,"end_line":899,"end_character":41},"in_reply_to":"da6ed579_b5a395b1","updated":"2016-01-16 16:34:12.000000000","message":"qdiscs, classes and othere things configured for device in tc are destroyed when interface is deleted so IMHO it is not necessary to do anything when port is deleted","commit_id":"8accd15e34edc98931a9ab7d051f20f182a01646"},{"author":{"_account_id":11307,"name":"Andreas Scheuring","email":"andreas.scheuring@de.ibm.com","username":"uniqueName"},"change_message_id":"6e9b6e0b72b58767e0cdd42b54f53bfba8f00301","unresolved":false,"context_lines":[{"line_number":840,"context_line":"            configurations[\u0027tunneling_ip\u0027] \u003d self.br_mgr.local_ip"},{"line_number":841,"context_line":"            configurations[\u0027tunnel_types\u0027] \u003d [p_const.TYPE_VXLAN]"},{"line_number":842,"context_line":"            configurations[\u0027l2_population\u0027] \u003d cfg.CONF.VXLAN.l2_population"},{"line_number":843,"context_line":"        configurations[\u0027extensions\u0027] \u003d self.ext_manager.names()"},{"line_number":844,"context_line":"        self.agent_state \u003d {"},{"line_number":845,"context_line":"            \u0027binary\u0027: \u0027neutron-linuxbridge-agent\u0027,"},{"line_number":846,"context_line":"            \u0027host\u0027: cfg.CONF.host,"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_bead2d8a","line":843,"range":{"start_line":843,"start_character":22,"end_line":843,"end_character":24},"updated":"2016-01-19 10:16:13.000000000","message":"duplicate? see line 837","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":840,"context_line":"            configurations[\u0027tunneling_ip\u0027] \u003d self.br_mgr.local_ip"},{"line_number":841,"context_line":"            configurations[\u0027tunnel_types\u0027] \u003d [p_const.TYPE_VXLAN]"},{"line_number":842,"context_line":"            configurations[\u0027l2_population\u0027] \u003d cfg.CONF.VXLAN.l2_population"},{"line_number":843,"context_line":"        configurations[\u0027extensions\u0027] \u003d self.ext_manager.names()"},{"line_number":844,"context_line":"        self.agent_state \u003d {"},{"line_number":845,"context_line":"            \u0027binary\u0027: \u0027neutron-linuxbridge-agent\u0027,"},{"line_number":846,"context_line":"            \u0027host\u0027: cfg.CONF.host,"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_21801946","line":843,"range":{"start_line":843,"start_character":22,"end_line":843,"end_character":24},"in_reply_to":"ba63e191_bead2d8a","updated":"2016-01-19 21:29:07.000000000","message":"True. Probably my mistake when I was rebasing this patchset. Thx.","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11307,"name":"Andreas Scheuring","email":"andreas.scheuring@de.ibm.com","username":"uniqueName"},"change_message_id":"5feee224a2cfd4b09d3afcbffc86ca64490b342e","unresolved":false,"context_lines":[{"line_number":907,"context_line":"                                                  self.sg_agent)]"},{"line_number":908,"context_line":"        # Define the listening consumers for the agent"},{"line_number":909,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"},{"line_number":910,"context_line":"                     [topics.PORT, topics.DELETE],"},{"line_number":911,"context_line":"                     [topics.NETWORK, topics.DELETE],"},{"line_number":912,"context_line":"                     [topics.NETWORK, topics.UPDATE],"},{"line_number":913,"context_line":"                     [topics.SECURITY_GROUP, topics.UPDATE]]"}],"source_content_type":"text/x-python","patch_set":20,"id":"ba63e191_fdee04b3","line":910,"range":{"start_line":910,"start_character":35,"end_line":910,"end_character":41},"updated":"2016-01-20 10:28:09.000000000","message":"won\u0027t you need some rpc callback method that is being issued on this event?","commit_id":"50f4baf5588422b1ee11f6c62b0a9e62bcbbea67"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"47957393d028d8dcb49319553d3192d886e6d16e","unresolved":false,"context_lines":[{"line_number":907,"context_line":"                                                  self.sg_agent)]"},{"line_number":908,"context_line":"        # Define the listening consumers for the agent"},{"line_number":909,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"},{"line_number":910,"context_line":"                     [topics.PORT, topics.DELETE],"},{"line_number":911,"context_line":"                     [topics.NETWORK, topics.DELETE],"},{"line_number":912,"context_line":"                     [topics.NETWORK, topics.UPDATE],"},{"line_number":913,"context_line":"                     [topics.SECURITY_GROUP, topics.UPDATE]]"}],"source_content_type":"text/x-python","patch_set":20,"id":"ba63e191_211d560f","line":910,"range":{"start_line":910,"start_character":35,"end_line":910,"end_character":41},"in_reply_to":"ba63e191_fdee04b3","updated":"2016-01-20 11:41:46.000000000","message":"No, this event should be deleted as we agreed all in review for patch https://review.openstack.org/#/c/250542/ (PS1 or PS2). I think that it was not removed from here by my mistake later when I was doing rebase of this patch.\n\nNow I removed it","commit_id":"50f4baf5588422b1ee11f6c62b0a9e62bcbbea67"}],"neutron/tests/fullstack/resources/config.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        super(ML2ConfigFixture, self).__init__("},{"line_number":115,"context_line":"            env_desc, host_desc, temp_dir, base_filename\u003d\u0027ml2_conf.ini\u0027)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        mechanism_drivers \u003d \u0027openvswitch,linuxbridge\u0027"},{"line_number":118,"context_line":"        if self.env_desc.l2_pop:"},{"line_number":119,"context_line":"            mechanism_drivers +\u003d \u0027,l2population\u0027"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_f5798ec9","line":117,"updated":"2016-02-29 12:07:54.000000000","message":"Why do we switch back to enabling linuxbridge for all ml2 tests instead of for just those that invoke lb agent?","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        super(ML2ConfigFixture, self).__init__("},{"line_number":115,"context_line":"            env_desc, host_desc, temp_dir, base_filename\u003d\u0027ml2_conf.ini\u0027)"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        mechanism_drivers \u003d \u0027openvswitch,linuxbridge\u0027"},{"line_number":118,"context_line":"        if self.env_desc.l2_pop:"},{"line_number":119,"context_line":"            mechanism_drivers +\u003d \u0027,l2population\u0027"},{"line_number":120,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_520aec79","line":117,"in_reply_to":"9aed3d3a_f5798ec9","updated":"2016-02-29 21:40:19.000000000","message":"that change made by me before was only because without QoS for linuxbridge agent fullstack test was failing. Now as I have QoS in Linuxbridge I restore old behaviour of this test because thanks that I don\u0027t have to put hosts config to ML2 config fixture.\nShould I back to this configuration of mechanism_drivers based on host_desc?","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"}],"neutron/tests/functional/agent/linux/test_tc_lib.py":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"8cb329ec1c2be730c7f6e02fc774bd4fae35fd57","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_316f1d94","line":1,"updated":"2016-01-08 04:24:48.000000000","message":"Move to 2016;)","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"501579c3a93496f584b359fc324c2347573f3f80","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_8dc49a40","line":1,"in_reply_to":"fa69d971_316f1d94","updated":"2016-01-08 08:27:21.000000000","message":"Done","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5d81bac32d5133d4ee3bb59a25b4656d80e378df","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":18,"id":"da6ed579_250b727f","line":1,"updated":"2016-01-17 05:38:05.000000000","message":"ditto","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bbb1238ccf11570e992d5222acc524df98feeaa7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba63e191_c8ce44b4","line":1,"in_reply_to":"da6ed579_250b727f","updated":"2016-01-18 20:36:52.000000000","message":"Done","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    def test_bandwidth_limit(self):"},{"line_number":65,"context_line":"        self.tc.set_bw_limit(BW_LIMIT, BURST, LATENCY)"},{"line_number":66,"context_line":"        bw_limit, burst \u003d self.tc.get_bw_limits()"},{"line_number":67,"context_line":"        self.assertEqual(bw_limit, BW_LIMIT)"},{"line_number":68,"context_line":"        self.assertEqual(burst, BURST)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        new_bw_limit \u003d BW_LIMIT + 500"},{"line_number":71,"context_line":"        new_burst \u003d BURST + 50"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_0f8f7724","line":68,"range":{"start_line":67,"start_character":8,"end_line":68,"end_character":38},"updated":"2016-01-19 02:09:08.000000000","message":"It\u0027s better to use the pattern \"self.assertEqual(expected, observed)\".","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    def test_bandwidth_limit(self):"},{"line_number":65,"context_line":"        self.tc.set_bw_limit(BW_LIMIT, BURST, LATENCY)"},{"line_number":66,"context_line":"        bw_limit, burst \u003d self.tc.get_bw_limits()"},{"line_number":67,"context_line":"        self.assertEqual(bw_limit, BW_LIMIT)"},{"line_number":68,"context_line":"        self.assertEqual(burst, BURST)"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        new_bw_limit \u003d BW_LIMIT + 500"},{"line_number":71,"context_line":"        new_burst \u003d BURST + 50"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_019ab563","line":68,"range":{"start_line":67,"start_character":8,"end_line":68,"end_character":38},"in_reply_to":"ba63e191_0f8f7724","updated":"2016-01-19 21:29:07.000000000","message":"Done","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        self.tc.update_bw_limit(new_bw_limit, new_burst, LATENCY)"},{"line_number":74,"context_line":"        bw_limit, burst \u003d self.tc.get_bw_limits()"},{"line_number":75,"context_line":"        self.assertEqual(bw_limit, new_bw_limit)"},{"line_number":76,"context_line":"        self.assertEqual(burst, new_burst)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        self.tc.delete_bw_limit()"},{"line_number":79,"context_line":"        bw_limit, burst \u003d self.tc.get_bw_limits()"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_ef9d435a","line":76,"range":{"start_line":75,"start_character":8,"end_line":76,"end_character":42},"updated":"2016-01-19 02:09:08.000000000","message":"ditto","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        self.tc.update_bw_limit(new_bw_limit, new_burst, LATENCY)"},{"line_number":74,"context_line":"        bw_limit, burst \u003d self.tc.get_bw_limits()"},{"line_number":75,"context_line":"        self.assertEqual(bw_limit, new_bw_limit)"},{"line_number":76,"context_line":"        self.assertEqual(burst, new_burst)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        self.tc.delete_bw_limit()"},{"line_number":79,"context_line":"        bw_limit, burst \u003d self.tc.get_bw_limits()"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_c1a49da7","line":76,"range":{"start_line":75,"start_character":8,"end_line":76,"end_character":42},"in_reply_to":"ba63e191_ef9d435a","updated":"2016-01-19 21:29:07.000000000","message":"Done","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        self.tc.delete_bw_limit()"},{"line_number":79,"context_line":"        bw_limit, burst \u003d self.tc.get_bw_limits()"},{"line_number":80,"context_line":"        self.assertEqual(bw_limit, None)"},{"line_number":81,"context_line":"        self.assertEqual(burst, None)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_afa0ab91","line":81,"range":{"start_line":80,"start_character":8,"end_line":81,"end_character":37},"updated":"2016-01-19 02:09:08.000000000","message":"It\u0027s better to use assertIsNone().","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        self.tc.delete_bw_limit()"},{"line_number":79,"context_line":"        bw_limit, burst \u003d self.tc.get_bw_limits()"},{"line_number":80,"context_line":"        self.assertEqual(bw_limit, None)"},{"line_number":81,"context_line":"        self.assertEqual(burst, None)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_21eb39b2","line":81,"range":{"start_line":80,"start_character":8,"end_line":81,"end_character":37},"in_reply_to":"ba63e191_afa0ab91","updated":"2016-01-19 21:29:07.000000000","message":"Done","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        ip \u003d ip_lib.IPWrapper(namespace\u003dNAMESPACE)"},{"line_number":50,"context_line":"        if NAMESPACE:"},{"line_number":51,"context_line":"            ip.netns.add(NAMESPACE)"},{"line_number":52,"context_line":"            self.addCleanup(ip.netns.delete, NAMESPACE)"},{"line_number":53,"context_line":"        tap_device \u003d ip.add_tuntap(DEV_NAME)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_1ce581a7","line":50,"updated":"2016-01-20 14:09:34.000000000","message":"? I don\u0027t see when it becomes !\u003d \"\"?..","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        ip \u003d ip_lib.IPWrapper(namespace\u003dNAMESPACE)"},{"line_number":50,"context_line":"        if NAMESPACE:"},{"line_number":51,"context_line":"            ip.netns.add(NAMESPACE)"},{"line_number":52,"context_line":"            self.addCleanup(ip.netns.delete, NAMESPACE)"},{"line_number":53,"context_line":"        tap_device \u003d ip.add_tuntap(DEV_NAME)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_a61d2c68","line":50,"in_reply_to":"9a68dd71_1ce581a7","updated":"2016-01-20 22:44:50.000000000","message":"It is only \"in case\" that value of constant NAMESPACE will be changed in L31","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"682761aa756c02612e68cacfe60281c5bc3b598a","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        ip \u003d ip_lib.IPWrapper(namespace\u003dNAMESPACE)"},{"line_number":50,"context_line":"        if NAMESPACE:"},{"line_number":51,"context_line":"            ip.netns.add(NAMESPACE)"},{"line_number":52,"context_line":"            self.addCleanup(ip.netns.delete, NAMESPACE)"},{"line_number":53,"context_line":"        tap_device \u003d ip.add_tuntap(DEV_NAME)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_ef3770e1","line":50,"in_reply_to":"9a68dd71_a61d2c68","updated":"2016-01-21 00:42:40.000000000","message":"We don\u0027t need to expect the case that constant value is changed.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"7f67095c5ba1e486ea13c25bc1de3c8de318bf9c","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        ip \u003d ip_lib.IPWrapper(namespace\u003dNAMESPACE)"},{"line_number":50,"context_line":"        if NAMESPACE:"},{"line_number":51,"context_line":"            ip.netns.add(NAMESPACE)"},{"line_number":52,"context_line":"            self.addCleanup(ip.netns.delete, NAMESPACE)"},{"line_number":53,"context_line":"        tap_device \u003d ip.add_tuntap(DEV_NAME)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_edf9a64e","line":50,"in_reply_to":"9a68dd71_bea0baf5","updated":"2016-01-21 10:33:37.000000000","message":"I think yes. I don\u0027t see it used anywhere.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d8da492d49014573d85d61e6fe4762db9bb72df8","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        ip \u003d ip_lib.IPWrapper(namespace\u003dNAMESPACE)"},{"line_number":50,"context_line":"        if NAMESPACE:"},{"line_number":51,"context_line":"            ip.netns.add(NAMESPACE)"},{"line_number":52,"context_line":"            self.addCleanup(ip.netns.delete, NAMESPACE)"},{"line_number":53,"context_line":"        tap_device \u003d ip.add_tuntap(DEV_NAME)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_be63dab0","line":50,"in_reply_to":"9a68dd71_ef3770e1","updated":"2016-01-21 08:51:11.000000000","message":"+1 to Hirofumi","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"1d0b0a29bf716466f5405b1edde382a71bacd4c4","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        \"\"\""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        ip \u003d ip_lib.IPWrapper(namespace\u003dNAMESPACE)"},{"line_number":50,"context_line":"        if NAMESPACE:"},{"line_number":51,"context_line":"            ip.netns.add(NAMESPACE)"},{"line_number":52,"context_line":"            self.addCleanup(ip.netns.delete, NAMESPACE)"},{"line_number":53,"context_line":"        tap_device \u003d ip.add_tuntap(DEV_NAME)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_bea0baf5","line":50,"in_reply_to":"9a68dd71_ef3770e1","updated":"2016-01-21 10:03:15.000000000","message":"So in such case I removed this constant at all becuase I think it is not necessary to have constant which is empty and do nothing :) Will it be ok?","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        tap_device.link.set_address(MAC_ADDRESS)"},{"line_number":56,"context_line":"        tap_device.link.set_up()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def delete_device(self, device):"},{"line_number":59,"context_line":"        try:"},{"line_number":60,"context_line":"            device.link.delete()"},{"line_number":61,"context_line":"        except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_dc94c9e9","line":58,"updated":"2016-01-20 14:09:34.000000000","message":"I thought cleanups are resistant against exceptions. If that\u0027s the case, you could directly use device.link.device as your cleanup function in line 54.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        tap_device.link.set_address(MAC_ADDRESS)"},{"line_number":56,"context_line":"        tap_device.link.set_up()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def delete_device(self, device):"},{"line_number":59,"context_line":"        try:"},{"line_number":60,"context_line":"            device.link.delete()"},{"line_number":61,"context_line":"        except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_e6dd6471","line":58,"in_reply_to":"9a68dd71_dc94c9e9","updated":"2016-01-20 22:44:50.000000000","message":"I was not sure about that and I took this method directly from neutron.tests.functional.agent.linux.test_ip_lib (see L61 there).","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"1d0b0a29bf716466f5405b1edde382a71bacd4c4","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        tap_device.link.set_address(MAC_ADDRESS)"},{"line_number":56,"context_line":"        tap_device.link.set_up()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def delete_device(self, device):"},{"line_number":59,"context_line":"        try:"},{"line_number":60,"context_line":"            device.link.delete()"},{"line_number":61,"context_line":"        except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_619f0704","line":58,"in_reply_to":"9a68dd71_de032eb7","updated":"2016-01-21 10:03:15.000000000","message":"Ok, I removed this exception handling from here","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d8da492d49014573d85d61e6fe4762db9bb72df8","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        tap_device.link.set_address(MAC_ADDRESS)"},{"line_number":56,"context_line":"        tap_device.link.set_up()"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def delete_device(self, device):"},{"line_number":59,"context_line":"        try:"},{"line_number":60,"context_line":"            device.link.delete()"},{"line_number":61,"context_line":"        except RuntimeError:"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_de032eb7","line":58,"in_reply_to":"9a68dd71_e6dd6471","updated":"2016-01-21 08:51:11.000000000","message":"OK, if you copy paste code from test_ip_lib, I guess we should work on code deduplication. And in any case, seems like you don\u0027t need that exception handling for the test.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron.agent.linux import tc_lib"},{"line_number":20,"context_line":"from neutron.tests.functional import base as functional_base"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_9a27ab63","line":22,"updated":"2016-02-28 10:14:31.000000000","message":"one too many new lines","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from neutron.agent.linux import tc_lib"},{"line_number":20,"context_line":"from neutron.tests.functional import base as functional_base"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_3acbff1f","line":22,"in_reply_to":"9aed3d3a_9a27ab63","updated":"2016-02-28 20:34:02.000000000","message":"Done","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"TEST_HZ_VALUE \u003d 250"},{"line_number":27,"context_line":"LATENCY \u003d 50"}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_7a2aa72d","line":24,"updated":"2016-02-28 10:14:31.000000000","message":"ditto","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"TEST_HZ_VALUE \u003d 250"},{"line_number":27,"context_line":"LATENCY \u003d 50"}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_9ad20bd1","line":24,"in_reply_to":"9aed3d3a_7a2aa72d","updated":"2016-02-28 20:34:02.000000000","message":"Done","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"}],"neutron/tests/unit/agent/linux/test_tc_lib.py":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"7958c81d2c02a635373b10e634aca721a19613ee","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        super(TestTcCommand, self).setUp()"},{"line_number":32,"context_line":"        self.tc \u003d tc_lib.TcCommand(DEVICE_NAME, KERNEL_HZ_VALUE)"},{"line_number":33,"context_line":"        self.bw_limit \u003d \"%skbps\" % BW_LIMIT"},{"line_number":34,"context_line":"        self.burst \u003d 524288  # this value is calulated manually for tests"},{"line_number":35,"context_line":"        self.latency \u003d \"%s%s\" % (LATENCY, tc_lib.LATENCY_UNIT)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def test_set_tbf_qdisc(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_3a80eef6","line":34,"updated":"2015-10-21 07:21:19.000000000","message":"Can you please put a word about this calculation.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        super(TestTcCommand, self).setUp()"},{"line_number":32,"context_line":"        self.tc \u003d tc_lib.TcCommand(DEVICE_NAME, KERNEL_HZ_VALUE)"},{"line_number":33,"context_line":"        self.bw_limit \u003d \"%skbps\" % BW_LIMIT"},{"line_number":34,"context_line":"        self.burst \u003d 524288  # this value is calulated manually for tests"},{"line_number":35,"context_line":"        self.latency \u003d \"%s%s\" % (LATENCY, tc_lib.LATENCY_UNIT)"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def test_set_tbf_qdisc(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a26ad4f_227279e6","line":34,"in_reply_to":"3a29b11f_3a80eef6","updated":"2015-11-01 10:12:15.000000000","message":"Done","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"7958c81d2c02a635373b10e634aca721a19613ee","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def test_burst_value_when_burst_bigger_then_minimal(self):"},{"line_number":69,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, BURST)"},{"line_number":70,"context_line":"        self.assertEqual(result, 524288)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def test_burst_value_when_burst_smaller_then_minimal(self):"},{"line_number":73,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, 0)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_1a7c121e","line":70,"updated":"2015-10-21 07:21:19.000000000","message":"Let\u0027s use self.burst instead of 524288","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def test_burst_value_when_burst_bigger_then_minimal(self):"},{"line_number":69,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, BURST)"},{"line_number":70,"context_line":"        self.assertEqual(result, 524288)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def test_burst_value_when_burst_smaller_then_minimal(self):"},{"line_number":73,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, 0)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a26ad4f_5d043414","line":70,"in_reply_to":"3a29b11f_1a7c121e","updated":"2015-11-01 10:12:15.000000000","message":"Done","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"7958c81d2c02a635373b10e634aca721a19613ee","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def test_burst_value_when_burst_smaller_then_minimal(self):"},{"line_number":73,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, 0)"},{"line_number":74,"context_line":"        self.assertEqual(result, 2048)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3a29b11f_faa596a1","line":74,"updated":"2015-10-21 07:21:19.000000000","message":"Let\u0027s use \tBW_LIMIT instead of 2048.","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"cfb1fd02ed3b804583a1a0f015012e8be130211f","unresolved":false,"context_lines":[{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def test_burst_value_when_burst_smaller_then_minimal(self):"},{"line_number":73,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, 0)"},{"line_number":74,"context_line":"        self.assertEqual(result, 2048)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a26ad4f_e209e132","line":74,"in_reply_to":"3a29b11f_faa596a1","updated":"2015-11-01 10:12:15.000000000","message":"It is not the same value. Here this 2048 is calculated from tc_lib.TcCommand._get_min_burst_value()","commit_id":"3c753193aa70f55ec957c05c33607c677f87a1ec"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"ae936307e4f78f97785b47d1a4e53c5eb1001419","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        super(TestTcCommand, self).setUp()"},{"line_number":32,"context_line":"        self.tc \u003d tc_lib.TcCommand(DEVICE_NAME, KERNEL_HZ_VALUE)"},{"line_number":33,"context_line":"        self.bw_limit \u003d \"%skbps\" % BW_LIMIT"},{"line_number":34,"context_line":"        #burst value is here calculated manually for tests,"},{"line_number":35,"context_line":"        # it is calculated as (BW_LIMIT/KERNEL_HZ_VALUE) * 1024"},{"line_number":36,"context_line":"        self.burst \u003d 524288  # this value is calulated manually for tests"},{"line_number":37,"context_line":"        self.latency \u003d \"%s%s\" % (LATENCY, tc_lib.LATENCY_UNIT)"}],"source_content_type":"text/x-python","patch_set":7,"id":"1a26ad4f_0277cfd3","line":34,"updated":"2015-11-01 12:33:05.000000000","message":"Can we put a space after \u0027#\u0027","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"354513fa9126e828d66927702fbbda1df90c7532","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        super(TestTcCommand, self).setUp()"},{"line_number":32,"context_line":"        self.tc \u003d tc_lib.TcCommand(DEVICE_NAME, KERNEL_HZ_VALUE)"},{"line_number":33,"context_line":"        self.bw_limit \u003d \"%skbps\" % BW_LIMIT"},{"line_number":34,"context_line":"        #burst value is here calculated manually for tests,"},{"line_number":35,"context_line":"        # it is calculated as (BW_LIMIT/KERNEL_HZ_VALUE) * 1024"},{"line_number":36,"context_line":"        self.burst \u003d 524288  # this value is calulated manually for tests"},{"line_number":37,"context_line":"        self.latency \u003d \"%s%s\" % (LATENCY, tc_lib.LATENCY_UNIT)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa80f949_1bf2679b","line":34,"in_reply_to":"1a26ad4f_0277cfd3","updated":"2015-11-03 21:07:23.000000000","message":"Done","commit_id":"32cf3ab8ac73fa92854c79b7afb719200aa32f19"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e89ab3f3522f5a1255487c4c3ac9a26d6f34b3b7","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def test_set_bw_limit(self):"},{"line_number":40,"context_line":"        with mock.patch("},{"line_number":41,"context_line":"            \u0027neutron.agent.common.utils.execute\u0027,"},{"line_number":42,"context_line":"            return_value\u003dTrue"},{"line_number":43,"context_line":"        ) as execute:"},{"line_number":44,"context_line":"            result \u003d self.tc.set_bw_limit(BW_LIMIT, BURST, LATENCY)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_22490c60","line":41,"updated":"2015-11-04 10:11:27.000000000","message":"No need to mock every time. It could be done in the setup.\n\nself.execute \u003d mock.patch(\u0027neutron.agent.common.utils.execute\u0027).start()","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def test_set_bw_limit(self):"},{"line_number":40,"context_line":"        with mock.patch("},{"line_number":41,"context_line":"            \u0027neutron.agent.common.utils.execute\u0027,"},{"line_number":42,"context_line":"            return_value\u003dTrue"},{"line_number":43,"context_line":"        ) as execute:"},{"line_number":44,"context_line":"            result \u003d self.tc.set_bw_limit(BW_LIMIT, BURST, LATENCY)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_0a396841","line":41,"in_reply_to":"fa80f949_22490c60","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e89ab3f3522f5a1255487c4c3ac9a26d6f34b3b7","unresolved":false,"context_lines":[{"line_number":42,"context_line":"            return_value\u003dTrue"},{"line_number":43,"context_line":"        ) as execute:"},{"line_number":44,"context_line":"            result \u003d self.tc.set_bw_limit(BW_LIMIT, BURST, LATENCY)"},{"line_number":45,"context_line":"            self.assertTrue(result)"},{"line_number":46,"context_line":"            execute.assert_called_once_with("},{"line_number":47,"context_line":"                [\"tc\", \"qdisc\", \"replace\", \"dev\", DEVICE_NAME,"},{"line_number":48,"context_line":"                 \"root\", \"tbf\", \"rate\", self.bw_limit,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_62add4e8","line":45,"updated":"2015-11-04 10:11:27.000000000","message":"IMO, no need to assert for the retval as we are mocking it. \"assert_called_once_with\" would be sufficient.","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":42,"context_line":"            return_value\u003dTrue"},{"line_number":43,"context_line":"        ) as execute:"},{"line_number":44,"context_line":"            result \u003d self.tc.set_bw_limit(BW_LIMIT, BURST, LATENCY)"},{"line_number":45,"context_line":"            self.assertTrue(result)"},{"line_number":46,"context_line":"            execute.assert_called_once_with("},{"line_number":47,"context_line":"                [\"tc\", \"qdisc\", \"replace\", \"dev\", DEVICE_NAME,"},{"line_number":48,"context_line":"                 \"root\", \"tbf\", \"rate\", self.bw_limit,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_6a4a74c7","line":45,"in_reply_to":"fa80f949_62add4e8","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e89ab3f3522f5a1255487c4c3ac9a26d6f34b3b7","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_update_bw_limit(self):"},{"line_number":58,"context_line":"        with mock.patch("},{"line_number":59,"context_line":"            \u0027neutron.agent.common.utils.execute\u0027,"},{"line_number":60,"context_line":"            return_value\u003dTrue"},{"line_number":61,"context_line":"        ) as execute:"},{"line_number":62,"context_line":"            result \u003d self.tc.update_bw_limit("}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_e279c494","line":59,"updated":"2015-11-04 10:11:27.000000000","message":"ditto","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_update_bw_limit(self):"},{"line_number":58,"context_line":"        with mock.patch("},{"line_number":59,"context_line":"            \u0027neutron.agent.common.utils.execute\u0027,"},{"line_number":60,"context_line":"            return_value\u003dTrue"},{"line_number":61,"context_line":"        ) as execute:"},{"line_number":62,"context_line":"            result \u003d self.tc.update_bw_limit("}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_8a4558b4","line":59,"in_reply_to":"fa80f949_e279c494","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e89ab3f3522f5a1255487c4c3ac9a26d6f34b3b7","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            result \u003d self.tc.update_bw_limit("},{"line_number":63,"context_line":"                BW_LIMIT, BURST, LATENCY"},{"line_number":64,"context_line":"            )"},{"line_number":65,"context_line":"            self.assertTrue(result)"},{"line_number":66,"context_line":"            execute.assert_called_once_with("},{"line_number":67,"context_line":"                [\"tc\", \"qdisc\", \"replace\", \"dev\", DEVICE_NAME,"},{"line_number":68,"context_line":"                 \"root\", \"tbf\", \"rate\", self.bw_limit,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_e2a0e4f6","line":65,"updated":"2015-11-04 10:11:27.000000000","message":"ditto","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":62,"context_line":"            result \u003d self.tc.update_bw_limit("},{"line_number":63,"context_line":"                BW_LIMIT, BURST, LATENCY"},{"line_number":64,"context_line":"            )"},{"line_number":65,"context_line":"            self.assertTrue(result)"},{"line_number":66,"context_line":"            execute.assert_called_once_with("},{"line_number":67,"context_line":"                [\"tc\", \"qdisc\", \"replace\", \"dev\", DEVICE_NAME,"},{"line_number":68,"context_line":"                 \"root\", \"tbf\", \"rate\", self.bw_limit,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_2a130cba","line":65,"in_reply_to":"fa80f949_e2a0e4f6","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e89ab3f3522f5a1255487c4c3ac9a26d6f34b3b7","unresolved":false,"context_lines":[{"line_number":75,"context_line":"            )"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def test_delete_bw_limit(self):"},{"line_number":78,"context_line":"        with mock.patch("},{"line_number":79,"context_line":"            \u0027neutron.agent.common.utils.execute\u0027,"},{"line_number":80,"context_line":"            return_value\u003dTrue"},{"line_number":81,"context_line":"        ) as execute:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_a273bcb0","line":78,"updated":"2015-11-04 10:11:27.000000000","message":"ditto","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":75,"context_line":"            )"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def test_delete_bw_limit(self):"},{"line_number":78,"context_line":"        with mock.patch("},{"line_number":79,"context_line":"            \u0027neutron.agent.common.utils.execute\u0027,"},{"line_number":80,"context_line":"            return_value\u003dTrue"},{"line_number":81,"context_line":"        ) as execute:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_4a1690a8","line":78,"in_reply_to":"fa80f949_a273bcb0","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"e89ab3f3522f5a1255487c4c3ac9a26d6f34b3b7","unresolved":false,"context_lines":[{"line_number":80,"context_line":"            return_value\u003dTrue"},{"line_number":81,"context_line":"        ) as execute:"},{"line_number":82,"context_line":"            result \u003d self.tc.delete_bw_limit()"},{"line_number":83,"context_line":"            self.assertTrue(result)"},{"line_number":84,"context_line":"            execute.assert_called_once_with("},{"line_number":85,"context_line":"                [\"tc\", \"qdisc\", \"del\", \"dev\", DEVICE_NAME, \"root\"],"},{"line_number":86,"context_line":"                run_as_root\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_a2aadcd2","line":83,"updated":"2015-11-04 10:11:27.000000000","message":"ditto","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"19961e3b6342963c5598662b5e63157b87840d73","unresolved":false,"context_lines":[{"line_number":80,"context_line":"            return_value\u003dTrue"},{"line_number":81,"context_line":"        ) as execute:"},{"line_number":82,"context_line":"            result \u003d self.tc.delete_bw_limit()"},{"line_number":83,"context_line":"            self.assertTrue(result)"},{"line_number":84,"context_line":"            execute.assert_called_once_with("},{"line_number":85,"context_line":"                [\"tc\", \"qdisc\", \"del\", \"dev\", DEVICE_NAME, \"root\"],"},{"line_number":86,"context_line":"                run_as_root\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa80f949_0a1088a7","line":83,"in_reply_to":"fa80f949_a2aadcd2","updated":"2015-11-04 22:46:11.000000000","message":"Done","commit_id":"680f7a6681e5ce9b7034e8a2f2d739328d03ca5b"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"8cb329ec1c2be730c7f6e02fc774bd4fae35fd57","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_510bb17d","line":1,"updated":"2016-01-08 04:24:48.000000000","message":":)","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"501579c3a93496f584b359fc324c2347573f3f80","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_2dea4ead","line":1,"in_reply_to":"fa69d971_510bb17d","updated":"2016-01-08 08:27:21.000000000","message":"Done","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5d81bac32d5133d4ee3bb59a25b4656d80e378df","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":18,"id":"da6ed579_4510e6a8","line":1,"updated":"2016-01-17 05:38:05.000000000","message":"bad rebase","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bbb1238ccf11570e992d5222acc524df98feeaa7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba63e191_c845e417","line":1,"in_reply_to":"da6ed579_4510e6a8","updated":"2016-01-18 20:36:52.000000000","message":"Done","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    def test_get_bw_limits(self):"},{"line_number":44,"context_line":"        self.execute.return_value \u003d TC_OUTPUT"},{"line_number":45,"context_line":"        bw_limit, burst_limit \u003d self.tc.get_bw_limits()"},{"line_number":46,"context_line":"        self.assertEqual(bw_limit, 1024)"},{"line_number":47,"context_line":"        self.assertEqual(burst_limit, 2048)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def test_get_bw_limits_when_wrong_qdisc(self):"},{"line_number":50,"context_line":"        output \u003d TC_OUTPUT.replace(\"tbf\", \"different_qdisc\")"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_2f303b56","line":47,"range":{"start_line":46,"start_character":8,"end_line":47,"end_character":43},"updated":"2016-01-19 02:09:08.000000000","message":"It\u0027s better to use the pattern \"self.assertEqual(expected, observed)\".","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":43,"context_line":"    def test_get_bw_limits(self):"},{"line_number":44,"context_line":"        self.execute.return_value \u003d TC_OUTPUT"},{"line_number":45,"context_line":"        bw_limit, burst_limit \u003d self.tc.get_bw_limits()"},{"line_number":46,"context_line":"        self.assertEqual(bw_limit, 1024)"},{"line_number":47,"context_line":"        self.assertEqual(burst_limit, 2048)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def test_get_bw_limits_when_wrong_qdisc(self):"},{"line_number":50,"context_line":"        output \u003d TC_OUTPUT.replace(\"tbf\", \"different_qdisc\")"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_412c2d02","line":47,"range":{"start_line":46,"start_character":8,"end_line":47,"end_character":43},"in_reply_to":"ba63e191_2f303b56","updated":"2016-01-19 21:29:07.000000000","message":"Done","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        output \u003d TC_OUTPUT.replace(\"tbf\", \"different_qdisc\")"},{"line_number":51,"context_line":"        self.execute.return_value \u003d output"},{"line_number":52,"context_line":"        bw_limit, burst_limit \u003d self.tc.get_bw_limits()"},{"line_number":53,"context_line":"        self.assertEqual(bw_limit, None)"},{"line_number":54,"context_line":"        self.assertEqual(burst_limit, None)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def test_get_bw_limits_when_wrong_units(self):"},{"line_number":57,"context_line":"        output \u003d TC_OUTPUT.replace(\"Kbit\", \"Xbit\")"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_6f4633c1","line":54,"range":{"start_line":53,"start_character":8,"end_line":54,"end_character":43},"updated":"2016-01-19 02:09:08.000000000","message":"It\u0027s better to use assertIsNone().","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        output \u003d TC_OUTPUT.replace(\"tbf\", \"different_qdisc\")"},{"line_number":51,"context_line":"        self.execute.return_value \u003d output"},{"line_number":52,"context_line":"        bw_limit, burst_limit \u003d self.tc.get_bw_limits()"},{"line_number":53,"context_line":"        self.assertEqual(bw_limit, None)"},{"line_number":54,"context_line":"        self.assertEqual(burst_limit, None)"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    def test_get_bw_limits_when_wrong_units(self):"},{"line_number":57,"context_line":"        output \u003d TC_OUTPUT.replace(\"Kbit\", \"Xbit\")"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_611611a9","line":54,"range":{"start_line":53,"start_character":8,"end_line":54,"end_character":43},"in_reply_to":"ba63e191_6f4633c1","updated":"2016-01-19 21:29:07.000000000","message":"Done","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        output \u003d TC_OUTPUT.replace(\"Kbit\", \"Xbit\")"},{"line_number":58,"context_line":"        self.execute.return_value \u003d output"},{"line_number":59,"context_line":"        bw_limit, burst_limit \u003d self.tc.get_bw_limits()"},{"line_number":60,"context_line":"        self.assertEqual(bw_limit, None)"},{"line_number":61,"context_line":"        self.assertEqual(burst_limit, 2048)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def test_set_bw_limit(self):"},{"line_number":64,"context_line":"        self.tc.set_bw_limit(BW_LIMIT, BURST, LATENCY)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_ef10e3aa","line":61,"range":{"start_line":60,"start_character":8,"end_line":61,"end_character":43},"updated":"2016-01-19 02:09:08.000000000","message":"ditto","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        output \u003d TC_OUTPUT.replace(\"Kbit\", \"Xbit\")"},{"line_number":58,"context_line":"        self.execute.return_value \u003d output"},{"line_number":59,"context_line":"        bw_limit, burst_limit \u003d self.tc.get_bw_limits()"},{"line_number":60,"context_line":"        self.assertEqual(bw_limit, None)"},{"line_number":61,"context_line":"        self.assertEqual(burst_limit, 2048)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def test_set_bw_limit(self):"},{"line_number":64,"context_line":"        self.tc.set_bw_limit(BW_LIMIT, BURST, LATENCY)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_c127bd10","line":61,"range":{"start_line":60,"start_character":8,"end_line":61,"end_character":43},"in_reply_to":"ba63e191_ef10e3aa","updated":"2016-01-19 21:29:07.000000000","message":"Done","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def test_burst_value_when_burst_bigger_then_minimal(self):"},{"line_number":100,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, BURST)"},{"line_number":101,"context_line":"        self.assertEqual(result, self.burst)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def test_burst_value_when_burst_smaller_then_minimal(self):"},{"line_number":104,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, 0)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_2f7efbe4","line":101,"range":{"start_line":101,"start_character":8,"end_line":101,"end_character":44},"updated":"2016-01-19 02:09:08.000000000","message":"ditto","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def test_burst_value_when_burst_bigger_then_minimal(self):"},{"line_number":100,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, BURST)"},{"line_number":101,"context_line":"        self.assertEqual(result, self.burst)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def test_burst_value_when_burst_smaller_then_minimal(self):"},{"line_number":104,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, 0)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_2187b9d8","line":101,"range":{"start_line":101,"start_character":8,"end_line":101,"end_character":44},"in_reply_to":"ba63e191_2f7efbe4","updated":"2016-01-19 21:29:07.000000000","message":"Done","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5412fbd2626a3c0d09b6e03c696eadc821b8a8c5","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def test_burst_value_when_burst_smaller_then_minimal(self):"},{"line_number":104,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, 0)"},{"line_number":105,"context_line":"        self.assertEqual(result, 2048)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_ef8783d5","line":105,"range":{"start_line":105,"start_character":8,"end_line":105,"end_character":38},"updated":"2016-01-19 02:09:08.000000000","message":"ditto","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7c0d221b4de6cf925b998d5e4f7d6a5c756f4f51","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def test_burst_value_when_burst_smaller_then_minimal(self):"},{"line_number":104,"context_line":"        result \u003d self.tc.get_burst_value(BW_LIMIT, 0)"},{"line_number":105,"context_line":"        self.assertEqual(result, 2048)"}],"source_content_type":"text/x-python","patch_set":19,"id":"ba63e191_e169a126","line":105,"range":{"start_line":105,"start_character":8,"end_line":105,"end_character":38},"in_reply_to":"ba63e191_ef8783d5","updated":"2016-01-19 21:29:07.000000000","message":"Done","commit_id":"3ac06c40f7f6ed14d3a741ffe4e67d8bf18cb403"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcc86c2a40a1cb5bea8faa79cdb6035fdd9629be","unresolved":false,"context_lines":[{"line_number":28,"context_line":"TC_OUTPUT \u003d\\"},{"line_number":29,"context_line":"    \u0027qdisc tbf 8011: root refcnt 2 rate 8192Kbit burst 2Mb lat 50.0ms \\n\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class TestTcCommand(base.BaseTestCase):"},{"line_number":33,"context_line":"    def setUp(self):"},{"line_number":34,"context_line":"        super(TestTcCommand, self).setUp()"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_7cf6fdd8","line":31,"updated":"2016-01-20 14:09:34.000000000","message":"there should be tests that target bits-to-bytes functions.","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f98d9a2f48a2002ed47f2741b7984de4c9a9b32","unresolved":false,"context_lines":[{"line_number":28,"context_line":"TC_OUTPUT \u003d\\"},{"line_number":29,"context_line":"    \u0027qdisc tbf 8011: root refcnt 2 rate 8192Kbit burst 2Mb lat 50.0ms \\n\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class TestTcCommand(base.BaseTestCase):"},{"line_number":33,"context_line":"    def setUp(self):"},{"line_number":34,"context_line":"        super(TestTcCommand, self).setUp()"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a68dd71_c6f9404f","line":31,"in_reply_to":"9a68dd71_7cf6fdd8","updated":"2016-01-20 22:44:50.000000000","message":"I added such tests","commit_id":"f023c764f5a88d91ec360cf493ca5252699fd9a1"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"d4d1cf8b67fb81d18f7f06f5938cfda04e656096","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        #test convert 0bits to bytes"},{"line_number":71,"context_line":"        self.assertEqual(0, tc_lib.bits_to_bytes(0))"},{"line_number":72,"context_line":"        #test convert 1bit to bytes"},{"line_number":73,"context_line":"        self.assertEqual(1, tc_lib.bits_to_bytes(1))"},{"line_number":74,"context_line":"        #test convert 1024bits to bytes"},{"line_number":75,"context_line":"        self.assertEqual(128, tc_lib.bits_to_bytes(1024))"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"9a68dd71_cf65bf45","line":73,"updated":"2016-01-21 08:02:44.000000000","message":"Suggest you to add tests for MIN,MAX-1,MAX \u0026 MAX+1 boundary values i.e. let\u0027s test for 0,1,7,8 and 9","commit_id":"bb7545f21e9108c01ea84d645680e639afabc92c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b40e7e6225a1d6df14a46d5cebc6a69a6cc33017","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        #test convert 0bits to bytes"},{"line_number":71,"context_line":"        self.assertEqual(0, tc_lib.bits_to_bytes(0))"},{"line_number":72,"context_line":"        #test convert 1bit to bytes"},{"line_number":73,"context_line":"        self.assertEqual(1, tc_lib.bits_to_bytes(1))"},{"line_number":74,"context_line":"        #test convert 1024bits to bytes"},{"line_number":75,"context_line":"        self.assertEqual(128, tc_lib.bits_to_bytes(1024))"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"9a68dd71_4a753dc9","line":73,"in_reply_to":"9a68dd71_cf65bf45","updated":"2016-01-21 10:03:27.000000000","message":"You are right. I changed it. Thx","commit_id":"bb7545f21e9108c01ea84d645680e639afabc92c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        )"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def test_bits_to_bytes(self):"},{"line_number":77,"context_line":"        #test convert 0bits to bytes"},{"line_number":78,"context_line":"        self.assertEqual(0, tc_lib.bits_to_bytes(0))"},{"line_number":79,"context_line":"        #test convert 1bit to bytes"},{"line_number":80,"context_line":"        self.assertEqual(1, tc_lib.bits_to_bytes(1))"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_ead714bd","line":77,"updated":"2016-02-22 13:29:50.000000000","message":"nit: you seem to repeat yourself in those two test cases. You could use for statement here iterating on (input, expected) mapping to avoid some repeatition.","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        )"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def test_bits_to_bytes(self):"},{"line_number":77,"context_line":"        #test convert 0bits to bytes"},{"line_number":78,"context_line":"        self.assertEqual(0, tc_lib.bits_to_bytes(0))"},{"line_number":79,"context_line":"        #test convert 1bit to bytes"},{"line_number":80,"context_line":"        self.assertEqual(1, tc_lib.bits_to_bytes(1))"}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_192d5f95","line":77,"in_reply_to":"bae84128_ead714bd","updated":"2016-02-22 22:13:31.000000000","message":"There is no repetitions here but I changed it to do with some for loop. I hope it\u0027s better not :)","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        self.bw_limit \u003d \"%skbps\" % BW_LIMIT"},{"line_number":106,"context_line":"        # burst value is here calculated manually for tests,"},{"line_number":107,"context_line":"        # it is calculated as (BW_LIMIT/KERNEL_HZ_VALUE) * 1024"},{"line_number":108,"context_line":"        self.burst \u003d 524288  # this value is calulated manually for tests"},{"line_number":109,"context_line":"        self.latency \u003d \"%s%s\" % (LATENCY, tc_lib.LATENCY_UNIT)"},{"line_number":110,"context_line":"        self.execute \u003d mock.patch(\u0027neutron.agent.common.utils.execute\u0027).start()"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_cae97082","line":108,"updated":"2016-02-22 13:29:50.000000000","message":"calculated; I also think that it should not be a magic value precalculated. Instead, calculated it here in the test using the BW_LIMIT and KERNEL_HZ_VALUE.","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        self.bw_limit \u003d \"%skbps\" % BW_LIMIT"},{"line_number":106,"context_line":"        # burst value is here calculated manually for tests,"},{"line_number":107,"context_line":"        # it is calculated as (BW_LIMIT/KERNEL_HZ_VALUE) * 1024"},{"line_number":108,"context_line":"        self.burst \u003d 524288  # this value is calulated manually for tests"},{"line_number":109,"context_line":"        self.latency \u003d \"%s%s\" % (LATENCY, tc_lib.LATENCY_UNIT)"},{"line_number":110,"context_line":"        self.execute \u003d mock.patch(\u0027neutron.agent.common.utils.execute\u0027).start()"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"bae84128_04a97624","line":108,"in_reply_to":"bae84128_cae97082","updated":"2016-02-22 22:13:31.000000000","message":"You\u0027re right. In fact I checked it once again and this comment was just wrong. This magic value is just BURST from line 25 but in bytes (so BURST * 1024). It would be value calculated as (BW_LIMIT/KERNEL_HZ_VALUE) * 1024 only when BURST would be smaller then this calculated value.","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5e02408ebe7e0f1f17433336d7fd897dbf71d6f0","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            (1, 1),  # 1 bit should be 1 byte"},{"line_number":80,"context_line":"            (7, 1),  # 7 bits should be 1 byte"},{"line_number":81,"context_line":"            (8, 1),  # 8 bits should be 1 byte"},{"line_number":82,"context_line":"            (9, 2)   # 9 bits should be 1 2 bytes"},{"line_number":83,"context_line":"        ]"},{"line_number":84,"context_line":"        for input_bits, expected_bytes in test_values:"},{"line_number":85,"context_line":"            self.assertEqual("}],"source_content_type":"text/x-python","patch_set":28,"id":"bae84128_606aceb4","line":82,"range":{"start_line":82,"start_character":40,"end_line":82,"end_character":43},"updated":"2016-02-23 12:10:02.000000000","message":"1 or 2?..","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"ad55c8cae9d9d0fa60f888462f56561b439730b2","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            (1, 1),  # 1 bit should be 1 byte"},{"line_number":80,"context_line":"            (7, 1),  # 7 bits should be 1 byte"},{"line_number":81,"context_line":"            (8, 1),  # 8 bits should be 1 byte"},{"line_number":82,"context_line":"            (9, 2)   # 9 bits should be 1 2 bytes"},{"line_number":83,"context_line":"        ]"},{"line_number":84,"context_line":"        for input_bits, expected_bytes in test_values:"},{"line_number":85,"context_line":"            self.assertEqual("}],"source_content_type":"text/x-python","patch_set":28,"id":"bae84128_684d7b99","line":82,"range":{"start_line":82,"start_character":40,"end_line":82,"end_character":43},"in_reply_to":"bae84128_606aceb4","updated":"2016-02-23 20:51:55.000000000","message":"argh :) ofcourse 2, fixed. Thx","commit_id":"4729cd05a492a3338f5b0cc22ed1fa7e6cde363a"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from neutron.agent.linux import tc_lib"},{"line_number":19,"context_line":"from neutron.tests import base"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DEVICE_NAME \u003d \"tap_device\""},{"line_number":23,"context_line":"KERNEL_HZ_VALUE \u003d 1000"},{"line_number":24,"context_line":"BW_LIMIT \u003d 2000  # [kbps]"}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_da21334f","line":21,"updated":"2016-02-28 10:14:31.000000000","message":"ditto","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":18,"context_line":"from neutron.agent.linux import tc_lib"},{"line_number":19,"context_line":"from neutron.tests import base"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DEVICE_NAME \u003d \"tap_device\""},{"line_number":23,"context_line":"KERNEL_HZ_VALUE \u003d 1000"},{"line_number":24,"context_line":"BW_LIMIT \u003d 2000  # [kbps]"}],"source_content_type":"text/x-python","patch_set":31,"id":"9aed3d3a_dadc93e6","line":21,"in_reply_to":"9aed3d3a_da21334f","updated":"2016-02-28 20:34:02.000000000","message":"Done","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            )"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"class TestIECUnitConversions(TestSIUnitConversions):"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    base_unit \u003d tc_lib.IEC_BASE"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_50a208fe","line":108,"updated":"2016-02-29 12:07:54.000000000","message":"Instead of directly inheriting from SIUnit class, you should have a mixin with common test cases, and then inherit from the mixin (and base test class) from independent test case classes (one for SI and another one for IEC).","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a624fbc26643337af635125c2905a18fdf6068aa","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            )"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"class TestIECUnitConversions(TestSIUnitConversions):"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    base_unit \u003d tc_lib.IEC_BASE"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"7af24918_3e6d2933","line":108,"in_reply_to":"9aed3d3a_284d1d9a","updated":"2016-03-01 10:46:18.000000000","message":"Done","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            )"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"class TestIECUnitConversions(TestSIUnitConversions):"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    base_unit \u003d tc_lib.IEC_BASE"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_d29d5c67","line":108,"in_reply_to":"9aed3d3a_50a208fe","updated":"2016-02-29 21:40:19.000000000","message":"I want but then tests from this BaseUnitConversionTest class was also made and there was errors that object BaseUnitConversionTest has no atribute base_unit.\nDo You know how I should do it to not execute methods from this base class as tests?","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"7e9893f37cd8958d39d3c939155251f6016029a3","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            )"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"class TestIECUnitConversions(TestSIUnitConversions):"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"    base_unit \u003d tc_lib.IEC_BASE"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":32,"id":"9aed3d3a_284d1d9a","line":108,"in_reply_to":"9aed3d3a_d29d5c67","updated":"2016-03-01 10:09:35.000000000","message":"If you would not inherit BaseTestCase in the base class with test cases, they would not be triggered by testtools.","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"}],"neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/extension_drivers/test_qos_driver.py":[{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"8cb329ec1c2be730c7f6e02fc774bd4fae35fd57","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_31239d07","line":1,"updated":"2016-01-08 04:24:48.000000000","message":":)","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"501579c3a93496f584b359fc324c2347573f3f80","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":16,"id":"fa69d971_0dfe6a6b","line":1,"in_reply_to":"fa69d971_31239d07","updated":"2016-01-08 08:27:21.000000000","message":"Done","commit_id":"af15816fa3ba1f80f7c6bd0e74b2b8fcef98f81c"},{"author":{"_account_id":14605,"name":"vikram.choudhary","email":"vikschw@gmail.com","username":"vikram.choudhary"},"change_message_id":"5d81bac32d5133d4ee3bb59a25b4656d80e378df","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":18,"id":"da6ed579_e5255a0a","line":1,"updated":"2016-01-17 05:38:05.000000000","message":"ditto","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"bbb1238ccf11570e992d5222acc524df98feeaa7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OVH SAS"},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"#    not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":18,"id":"ba63e191_083c5c92","line":1,"in_reply_to":"da6ed579_e5255a0a","updated":"2016-01-18 20:36:52.000000000","message":"Done","commit_id":"097e157321781273b45a11f0d6814740da1359dd"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"2b262080a2f0940b15f457918ee07360488efc94","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                mock.patch.object(tc_lib.TcCommand, \"set_bw_limit\") \\"},{"line_number":61,"context_line":"                as set_bw_limit:"},{"line_number":62,"context_line":"            self.qos_driver.create_bandwidth_limit(self.port, self.rule)"},{"line_number":63,"context_line":"            delete_bw_limit.assert_not_called()"},{"line_number":64,"context_line":"            update_bw_limit.assert_not_called()"},{"line_number":65,"context_line":"            set_bw_limit.assert_called_once_with("},{"line_number":66,"context_line":"                self.rule.max_kbps, self.rule.max_burst_kbps,"},{"line_number":67,"context_line":"                TEST_LATENCY_VALUE"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a68dd71_c2ce0383","line":64,"range":{"start_line":63,"start_character":0,"end_line":64,"end_character":47},"updated":"2016-01-21 00:42:31.000000000","message":"The qos_driver.create_bandwidth_limit() certainly calls set_bw_limit() only. We don\u0027t need to confirm these non-calling.","commit_id":"bb7545f21e9108c01ea84d645680e639afabc92c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b40e7e6225a1d6df14a46d5cebc6a69a6cc33017","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                mock.patch.object(tc_lib.TcCommand, \"set_bw_limit\") \\"},{"line_number":61,"context_line":"                as set_bw_limit:"},{"line_number":62,"context_line":"            self.qos_driver.create_bandwidth_limit(self.port, self.rule)"},{"line_number":63,"context_line":"            delete_bw_limit.assert_not_called()"},{"line_number":64,"context_line":"            update_bw_limit.assert_not_called()"},{"line_number":65,"context_line":"            set_bw_limit.assert_called_once_with("},{"line_number":66,"context_line":"                self.rule.max_kbps, self.rule.max_burst_kbps,"},{"line_number":67,"context_line":"                TEST_LATENCY_VALUE"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a68dd71_aa31590d","line":64,"range":{"start_line":63,"start_character":0,"end_line":64,"end_character":47},"in_reply_to":"9a68dd71_c2ce0383","updated":"2016-01-21 10:03:27.000000000","message":"Done","commit_id":"bb7545f21e9108c01ea84d645680e639afabc92c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"2b262080a2f0940b15f457918ee07360488efc94","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                mock.patch.object(tc_lib.TcCommand, \"set_bw_limit\") \\"},{"line_number":77,"context_line":"                as set_bw_limit:"},{"line_number":78,"context_line":"            self.qos_driver.update_bandwidth_limit(self.port, self.rule)"},{"line_number":79,"context_line":"            delete_bw_limit.assert_not_called()"},{"line_number":80,"context_line":"            set_bw_limit.assert_not_called()"},{"line_number":81,"context_line":"            update_bw_limit.assert_called_once_with("},{"line_number":82,"context_line":"                self.rule.max_kbps, self.rule.max_burst_kbps,"},{"line_number":83,"context_line":"                TEST_LATENCY_VALUE"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a68dd71_a2c50f5c","line":80,"range":{"start_line":79,"start_character":0,"end_line":80,"end_character":44},"updated":"2016-01-21 00:42:31.000000000","message":"ditto","commit_id":"bb7545f21e9108c01ea84d645680e639afabc92c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b40e7e6225a1d6df14a46d5cebc6a69a6cc33017","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                mock.patch.object(tc_lib.TcCommand, \"set_bw_limit\") \\"},{"line_number":77,"context_line":"                as set_bw_limit:"},{"line_number":78,"context_line":"            self.qos_driver.update_bandwidth_limit(self.port, self.rule)"},{"line_number":79,"context_line":"            delete_bw_limit.assert_not_called()"},{"line_number":80,"context_line":"            set_bw_limit.assert_not_called()"},{"line_number":81,"context_line":"            update_bw_limit.assert_called_once_with("},{"line_number":82,"context_line":"                self.rule.max_kbps, self.rule.max_burst_kbps,"},{"line_number":83,"context_line":"                TEST_LATENCY_VALUE"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a68dd71_ea06711f","line":80,"range":{"start_line":79,"start_character":0,"end_line":80,"end_character":44},"in_reply_to":"9a68dd71_a2c50f5c","updated":"2016-01-21 10:03:27.000000000","message":"Done","commit_id":"bb7545f21e9108c01ea84d645680e639afabc92c"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"2b262080a2f0940b15f457918ee07360488efc94","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                as set_bw_limit:"},{"line_number":94,"context_line":"            self.qos_driver.delete_bandwidth_limit(self.port)"},{"line_number":95,"context_line":"            delete_bw_limit.assert_called_once_with()"},{"line_number":96,"context_line":"            update_bw_limit.assert_not_called()"},{"line_number":97,"context_line":"            set_bw_limit.assert_not_called()"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a68dd71_4288d322","line":97,"range":{"start_line":96,"start_character":0,"end_line":97,"end_character":44},"updated":"2016-01-21 00:42:31.000000000","message":"ditto","commit_id":"bb7545f21e9108c01ea84d645680e639afabc92c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b40e7e6225a1d6df14a46d5cebc6a69a6cc33017","unresolved":false,"context_lines":[{"line_number":93,"context_line":"                as set_bw_limit:"},{"line_number":94,"context_line":"            self.qos_driver.delete_bandwidth_limit(self.port)"},{"line_number":95,"context_line":"            delete_bw_limit.assert_called_once_with()"},{"line_number":96,"context_line":"            update_bw_limit.assert_not_called()"},{"line_number":97,"context_line":"            set_bw_limit.assert_not_called()"}],"source_content_type":"text/x-python","patch_set":22,"id":"9a68dd71_0a042515","line":97,"range":{"start_line":96,"start_character":0,"end_line":97,"end_character":44},"in_reply_to":"9a68dd71_4288d322","updated":"2016-01-21 10:03:27.000000000","message":"Done","commit_id":"bb7545f21e9108c01ea84d645680e639afabc92c"}],"releasenotes/notes/QoS-for-linuxbridge-agent-bdb13515aac4e555.yaml":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"dcef5de29a1cf12ab60892d67224e7aaab908828","unresolved":false,"context_lines":[{"line_number":5,"context_line":"  - The LinuxBridge agent can now configure basic bandwidth limiting"},{"line_number":6,"context_line":"    QoS rules set for ports and networks."},{"line_number":7,"context_line":"fixes:"},{"line_number":8,"context_line":"  - closes bug 1500012"}],"source_content_type":"text/x-yaml","patch_set":26,"id":"bae84128_0a4d183e","line":8,"updated":"2016-02-22 13:29:50.000000000","message":"I think the \u0027fixes\u0027 section should be removed, why would we want to link to there? It does not give much of useful context to those reading the release note.","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"a2f20c0cf635f91480c54adbe68e368e590d4204","unresolved":false,"context_lines":[{"line_number":5,"context_line":"  - The LinuxBridge agent can now configure basic bandwidth limiting"},{"line_number":6,"context_line":"    QoS rules set for ports and networks."},{"line_number":7,"context_line":"fixes:"},{"line_number":8,"context_line":"  - closes bug 1500012"}],"source_content_type":"text/x-yaml","patch_set":26,"id":"bae84128_6447a277","line":8,"in_reply_to":"bae84128_0a4d183e","updated":"2016-02-22 22:13:31.000000000","message":"Done","commit_id":"82c7ac1623f534bd1f4cc387b6b9d31a80778f0a"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"2ad8d5510d21eaa5585a376c9e07d2b098350e52","unresolved":false,"context_lines":[{"line_number":3,"context_line":"    The LinuxBridge agent now supports QoS bandwidth limiting."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - The LinuxBridge agent can now configure basic bandwidth limiting"},{"line_number":6,"context_line":"    QoS rules set for ports and networks."}],"source_content_type":"text/x-yaml","patch_set":31,"id":"9aed3d3a_faffd7a7","line":6,"updated":"2016-02-28 10:14:31.000000000","message":"I suggest adding the configuration variables hers","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"93dac917f61a2457e96154dac097dcd5d8ebc67f","unresolved":false,"context_lines":[{"line_number":3,"context_line":"    The LinuxBridge agent now supports QoS bandwidth limiting."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - The LinuxBridge agent can now configure basic bandwidth limiting"},{"line_number":6,"context_line":"    QoS rules set for ports and networks."}],"source_content_type":"text/x-yaml","patch_set":31,"id":"9aed3d3a_9dd7a0be","line":6,"in_reply_to":"9aed3d3a_faffd7a7","updated":"2016-02-28 20:34:02.000000000","message":"Done","commit_id":"3c6d21910840ae696a46e5ea89240f9011939fc7"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - The LinuxBridge agent can now configure basic bandwidth limiting"},{"line_number":6,"context_line":"    QoS rules set for ports and networks."},{"line_number":7,"context_line":"    It introduce two new config options for LinuxBridge agent."},{"line_number":8,"context_line":"    First is \u0027kernel_hz\u0027 option which is value of host kernel HZ"},{"line_number":9,"context_line":"    setting. It is necessary for proper calculation of minimum burst"},{"line_number":10,"context_line":"    value in tbf qdisc setting."}],"source_content_type":"text/x-yaml","patch_set":32,"id":"9aed3d3a_30b8242a","line":7,"range":{"start_line":7,"start_character":7,"end_line":7,"end_character":16},"updated":"2016-02-29 12:07:54.000000000","message":"introduces","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - The LinuxBridge agent can now configure basic bandwidth limiting"},{"line_number":6,"context_line":"    QoS rules set for ports and networks."},{"line_number":7,"context_line":"    It introduce two new config options for LinuxBridge agent."},{"line_number":8,"context_line":"    First is \u0027kernel_hz\u0027 option which is value of host kernel HZ"},{"line_number":9,"context_line":"    setting. It is necessary for proper calculation of minimum burst"},{"line_number":10,"context_line":"    value in tbf qdisc setting."}],"source_content_type":"text/x-yaml","patch_set":32,"id":"9aed3d3a_5242ec68","line":7,"range":{"start_line":7,"start_character":7,"end_line":7,"end_character":16},"in_reply_to":"9aed3d3a_30b8242a","updated":"2016-02-29 21:40:19.000000000","message":"Done","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"68aaea995be6ad74d9dac58da0fe78cda985849d","unresolved":false,"context_lines":[{"line_number":5,"context_line":"  - The LinuxBridge agent can now configure basic bandwidth limiting"},{"line_number":6,"context_line":"    QoS rules set for ports and networks."},{"line_number":7,"context_line":"    It introduce two new config options for LinuxBridge agent."},{"line_number":8,"context_line":"    First is \u0027kernel_hz\u0027 option which is value of host kernel HZ"},{"line_number":9,"context_line":"    setting. It is necessary for proper calculation of minimum burst"},{"line_number":10,"context_line":"    value in tbf qdisc setting."},{"line_number":11,"context_line":"    Second is \u0027tbf_latency\u0027 which is value of latency to be configured"},{"line_number":12,"context_line":"    in tc-tbf setting. Details about this option can be found in tc-tbf"},{"line_number":13,"context_line":"    manual."}],"source_content_type":"text/x-yaml","patch_set":32,"id":"9aed3d3a_70d2ac5d","line":13,"range":{"start_line":8,"start_character":4,"end_line":13,"end_character":11},"updated":"2016-02-29 12:07:54.000000000","message":"A link to a document that would describe how to calculate the values properly would be of help to the audience of release notes (ops).","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"badbd396b2ad219f4e63325839f31375d2912633","unresolved":false,"context_lines":[{"line_number":5,"context_line":"  - The LinuxBridge agent can now configure basic bandwidth limiting"},{"line_number":6,"context_line":"    QoS rules set for ports and networks."},{"line_number":7,"context_line":"    It introduce two new config options for LinuxBridge agent."},{"line_number":8,"context_line":"    First is \u0027kernel_hz\u0027 option which is value of host kernel HZ"},{"line_number":9,"context_line":"    setting. It is necessary for proper calculation of minimum burst"},{"line_number":10,"context_line":"    value in tbf qdisc setting."},{"line_number":11,"context_line":"    Second is \u0027tbf_latency\u0027 which is value of latency to be configured"},{"line_number":12,"context_line":"    in tc-tbf setting. Details about this option can be found in tc-tbf"},{"line_number":13,"context_line":"    manual."}],"source_content_type":"text/x-yaml","patch_set":32,"id":"9aed3d3a_b27c18b6","line":13,"range":{"start_line":8,"start_character":4,"end_line":13,"end_character":11},"in_reply_to":"9aed3d3a_70d2ac5d","updated":"2016-02-29 21:40:19.000000000","message":"Done","commit_id":"5b582d16dc3cc94396317c437b5883f832350e77"}]}
