)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5c06b0383296a0509483bc5d6fd8b710e7575cde","unresolved":false,"context_lines":[{"line_number":13,"context_line":"This patch allows the user to select the way that the SR-IOV agent"},{"line_number":14,"context_line":"detects macvtap assigned vf."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"DocImpact"},{"line_number":17,"context_line":"Closes-Bug: #1523083"},{"line_number":18,"context_line":"Change-Id: Icbc8d6af5c00d1453095e04dd779210dc7244c7f"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a740942_8bc2d051","line":16,"updated":"2015-12-13 11:40:59.000000000","message":"Please add the config var here and explain.\n\nin addition to this can you please add a release note","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b7dac11b8a1940fc73861deb54dd9d8b5721e9e2","unresolved":false,"context_lines":[{"line_number":13,"context_line":"This patch allows the user to select the way that the SR-IOV agent"},{"line_number":14,"context_line":"detects macvtap assigned vf."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"DocImpact"},{"line_number":17,"context_line":"Closes-Bug: #1523083"},{"line_number":18,"context_line":"Change-Id: Icbc8d6af5c00d1453095e04dd779210dc7244c7f"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a740942_1c894826","line":16,"in_reply_to":"7a740942_8bc2d051","updated":"2015-12-13 16:43:35.000000000","message":"Done, but I am not sure I didn\u0027t the release note right...","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c2346410a14d3cc12edebd136a1d9dd923866b65","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Moshe Levi \u003cmoshele@mellanox.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-12-16 14:41:01 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"SR-IOV: Fix macvtap assigned vf check when kernel \u003c 3.13"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when creating macvtap passthrough to SR-IOV VF in Kernel \u003e\u003d 3.13 an"},{"line_number":10,"context_line":"upper_macvtap symbolic link is created. For Kernel \u003c 3.13 the only"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a7b0d38_e565e3b4","line":7,"range":{"start_line":7,"start_character":54,"end_line":7,"end_character":56},"updated":"2015-12-28 15:39:53.000000000","message":"You should define a sanity check associated to such feature to help deployers","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"fd400338e6ca41f671931ccf44dac96e24d752a5","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Moshe Levi \u003cmoshele@mellanox.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-12-16 14:41:01 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"SR-IOV: Fix macvtap assigned vf check when kernel \u003c 3.13"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when creating macvtap passthrough to SR-IOV VF in Kernel \u003e\u003d 3.13 an"},{"line_number":10,"context_line":"upper_macvtap symbolic link is created. For Kernel \u003c 3.13 the only"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa69d971_eb493eb8","line":7,"range":{"start_line":7,"start_character":54,"end_line":7,"end_character":56},"in_reply_to":"1a7b0d38_2b4730bd","updated":"2016-01-05 06:49:56.000000000","message":"Whether VF exists or not is controlled by a config option of sanity check [1], so I don\u0027t think it is a blocking issue.\n\nSome tests actually try to add devices in sanity checks [2].\nI think there is no problem to add macvtap interface to VF in a sanity check.\n\n[1] https://github.com/openstack/neutron/blob/master/neutron/cmd/sanity_check.py#L255\n[2] https://github.com/openstack/neutron/blob/master/neutron/cmd/sanity/checks.py#L47-L76","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"94c128160fc3391a2db35e1e077843f638551270","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Moshe Levi \u003cmoshele@mellanox.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-12-16 14:41:01 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"SR-IOV: Fix macvtap assigned vf check when kernel \u003c 3.13"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when creating macvtap passthrough to SR-IOV VF in Kernel \u003e\u003d 3.13 an"},{"line_number":10,"context_line":"upper_macvtap symbolic link is created. For Kernel \u003c 3.13 the only"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a7b0d38_2b4730bd","line":7,"range":{"start_line":7,"start_character":54,"end_line":7,"end_character":56},"in_reply_to":"1a7b0d38_e565e3b4","updated":"2015-12-29 06:14:40.000000000","message":"currently all the VF sanity checks are just parsing the output of the ip link help https://github.com/openstack/neutron/blob/master/neutron/cmd/sanity/checks.py#L147-L165\nthe reason it was done like that is because you don\u0027t know if VF exists or which one to use.\nso in this case I have the some problem, how can I add sanity checks to add macvtap interface to VF?\nDo you have a way of doing this?","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"40f6048b9918c1556322e0c1c064c1381f216fff","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Moshe Levi \u003cmoshele@mellanox.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-12-16 14:41:01 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"SR-IOV: Fix macvtap assigned vf check when kernel \u003c 3.13"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when creating macvtap passthrough to SR-IOV VF in Kernel \u003e\u003d 3.13 an"},{"line_number":10,"context_line":"upper_macvtap symbolic link is created. For Kernel \u003c 3.13 the only"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa69d971_82af077c","line":7,"range":{"start_line":7,"start_character":54,"end_line":7,"end_character":56},"in_reply_to":"fa69d971_66cd83b6","updated":"2016-01-06 10:33:53.000000000","message":"I opened a bug to handle the VF management checks \nhttps://bugs.launchpad.net/neutron/+bug/1531440","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"e74fc6d341638f5bd5e1bc8a433f45d37b8cf883","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Moshe Levi \u003cmoshele@mellanox.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-12-16 14:41:01 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"SR-IOV: Fix macvtap assigned vf check when kernel \u003c 3.13"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when creating macvtap passthrough to SR-IOV VF in Kernel \u003e\u003d 3.13 an"},{"line_number":10,"context_line":"upper_macvtap symbolic link is created. For Kernel \u003c 3.13 the only"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa69d971_66cd83b6","line":7,"range":{"start_line":7,"start_character":54,"end_line":7,"end_character":56},"in_reply_to":"fa69d971_eb493eb8","updated":"2016-01-05 07:04:59.000000000","message":"ok, so I guess I can refactor all the VF management checks\nin\nhttps://github.com/openstack/neutron/blob/master/neutron/cmd/sanity/checks.py#L147-L165\nto look for VF and to run some ip link commands instead of parsing the usage.\nI will do it in different patch. \n\nregrading this comment so it depend on the direction of this patch Ihar and Assaf don\u0027t like to keep the 2 implementations and using config file option.","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c2346410a14d3cc12edebd136a1d9dd923866b65","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when creating macvtap passthrough to SR-IOV VF in Kernel \u003e\u003d 3.13 an"},{"line_number":10,"context_line":"upper_macvtap symbolic link is created. For Kernel \u003c 3.13 the only"},{"line_number":11,"context_line":"why to know it is by parsing the ip link show output and look for"},{"line_number":12,"context_line":"macvtap[0-9]+@\u003cvf ifname\u003e."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This patch allows the user to select the way that the SR-IOV agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a7b0d38_4ade44de","line":11,"range":{"start_line":11,"start_character":0,"end_line":11,"end_character":3},"updated":"2015-12-28 15:39:53.000000000","message":"why \u003d\u003e way?","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"94c128160fc3391a2db35e1e077843f638551270","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"when creating macvtap passthrough to SR-IOV VF in Kernel \u003e\u003d 3.13 an"},{"line_number":10,"context_line":"upper_macvtap symbolic link is created. For Kernel \u003c 3.13 the only"},{"line_number":11,"context_line":"why to know it is by parsing the ip link show output and look for"},{"line_number":12,"context_line":"macvtap[0-9]+@\u003cvf ifname\u003e."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"This patch allows the user to select the way that the SR-IOV agent"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a7b0d38_c5b8e7ca","line":11,"range":{"start_line":11,"start_character":0,"end_line":11,"end_character":3},"in_reply_to":"1a7b0d38_4ade44de","updated":"2015-12-29 06:14:40.000000000","message":"Done","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"}],"neutron/plugins/ml2/drivers/mech_sriov/agent/common/config.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5c06b0383296a0509483bc5d6fd8b710e7575cde","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"Uses macvtap symbolic link to verify if vf is \""},{"line_number":88,"context_line":"                       \"assigned. In case False it use ip link show command \""},{"line_number":89,"context_line":"                       \"Support for kernels which don\u0027t create symbolic link \""},{"line_number":90,"context_line":"                       \"(e.g. RHEL 7.1) so long as use_macvtap_symbolic_link \""},{"line_number":91,"context_line":"                       \"is set to False.\")),"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_0b282032","line":88,"updated":"2015-12-13 11:40:59.000000000","message":"use \u003d\u003e uses the\n\nIn addition this has a missing full stop","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b7dac11b8a1940fc73861deb54dd9d8b5721e9e2","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"Uses macvtap symbolic link to verify if vf is \""},{"line_number":88,"context_line":"                       \"assigned. In case False it use ip link show command \""},{"line_number":89,"context_line":"                       \"Support for kernels which don\u0027t create symbolic link \""},{"line_number":90,"context_line":"                       \"(e.g. RHEL 7.1) so long as use_macvtap_symbolic_link \""},{"line_number":91,"context_line":"                       \"is set to False.\")),"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_eb6914f9","line":88,"in_reply_to":"7a740942_0b282032","updated":"2015-12-13 16:43:35.000000000","message":"Done","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5c06b0383296a0509483bc5d6fd8b710e7575cde","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                help\u003d_(\"Uses macvtap symbolic link to verify if vf is \""},{"line_number":88,"context_line":"                       \"assigned. In case False it use ip link show command \""},{"line_number":89,"context_line":"                       \"Support for kernels which don\u0027t create symbolic link \""},{"line_number":90,"context_line":"                       \"(e.g. RHEL 7.1) so long as use_macvtap_symbolic_link \""},{"line_number":91,"context_line":"                       \"is set to False.\")),"},{"line_number":92,"context_line":"]"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_8b1410e9","line":90,"updated":"2015-12-13 11:40:59.000000000","message":"this sentence does not make sense. Can you please rework it","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b7dac11b8a1940fc73861deb54dd9d8b5721e9e2","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                help\u003d_(\"Uses macvtap symbolic link to verify if vf is \""},{"line_number":88,"context_line":"                       \"assigned. In case False it use ip link show command \""},{"line_number":89,"context_line":"                       \"Support for kernels which don\u0027t create symbolic link \""},{"line_number":90,"context_line":"                       \"(e.g. RHEL 7.1) so long as use_macvtap_symbolic_link \""},{"line_number":91,"context_line":"                       \"is set to False.\")),"},{"line_number":92,"context_line":"]"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_0b6fc0fc","line":90,"in_reply_to":"7a740942_8b1410e9","updated":"2015-12-13 16:43:35.000000000","message":"Done","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":6681,"name":"Brent Eagles","email":"beagles@redhat.com","username":"beagles"},"change_message_id":"b0db8efd73be801ee35a7b198c86a81af4dc64ba","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. If set to False it is uses the ip link \""},{"line_number":89,"context_line":"                       \"show command. Setting to False enables support for \""},{"line_number":90,"context_line":"                       \"kernel which doesn\u0027t create symbolic link \""},{"line_number":91,"context_line":"                       \"(e.g. RHEL 7.1).\")),"},{"line_number":92,"context_line":"]"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"7a740942_efcb3570","line":90,"updated":"2015-12-14 16:11:11.000000000","message":"Maybe \"kernels which don\u0027t create symbolic links\"?\n\nIt might be more useful to specify the kernel version like you have in the comments in code, instead of, or in addition to a example distributions.","commit_id":"e864eac4294a91df9072149dd95a426825f3ed52"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"e5186d3ccd78be45898b05ac5b29c8843cc87cc8","unresolved":false,"context_lines":[{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. If set to False it is uses the ip link \""},{"line_number":89,"context_line":"                       \"show command. Setting to False enables support for \""},{"line_number":90,"context_line":"                       \"kernel which doesn\u0027t create symbolic link \""},{"line_number":91,"context_line":"                       \"(e.g. RHEL 7.1).\")),"},{"line_number":92,"context_line":"]"},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"7a740942_c1d88df1","line":90,"in_reply_to":"7a740942_efcb3570","updated":"2015-12-14 16:29:03.000000000","message":"Done","commit_id":"e864eac4294a91df9072149dd95a426825f3ed52"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c2346410a14d3cc12edebd136a1d9dd923866b65","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. If set to False it is uses the ip link \""},{"line_number":89,"context_line":"                       \"show command. Setting to False enables support for \""},{"line_number":90,"context_line":"                       \"kernel \u003c 3.13 which doesn\u0027t create symbolic links.\")),"},{"line_number":91,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_0afb5c48","line":88,"range":{"start_line":88,"start_character":43,"end_line":88,"end_character":45},"updated":"2015-12-28 15:39:53.000000000","message":"\"if set False then it uses ...\"","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"3fcad551070ab3ef3fa4ff988db67c287ca1df28","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. If set to False it is uses the ip link \""},{"line_number":89,"context_line":"                       \"show command. Setting to False enables support for \""},{"line_number":90,"context_line":"                       \"kernel \u003c 3.13 which doesn\u0027t create symbolic links.\")),"},{"line_number":91,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_d1c49b93","line":88,"updated":"2015-12-23 11:55:28.000000000","message":"I am not sure about the amount of details here. But that is harmless. Just if I was an admin and I saw this I would not really understand what to do. The kernel part sounds good","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"94c128160fc3391a2db35e1e077843f638551270","unresolved":false,"context_lines":[{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. If set to False it is uses the ip link \""},{"line_number":89,"context_line":"                       \"show command. Setting to False enables support for \""},{"line_number":90,"context_line":"                       \"kernel \u003c 3.13 which doesn\u0027t create symbolic links.\")),"},{"line_number":91,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_05c34f39","line":88,"range":{"start_line":88,"start_character":43,"end_line":88,"end_character":45},"in_reply_to":"1a7b0d38_0afb5c48","updated":"2015-12-29 06:14:40.000000000","message":"Done","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"038861befbff1c4699d700b491119c37d8dedb4c","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                       \"network_device. The network_device in the mapping \""},{"line_number":83,"context_line":"                       \"should appear in the physical_device_mappings \""},{"line_number":84,"context_line":"                       \"list.\")),"},{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. if set False then it uses the ip link \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_ff035940","line":85,"updated":"2016-01-04 16:20:34.000000000","message":"Instead of two implementations, why not having the same code for both types of kernels? Why do we need another config knob here? Are we afraid of calling a command and parsing its output? Saving cycles here?","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a909ce24c67f2bb47fbad48728f53808c9624f09","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                       \"network_device. The network_device in the mapping \""},{"line_number":83,"context_line":"                       \"should appear in the physical_device_mappings \""},{"line_number":84,"context_line":"                       \"list.\")),"},{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. if set False then it uses the ip link \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_b97632a2","line":85,"in_reply_to":"fa69d971_1202bbb4","updated":"2016-01-05 13:27:23.000000000","message":"For the least, the default value should work in all setups. Meaning, parsing ip output. Once we drop support for old kernels, we could switch the default and eventually retire the option.\n\nThough I don\u0027t believe we should not complicate the code with alternatives that don\u0027t buy us much except elegance.","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"84b5de4118f4a457ac7e112d1542917854175645","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                       \"network_device. The network_device in the mapping \""},{"line_number":83,"context_line":"                       \"should appear in the physical_device_mappings \""},{"line_number":84,"context_line":"                       \"list.\")),"},{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. if set False then it uses the ip link \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_1202bbb4","line":85,"in_reply_to":"fa69d971_4f708c0b","updated":"2016-01-05 11:35:44.000000000","message":"ok, I will remove the config option and so we will have only one way of implementation","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"fded94c9ae095ab1fc46ac92fd603486e0885833","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                       \"network_device. The network_device in the mapping \""},{"line_number":83,"context_line":"                       \"should appear in the physical_device_mappings \""},{"line_number":84,"context_line":"                       \"list.\")),"},{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. if set False then it uses the ip link \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_4f708c0b","line":85,"in_reply_to":"fa69d971_50e599d9","updated":"2016-01-05 11:24:56.000000000","message":"Is there any difference other than \"less error prone\"?\nIf we can achieve the same level of accuracy and the way of \"ip link show\" has no big overhead (I don\u0027t think so), using a single way seems to make a thing simple.","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"83e78fca56e360dedee1a656486c48bc8b10c6ff","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                       \"network_device. The network_device in the mapping \""},{"line_number":83,"context_line":"                       \"should appear in the physical_device_mappings \""},{"line_number":84,"context_line":"                       \"list.\")),"},{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. if set False then it uses the ip link \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_ec1efc6e","line":85,"in_reply_to":"fa69d971_b97632a2","updated":"2016-01-06 10:33:07.000000000","message":"Done","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"eac2e75cbd6362712c3c6f000f144ef49a732ff8","unresolved":false,"context_lines":[{"line_number":82,"context_line":"                       \"network_device. The network_device in the mapping \""},{"line_number":83,"context_line":"                       \"should appear in the physical_device_mappings \""},{"line_number":84,"context_line":"                       \"list.\")),"},{"line_number":85,"context_line":"    cfg.BoolOpt(\u0027use_macvtap_symbolic_link\u0027,"},{"line_number":86,"context_line":"                default\u003dTrue,"},{"line_number":87,"context_line":"                help\u003d_(\"By default uses macvtap symbolic link to verify vf \""},{"line_number":88,"context_line":"                       \"assignment. if set False then it uses the ip link \""}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_50e599d9","line":85,"in_reply_to":"fa69d971_ff035940","updated":"2016-01-05 05:57:29.000000000","message":"I got the same comment from Assaf and my answer was \nIMO checking file/symbolic link existing is more elegant and less error prone then relaying on output of a command.\nI can change it to one implementation if you fill that adding config option is to much.","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"}],"neutron/plugins/ml2/drivers/mech_sriov/agent/common/exceptions.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5c06b0383296a0509483bc5d6fd8b710e7575cde","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class IpCommandDeviceError(SriovNicError):"},{"line_number":41,"context_line":"    message \u003d _(\"ip command failed on device %s: %(reason)s\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_ebd91457","line":41,"updated":"2015-12-13 11:40:59.000000000","message":"this should be %(device)s and then when you call the execption it should be:\nIpCommandDeviceError(dev_name\u003d\u0027foo\u0027, reason\u003d\u0027bar\u0027)","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b7dac11b8a1940fc73861deb54dd9d8b5721e9e2","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class IpCommandDeviceError(SriovNicError):"},{"line_number":41,"context_line":"    message \u003d _(\"ip command failed on device %s: %(reason)s\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_0b0ee08b","line":41,"in_reply_to":"7a740942_ebd91457","updated":"2015-12-13 16:43:35.000000000","message":"Done","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"}],"neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5c06b0383296a0509483bc5d6fd8b710e7575cde","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        # Note(moshele) kernel \u003c 3.13 doesn\u0027t create symbolic link"},{"line_number":89,"context_line":"        # for macvtap interface. Therefore we provide a way to workaround it"},{"line_number":90,"context_line":"        # by parsing ip link show and check if macvtap interface exist"},{"line_number":91,"context_line":"        if cfg.CONF.SRIOV_NIC.use_macvtap_symbolic_link:"},{"line_number":92,"context_line":"            upper_macvtap_path \u003d os.path.join(path, \"*\", cls.MAC_VTAP_PREFIX)"},{"line_number":93,"context_line":"            return bool(glob.glob(upper_macvtap_path))"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_cbe53809","line":90,"updated":"2015-12-13 11:40:59.000000000","message":"check \u003d\u003e checking","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b7dac11b8a1940fc73861deb54dd9d8b5721e9e2","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        # Note(moshele) kernel \u003c 3.13 doesn\u0027t create symbolic link"},{"line_number":89,"context_line":"        # for macvtap interface. Therefore we provide a way to workaround it"},{"line_number":90,"context_line":"        # by parsing ip link show and check if macvtap interface exist"},{"line_number":91,"context_line":"        if cfg.CONF.SRIOV_NIC.use_macvtap_symbolic_link:"},{"line_number":92,"context_line":"            upper_macvtap_path \u003d os.path.join(path, \"*\", cls.MAC_VTAP_PREFIX)"},{"line_number":93,"context_line":"            return bool(glob.glob(upper_macvtap_path))"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_6b1d24bd","line":90,"in_reply_to":"7a740942_cbe53809","updated":"2015-12-13 16:43:35.000000000","message":"Done","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a909ce24c67f2bb47fbad48728f53808c9624f09","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        # Note(moshele) kernel \u003c 3.13 doesn\u0027t create symbolic link"},{"line_number":89,"context_line":"        # for macvtap interface. Therefore we provide a way to workaround it"},{"line_number":90,"context_line":"        # by parsing ip link show and checking if macvtap interface exist"},{"line_number":91,"context_line":"        if cfg.CONF.SRIOV_NIC.use_macvtap_symbolic_link:"},{"line_number":92,"context_line":"            upper_macvtap_path \u003d os.path.join(path, \"*\", cls.MAC_VTAP_PREFIX)"},{"line_number":93,"context_line":"            return bool(glob.glob(upper_macvtap_path))"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_f9efcae6","line":90,"updated":"2016-01-05 13:27:23.000000000","message":"nit: exists","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"83e78fca56e360dedee1a656486c48bc8b10c6ff","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        # Note(moshele) kernel \u003c 3.13 doesn\u0027t create symbolic link"},{"line_number":89,"context_line":"        # for macvtap interface. Therefore we provide a way to workaround it"},{"line_number":90,"context_line":"        # by parsing ip link show and checking if macvtap interface exist"},{"line_number":91,"context_line":"        if cfg.CONF.SRIOV_NIC.use_macvtap_symbolic_link:"},{"line_number":92,"context_line":"            upper_macvtap_path \u003d os.path.join(path, \"*\", cls.MAC_VTAP_PREFIX)"},{"line_number":93,"context_line":"            return bool(glob.glob(upper_macvtap_path))"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_3f175849","line":90,"in_reply_to":"fa69d971_f9efcae6","updated":"2016-01-06 10:33:07.000000000","message":"Done","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a909ce24c67f2bb47fbad48728f53808c9624f09","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            return bool(glob.glob(upper_macvtap_path))"},{"line_number":94,"context_line":"        else:"},{"line_number":95,"context_line":"            ifname \u003d os.listdir(path)"},{"line_number":96,"context_line":"            if len(ifname) \u003d\u003d 1:"},{"line_number":97,"context_line":"                ifname \u003d ifname[0]"},{"line_number":98,"context_line":"                return pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname)"},{"line_number":99,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_39232258","line":96,"updated":"2016-01-05 13:27:23.000000000","message":"So it\u0027s a directory with a single element? Are there any chances it will have multiple entries in some scenarios?","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"83e78fca56e360dedee1a656486c48bc8b10c6ff","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            return bool(glob.glob(upper_macvtap_path))"},{"line_number":94,"context_line":"        else:"},{"line_number":95,"context_line":"            ifname \u003d os.listdir(path)"},{"line_number":96,"context_line":"            if len(ifname) \u003d\u003d 1:"},{"line_number":97,"context_line":"                ifname \u003d ifname[0]"},{"line_number":98,"context_line":"                return pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname)"},{"line_number":99,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_ff76a004","line":96,"in_reply_to":"fa69d971_39232258","updated":"2016-01-06 10:33:07.000000000","message":"I checked it with the driver team, and it and it can be,\nI will update the code to check for multi interfaces","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f30299e9f132bb43ac61d7392ea1a47f9732546e","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        # Note(moshele) kernel \u003c 3.13 doesn\u0027t create symbolic link"},{"line_number":85,"context_line":"        # for macvtap interface. Therefore we workaround it"},{"line_number":86,"context_line":"        # by parsing ip link show and checking if macvtap interface exists"},{"line_number":87,"context_line":"        ifname_list \u003d os.listdir(path)"},{"line_number":88,"context_line":"        for ifname in ifname_list:"},{"line_number":89,"context_line":"            if pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname):"},{"line_number":90,"context_line":"                return True"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa69d971_7d24f8c3","line":87,"updated":"2016-01-06 11:04:59.000000000","message":"Should we catch OSError here in case path just disappeared?","commit_id":"22c16f4077b6590fe65287336855aa7f7abda8b5"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"066604e5302916506d834b2b3f908f5f92079090","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        # Note(moshele) kernel \u003c 3.13 doesn\u0027t create symbolic link"},{"line_number":85,"context_line":"        # for macvtap interface. Therefore we workaround it"},{"line_number":86,"context_line":"        # by parsing ip link show and checking if macvtap interface exists"},{"line_number":87,"context_line":"        ifname_list \u003d os.listdir(path)"},{"line_number":88,"context_line":"        for ifname in ifname_list:"},{"line_number":89,"context_line":"            if pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname):"},{"line_number":90,"context_line":"                return True"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa69d971_38444eb5","line":87,"in_reply_to":"fa69d971_7d24f8c3","updated":"2016-01-06 12:07:06.000000000","message":"Done","commit_id":"22c16f4077b6590fe65287336855aa7f7abda8b5"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"087d5230388440b654ed1ae757935261f6b8ae62","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            for ifname in ifname_list:"},{"line_number":90,"context_line":"                if pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname):"},{"line_number":91,"context_line":"                    return True"},{"line_number":92,"context_line":"        except OSError:"},{"line_number":93,"context_line":"            pass"},{"line_number":94,"context_line":"        return False"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"fa69d971_4e62980b","line":92,"updated":"2016-01-06 12:23:05.000000000","message":"If path is not there, don\u0027t we return True as in line 82?","commit_id":"a104f94ede7263128e46006c17cbebe1545a5f84"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"2964e414bf2741e2fd1ae20cd00423ce0f4b447c","unresolved":false,"context_lines":[{"line_number":89,"context_line":"            for ifname in ifname_list:"},{"line_number":90,"context_line":"                if pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname):"},{"line_number":91,"context_line":"                    return True"},{"line_number":92,"context_line":"        except OSError:"},{"line_number":93,"context_line":"            pass"},{"line_number":94,"context_line":"        return False"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"fa69d971_d31ab0c5","line":92,"in_reply_to":"fa69d971_4e62980b","updated":"2016-01-06 13:01:33.000000000","message":"yes you are right","commit_id":"a104f94ede7263128e46006c17cbebe1545a5f84"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"1c2aaaee26fa3803f21feb15b86e222b5366bf65","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        @param vf_index: vf index"},{"line_number":79,"context_line":"        \"\"\""},{"line_number":80,"context_line":"        path \u003d cls.PCI_PATH % (dev_name, vf_index)"},{"line_number":81,"context_line":"        if not os.path.isdir(path):"},{"line_number":82,"context_line":"            return True"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        # Note(moshele) kernel \u003c 3.13 doesn\u0027t create symbolic link"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_1fd049c8","line":81,"updated":"2016-01-06 14:33:59.000000000","message":"BTW lines 81-82 could be removed now.","commit_id":"09f3ae7b6fb4a8d456dd53fb419fca14a8595514"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"331baad40740eddc84618c8f6ca67991d7c3b8fb","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        @param vf_index: vf index"},{"line_number":79,"context_line":"        \"\"\""},{"line_number":80,"context_line":"        path \u003d cls.PCI_PATH % (dev_name, vf_index)"},{"line_number":81,"context_line":"        if not os.path.isdir(path):"},{"line_number":82,"context_line":"            return True"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        # Note(moshele) kernel \u003c 3.13 doesn\u0027t create symbolic link"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_455cae7c","line":81,"in_reply_to":"fa69d971_1fd049c8","updated":"2016-01-06 15:45:47.000000000","message":"Done","commit_id":"09f3ae7b6fb4a8d456dd53fb419fca14a8595514"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"40b4b88c36ed4c9edb4bcd753b81522c83585aee","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        # for macvtap interface. Therefore we workaround it"},{"line_number":86,"context_line":"        # by parsing ip link show and checking if macvtap interface exists"},{"line_number":87,"context_line":"        try:"},{"line_number":88,"context_line":"            ifname_list \u003d os.listdir(path)"},{"line_number":89,"context_line":"            for ifname in ifname_list:"},{"line_number":90,"context_line":"                if pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname):"},{"line_number":91,"context_line":"                    return True"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_d352b034","line":88,"updated":"2016-01-06 13:04:58.000000000","message":"We probably could isolate the exception handler to just listdir() call, but it does not seem critical.","commit_id":"09f3ae7b6fb4a8d456dd53fb419fca14a8595514"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"49755e39f7cea2abefe6847ca705d6723923c5ec","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                if pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname):"},{"line_number":91,"context_line":"                    return True"},{"line_number":92,"context_line":"        except OSError:"},{"line_number":93,"context_line":"            return True"},{"line_number":94,"context_line":"        return False"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_ff3f75b1","line":93,"updated":"2016-01-06 14:23:15.000000000","message":"\u0027return True\u0027 looks correct according to the comment in patch set 9, but it is worth adding some comment here.","commit_id":"09f3ae7b6fb4a8d456dd53fb419fca14a8595514"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"331baad40740eddc84618c8f6ca67991d7c3b8fb","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                if pci_lib.PciDeviceIPWrapper.is_macvtap_assigned(ifname):"},{"line_number":91,"context_line":"                    return True"},{"line_number":92,"context_line":"        except OSError:"},{"line_number":93,"context_line":"            return True"},{"line_number":94,"context_line":"        return False"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_0553166c","line":93,"in_reply_to":"fa69d971_ff3f75b1","updated":"2016-01-06 15:45:47.000000000","message":"Done","commit_id":"09f3ae7b6fb4a8d456dd53fb419fca14a8595514"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"e5e71c62218457ac242d7ba151985651d6e07500","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        by checking the relevant path in the system:"},{"line_number":74,"context_line":"        VF is assigned if:"},{"line_number":75,"context_line":"            Direct VF: PCI_PATH does not exist."},{"line_number":76,"context_line":"            Macvtap VF: macvtap@\u003cvf inteface\u003e interface exists in ip link show"},{"line_number":77,"context_line":"        @param dev_name: pf network device name"},{"line_number":78,"context_line":"        @param vf_index: vf index"},{"line_number":79,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":11,"id":"fa69d971_9085035b","line":76,"updated":"2016-01-06 16:30:47.000000000","message":"AH THE TYPO should be vf_interface","commit_id":"b79980085ad64fc5c1c216b4f253fd6717f001c4"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"366bddaf3e8beed42febddbae901affc289f2eb8","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        by checking the relevant path in the system:"},{"line_number":74,"context_line":"        VF is assigned if:"},{"line_number":75,"context_line":"            Direct VF: PCI_PATH does not exist."},{"line_number":76,"context_line":"            Macvtap VF: macvtap@\u003cvf inteface\u003e interface exists in ip link show"},{"line_number":77,"context_line":"        @param dev_name: pf network device name"},{"line_number":78,"context_line":"        @param vf_index: vf index"},{"line_number":79,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":11,"id":"fa69d971_2792bbf6","line":76,"in_reply_to":"fa69d971_9085035b","updated":"2016-01-07 08:38:51.000000000","message":"Done","commit_id":"b79980085ad64fc5c1c216b4f253fd6717f001c4"}],"neutron/plugins/ml2/drivers/mech_sriov/agent/pci_lib.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5c06b0383296a0509483bc5d6fd8b710e7575cde","unresolved":false,"context_lines":[{"line_number":71,"context_line":"                    dev_name\u003dself.dev_name)"},{"line_number":72,"context_line":"            else:"},{"line_number":73,"context_line":"                raise exc.IpCommandDeviceError(dev_name\u003dself.dev_name,"},{"line_number":74,"context_line":"                                         reason\u003dstr(e))"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def get_assigned_macs(self, vf_list):"},{"line_number":77,"context_line":"        \"\"\"Get assigned mac addresses for vf list."}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_ebb034ff","line":74,"updated":"2015-12-13 11:40:59.000000000","message":"indentation is dodgy","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b7dac11b8a1940fc73861deb54dd9d8b5721e9e2","unresolved":false,"context_lines":[{"line_number":71,"context_line":"                    dev_name\u003dself.dev_name)"},{"line_number":72,"context_line":"            else:"},{"line_number":73,"context_line":"                raise exc.IpCommandDeviceError(dev_name\u003dself.dev_name,"},{"line_number":74,"context_line":"                                         reason\u003dstr(e))"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def get_assigned_macs(self, vf_list):"},{"line_number":77,"context_line":"        \"\"\"Get assigned mac addresses for vf list."}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_0b8580cd","line":74,"in_reply_to":"7a740942_ebb034ff","updated":"2015-12-13 16:43:35.000000000","message":"Done","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5c06b0383296a0509483bc5d6fd8b710e7575cde","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            out \u003d self._as_root([], \"link\", (\"show\", self.dev_name))"},{"line_number":84,"context_line":"        except Exception as e:"},{"line_number":85,"context_line":"            LOG.exception(_LE(\"Failed executing ip command\"))"},{"line_number":86,"context_line":"            raise exc.IpCommandDeviceError(dev_name\u003dself.dev_name,"},{"line_number":87,"context_line":"                                     reason\u003de)"},{"line_number":88,"context_line":"        vf_to_mac_mapping \u003d {}"},{"line_number":89,"context_line":"        vf_lines \u003d self._get_vf_link_show(vf_list, out)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_0bb6e0f8","line":86,"updated":"2015-12-13 11:40:59.000000000","message":"ditto","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b7dac11b8a1940fc73861deb54dd9d8b5721e9e2","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            out \u003d self._as_root([], \"link\", (\"show\", self.dev_name))"},{"line_number":84,"context_line":"        except Exception as e:"},{"line_number":85,"context_line":"            LOG.exception(_LE(\"Failed executing ip command\"))"},{"line_number":86,"context_line":"            raise exc.IpCommandDeviceError(dev_name\u003dself.dev_name,"},{"line_number":87,"context_line":"                                     reason\u003de)"},{"line_number":88,"context_line":"        vf_to_mac_mapping \u003d {}"},{"line_number":89,"context_line":"        vf_lines \u003d self._get_vf_link_show(vf_list, out)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_4b7f08e0","line":86,"in_reply_to":"7a740942_0bb6e0f8","updated":"2015-12-13 16:43:35.000000000","message":"Done","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"5c06b0383296a0509483bc5d6fd8b710e7575cde","unresolved":false,"context_lines":[{"line_number":106,"context_line":"            out \u003d self._as_root([], \"link\", (\"show\", self.dev_name))"},{"line_number":107,"context_line":"        except Exception as e:"},{"line_number":108,"context_line":"            LOG.exception(_LE(\"Failed executing ip command\"))"},{"line_number":109,"context_line":"            raise exc.IpCommandDeviceError(dev_name\u003dself.dev_name,"},{"line_number":110,"context_line":"                                     reason\u003de)"},{"line_number":111,"context_line":"        vf_lines \u003d self._get_vf_link_show([vf_index], out)"},{"line_number":112,"context_line":"        if vf_lines:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_abcf8c7d","line":109,"updated":"2015-12-13 11:40:59.000000000","message":"ditto","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"b7dac11b8a1940fc73861deb54dd9d8b5721e9e2","unresolved":false,"context_lines":[{"line_number":106,"context_line":"            out \u003d self._as_root([], \"link\", (\"show\", self.dev_name))"},{"line_number":107,"context_line":"        except Exception as e:"},{"line_number":108,"context_line":"            LOG.exception(_LE(\"Failed executing ip command\"))"},{"line_number":109,"context_line":"            raise exc.IpCommandDeviceError(dev_name\u003dself.dev_name,"},{"line_number":110,"context_line":"                                     reason\u003de)"},{"line_number":111,"context_line":"        vf_lines \u003d self._get_vf_link_show([vf_index], out)"},{"line_number":112,"context_line":"        if vf_lines:"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_ab6eac2c","line":109,"in_reply_to":"7a740942_abcf8c7d","updated":"2015-12-13 16:43:35.000000000","message":"Done","commit_id":"ae3200f2c2ce97a620aa635ffde68153ed170d5b"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c2346410a14d3cc12edebd136a1d9dd923866b65","unresolved":false,"context_lines":[{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    @classmethod"},{"line_number":188,"context_line":"    def is_macvtap_assigned(cls, ifname):"},{"line_number":189,"context_line":"        \"\"\"Parses ip link show command output line."},{"line_number":190,"context_line":"        @return: list of the vf indexs which attached to"},{"line_number":191,"context_line":"        macvtap interface"},{"line_number":192,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_e506431c","line":189,"range":{"start_line":189,"start_character":21,"end_line":189,"end_character":25},"updated":"2015-12-28 15:39:53.000000000","message":"Invalid docstring,it should have an empty line after the docstring title\n\nThe docstring title doesn\u0027t help","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"94c128160fc3391a2db35e1e077843f638551270","unresolved":false,"context_lines":[{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    @classmethod"},{"line_number":188,"context_line":"    def is_macvtap_assigned(cls, ifname):"},{"line_number":189,"context_line":"        \"\"\"Parses ip link show command output line."},{"line_number":190,"context_line":"        @return: list of the vf indexs which attached to"},{"line_number":191,"context_line":"        macvtap interface"},{"line_number":192,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_458cf7d9","line":189,"range":{"start_line":189,"start_character":21,"end_line":189,"end_character":25},"in_reply_to":"1a7b0d38_e506431c","updated":"2015-12-29 06:14:40.000000000","message":"Done","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c2346410a14d3cc12edebd136a1d9dd923866b65","unresolved":false,"context_lines":[{"line_number":187,"context_line":"    @classmethod"},{"line_number":188,"context_line":"    def is_macvtap_assigned(cls, ifname):"},{"line_number":189,"context_line":"        \"\"\"Parses ip link show command output line."},{"line_number":190,"context_line":"        @return: list of the vf indexs which attached to"},{"line_number":191,"context_line":"        macvtap interface"},{"line_number":192,"context_line":"        \"\"\""},{"line_number":193,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_05610fd3","line":190,"range":{"start_line":190,"start_character":32,"end_line":190,"end_character":38},"updated":"2015-12-28 15:39:53.000000000","message":"Incorrect detail, this method returns true/false, not vf index list","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"94c128160fc3391a2db35e1e077843f638551270","unresolved":false,"context_lines":[{"line_number":187,"context_line":"    @classmethod"},{"line_number":188,"context_line":"    def is_macvtap_assigned(cls, ifname):"},{"line_number":189,"context_line":"        \"\"\"Parses ip link show command output line."},{"line_number":190,"context_line":"        @return: list of the vf indexs which attached to"},{"line_number":191,"context_line":"        macvtap interface"},{"line_number":192,"context_line":"        \"\"\""},{"line_number":193,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_6589f3c8","line":190,"range":{"start_line":190,"start_character":32,"end_line":190,"end_character":38},"in_reply_to":"1a7b0d38_05610fd3","updated":"2015-12-29 06:14:40.000000000","message":"Done","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c2346410a14d3cc12edebd136a1d9dd923866b65","unresolved":false,"context_lines":[{"line_number":196,"context_line":"            LOG.exception(_LE(\"Failed executing ip command\"))"},{"line_number":197,"context_line":"            raise exc.IpCommandError(reason\u003de)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        for line in out.split(\"\\n\"):"},{"line_number":200,"context_line":"            pattern_match \u003d cls.MACVTAP_REG_EX.match(line)"},{"line_number":201,"context_line":"            if pattern_match:"},{"line_number":202,"context_line":"                if ifname \u003d\u003d pattern_match.group(\u0027vf_interface\u0027):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_4ab3a498","line":199,"range":{"start_line":199,"start_character":24,"end_line":199,"end_character":29},"updated":"2015-12-28 15:39:53.000000000","message":"prefer:\n\n for line in out.splitlines()","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"94c128160fc3391a2db35e1e077843f638551270","unresolved":false,"context_lines":[{"line_number":196,"context_line":"            LOG.exception(_LE(\"Failed executing ip command\"))"},{"line_number":197,"context_line":"            raise exc.IpCommandError(reason\u003de)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        for line in out.split(\"\\n\"):"},{"line_number":200,"context_line":"            pattern_match \u003d cls.MACVTAP_REG_EX.match(line)"},{"line_number":201,"context_line":"            if pattern_match:"},{"line_number":202,"context_line":"                if ifname \u003d\u003d pattern_match.group(\u0027vf_interface\u0027):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_85b41f82","line":199,"range":{"start_line":199,"start_character":24,"end_line":199,"end_character":29},"in_reply_to":"1a7b0d38_4ab3a498","updated":"2015-12-29 06:14:40.000000000","message":"Done","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c2346410a14d3cc12edebd136a1d9dd923866b65","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        for line in out.split(\"\\n\"):"},{"line_number":200,"context_line":"            pattern_match \u003d cls.MACVTAP_REG_EX.match(line)"},{"line_number":201,"context_line":"            if pattern_match:"},{"line_number":202,"context_line":"                if ifname \u003d\u003d pattern_match.group(\u0027vf_interface\u0027):"},{"line_number":203,"context_line":"                    return True"},{"line_number":204,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_ca1a347d","line":202,"range":{"start_line":202,"start_character":26,"end_line":202,"end_character":28},"updated":"2015-12-28 15:39:53.000000000","message":"IMO, you should integrate the ifname in the regex to speed up things","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"94c128160fc3391a2db35e1e077843f638551270","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        for line in out.split(\"\\n\"):"},{"line_number":200,"context_line":"            pattern_match \u003d cls.MACVTAP_REG_EX.match(line)"},{"line_number":201,"context_line":"            if pattern_match:"},{"line_number":202,"context_line":"                if ifname \u003d\u003d pattern_match.group(\u0027vf_interface\u0027):"},{"line_number":203,"context_line":"                    return True"},{"line_number":204,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a7b0d38_2b1e50bb","line":202,"range":{"start_line":202,"start_character":26,"end_line":202,"end_character":28},"in_reply_to":"1a7b0d38_ca1a347d","updated":"2015-12-29 06:14:40.000000000","message":"I don\u0027t mind doing that change, but I am not sure it will speed thing up, because in your case I will need to compile the regex for every call. \nwhat do you think?","commit_id":"d53c1747a27b0a48b83f29caa85deef79a33deaf"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"fded94c9ae095ab1fc46ac92fd603486e0885833","unresolved":false,"context_lines":[{"line_number":188,"context_line":"    def is_macvtap_assigned(cls, ifname):"},{"line_number":189,"context_line":"        \"\"\"Check if vf has macvtap interface assigned"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"        Prasing the ip link show command and checking"},{"line_number":192,"context_line":"        if macvtap[0-9]+@\u003cvf interface\u003e regex match the"},{"line_number":193,"context_line":"        output."},{"line_number":194,"context_line":"        @param ifname: vf interface name"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_ab6a66ec","line":191,"range":{"start_line":191,"start_character":8,"end_line":191,"end_character":15},"updated":"2016-01-05 11:24:56.000000000","message":"-\u003e Parses the output of ip link show command and checks","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"83e78fca56e360dedee1a656486c48bc8b10c6ff","unresolved":false,"context_lines":[{"line_number":188,"context_line":"    def is_macvtap_assigned(cls, ifname):"},{"line_number":189,"context_line":"        \"\"\"Check if vf has macvtap interface assigned"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"        Prasing the ip link show command and checking"},{"line_number":192,"context_line":"        if macvtap[0-9]+@\u003cvf interface\u003e regex match the"},{"line_number":193,"context_line":"        output."},{"line_number":194,"context_line":"        @param ifname: vf interface name"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_ff8f8072","line":191,"range":{"start_line":191,"start_character":8,"end_line":191,"end_character":15},"in_reply_to":"fa69d971_ab6a66ec","updated":"2016-01-06 10:33:07.000000000","message":"Done","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a909ce24c67f2bb47fbad48728f53808c9624f09","unresolved":false,"context_lines":[{"line_number":189,"context_line":"        \"\"\"Check if vf has macvtap interface assigned"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"        Prasing the ip link show command and checking"},{"line_number":192,"context_line":"        if macvtap[0-9]+@\u003cvf interface\u003e regex match the"},{"line_number":193,"context_line":"        output."},{"line_number":194,"context_line":"        @param ifname: vf interface name"},{"line_number":195,"context_line":"        @return: True on match otherwise False"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_39ea42dc","line":192,"updated":"2016-01-05 13:27:23.000000000","message":"nit: matches","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"83e78fca56e360dedee1a656486c48bc8b10c6ff","unresolved":false,"context_lines":[{"line_number":189,"context_line":"        \"\"\"Check if vf has macvtap interface assigned"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"        Prasing the ip link show command and checking"},{"line_number":192,"context_line":"        if macvtap[0-9]+@\u003cvf interface\u003e regex match the"},{"line_number":193,"context_line":"        output."},{"line_number":194,"context_line":"        @param ifname: vf interface name"},{"line_number":195,"context_line":"        @return: True on match otherwise False"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_dfef1c1c","line":192,"in_reply_to":"fa69d971_39ea42dc","updated":"2016-01-06 10:33:07.000000000","message":"Done","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"fded94c9ae095ab1fc46ac92fd603486e0885833","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        try:"},{"line_number":198,"context_line":"            out \u003d cls._execute([], \"link\", (\"show\", ), run_as_root\u003dTrue)"},{"line_number":199,"context_line":"        except Exception as e:"},{"line_number":200,"context_line":"            LOG.exception(_LE(\"Failed executing ip command\"))"},{"line_number":201,"context_line":"            raise exc.IpCommandError(reason\u003de)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        for line in out.splitlines():"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_4b42ca69","line":200,"range":{"start_line":200,"start_character":12,"end_line":200,"end_character":25},"updated":"2016-01-05 11:24:56.000000000","message":"Is a traceback useful? I think LOG.error is sufficient.","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"83e78fca56e360dedee1a656486c48bc8b10c6ff","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        try:"},{"line_number":198,"context_line":"            out \u003d cls._execute([], \"link\", (\"show\", ), run_as_root\u003dTrue)"},{"line_number":199,"context_line":"        except Exception as e:"},{"line_number":200,"context_line":"            LOG.exception(_LE(\"Failed executing ip command\"))"},{"line_number":201,"context_line":"            raise exc.IpCommandError(reason\u003de)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        for line in out.splitlines():"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa69d971_1fe2942f","line":200,"range":{"start_line":200,"start_character":12,"end_line":200,"end_character":25},"in_reply_to":"fa69d971_4b42ca69","updated":"2016-01-06 10:33:07.000000000","message":"Done","commit_id":"f286a72c46fbfdd0e71ee72ef8ec50b565177fca"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"49755e39f7cea2abefe6847ca705d6723923c5ec","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        try:"},{"line_number":198,"context_line":"            out \u003d cls._execute([], \"link\", (\"show\", ), run_as_root\u003dTrue)"},{"line_number":199,"context_line":"        except Exception as e:"},{"line_number":200,"context_line":"            LOG.error(_LE(\"Failed executing ip command\"))"},{"line_number":201,"context_line":"            raise exc.IpCommandError(reason\u003de)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        for line in out.splitlines():"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_3f7e6d6a","line":200,"updated":"2016-01-06 14:23:15.000000000","message":"It is better to include the exception message in the log.\n\n  LOG.error(_LE(\"Failed executing ip command: %s\"), e)","commit_id":"09f3ae7b6fb4a8d456dd53fb419fca14a8595514"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"331baad40740eddc84618c8f6ca67991d7c3b8fb","unresolved":false,"context_lines":[{"line_number":197,"context_line":"        try:"},{"line_number":198,"context_line":"            out \u003d cls._execute([], \"link\", (\"show\", ), run_as_root\u003dTrue)"},{"line_number":199,"context_line":"        except Exception as e:"},{"line_number":200,"context_line":"            LOG.error(_LE(\"Failed executing ip command\"))"},{"line_number":201,"context_line":"            raise exc.IpCommandError(reason\u003de)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"        for line in out.splitlines():"}],"source_content_type":"text/x-python","patch_set":10,"id":"fa69d971_c58dfed3","line":200,"in_reply_to":"fa69d971_3f7e6d6a","updated":"2016-01-06 15:45:47.000000000","message":"Done","commit_id":"09f3ae7b6fb4a8d456dd53fb419fca14a8595514"}],"neutron/tests/unit/plugins/ml2/drivers/mech_sriov/agent/test_eswitch_manager.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f30299e9f132bb43ac61d7392ea1a47f9732546e","unresolved":false,"context_lines":[{"line_number":448,"context_line":"                              esm.PciOsWrapper.scan_vf_devices,"},{"line_number":449,"context_line":"                              self.DEV_NAME)"},{"line_number":450,"context_line":""},{"line_number":451,"context_line":"    def test_scan_vf_devices_no_match(self, *args):"},{"line_number":452,"context_line":"        with mock.patch(\"os.path.isdir\", return_value\u003dTrue),\\"},{"line_number":453,"context_line":"                mock.patch(\"os.listdir\","},{"line_number":454,"context_line":"                           return_value\u003dself.DIR_CONTENTS_NO_MATCH):"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa69d971_7d1f1808","line":451,"updated":"2016-01-06 11:04:59.000000000","message":"I don\u0027t see why we need *args here: we don\u0027t pass any mock inside the method.","commit_id":"22c16f4077b6590fe65287336855aa7f7abda8b5"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"066604e5302916506d834b2b3f908f5f92079090","unresolved":false,"context_lines":[{"line_number":448,"context_line":"                              esm.PciOsWrapper.scan_vf_devices,"},{"line_number":449,"context_line":"                              self.DEV_NAME)"},{"line_number":450,"context_line":""},{"line_number":451,"context_line":"    def test_scan_vf_devices_no_match(self, *args):"},{"line_number":452,"context_line":"        with mock.patch(\"os.path.isdir\", return_value\u003dTrue),\\"},{"line_number":453,"context_line":"                mock.patch(\"os.listdir\","},{"line_number":454,"context_line":"                           return_value\u003dself.DIR_CONTENTS_NO_MATCH):"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa69d971_f818f6d4","line":451,"in_reply_to":"fa69d971_7d1f1808","updated":"2016-01-06 12:07:06.000000000","message":"Done","commit_id":"22c16f4077b6590fe65287336855aa7f7abda8b5"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"087d5230388440b654ed1ae757935261f6b8ae62","unresolved":false,"context_lines":[{"line_number":483,"context_line":"    @mock.patch(\"os.listdir\", side_effect\u003dOSError())"},{"line_number":484,"context_line":"    @mock.patch(\"neutron.plugins.ml2.drivers.mech_sriov.agent.pci_lib.\""},{"line_number":485,"context_line":"                \"PciDeviceIPWrapper.is_macvtap_assigned\")"},{"line_number":486,"context_line":"    def test_is_assigned_vf_macvtap_faliure("},{"line_number":487,"context_line":"        self, mock_is_macvtap_assigned, *args):"},{"line_number":488,"context_line":"        esm.PciOsWrapper.is_assigned_vf(self.DEV_NAME, self.VF_INDEX)"},{"line_number":489,"context_line":"        self.assertFalse(mock_is_macvtap_assigned.called)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa69d971_8e3ad0e5","line":486,"updated":"2016-01-06 12:23:05.000000000","message":"failure","commit_id":"a104f94ede7263128e46006c17cbebe1545a5f84"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"2964e414bf2741e2fd1ae20cd00423ce0f4b447c","unresolved":false,"context_lines":[{"line_number":483,"context_line":"    @mock.patch(\"os.listdir\", side_effect\u003dOSError())"},{"line_number":484,"context_line":"    @mock.patch(\"neutron.plugins.ml2.drivers.mech_sriov.agent.pci_lib.\""},{"line_number":485,"context_line":"                \"PciDeviceIPWrapper.is_macvtap_assigned\")"},{"line_number":486,"context_line":"    def test_is_assigned_vf_macvtap_faliure("},{"line_number":487,"context_line":"        self, mock_is_macvtap_assigned, *args):"},{"line_number":488,"context_line":"        esm.PciOsWrapper.is_assigned_vf(self.DEV_NAME, self.VF_INDEX)"},{"line_number":489,"context_line":"        self.assertFalse(mock_is_macvtap_assigned.called)"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa69d971_f34254ad","line":486,"in_reply_to":"fa69d971_8e3ad0e5","updated":"2016-01-06 13:01:33.000000000","message":"Done","commit_id":"a104f94ede7263128e46006c17cbebe1545a5f84"}],"releasenotes/notes/macvtap_symbolic_link-f4d07660ffd82a24.yaml":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"f30299e9f132bb43ac61d7392ea1a47f9732546e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fix macvtap assigned vf check when kernel \u003c 3.13"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"fa69d971_f82c769a","line":3,"updated":"2016-01-06 11:04:59.000000000","message":"vf -\u003e VF since it\u0027s user visible release note.\n\nPlease also add a bit more clues on what it\u0027s about. You should mention that it\u0027s for SR-IOV driver, and the kernel is Linux.","commit_id":"22c16f4077b6590fe65287336855aa7f7abda8b5"},{"author":{"_account_id":12171,"name":"Moshe Levi","email":"moshele@nvidia.com","username":"moshele"},"change_message_id":"066604e5302916506d834b2b3f908f5f92079090","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - Fix macvtap assigned vf check when kernel \u003c 3.13"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"fa69d971_18aaaa19","line":3,"in_reply_to":"fa69d971_f82c769a","updated":"2016-01-06 12:07:06.000000000","message":"Done","commit_id":"22c16f4077b6590fe65287336855aa7f7abda8b5"}]}
