)]}'
{"neutron_tempest_plugin/scenario/test_portsecurity.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"1c419fe7e4b2af32e6c246a67204330bb57dec6b","unresolved":false,"context_lines":[{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        # As both servers use same image we can get interface from any of them"},{"line_number":128,"context_line":"        shell_path \u003d \"PATH\u003d$PATH:/sbin\""},{"line_number":129,"context_line":"        test_interface \u003d dst_server[\u0027client\u0027].exec_command("},{"line_number":130,"context_line":"            \"{};ip addr | grep {} -B 1 | head -1 | \""},{"line_number":131,"context_line":"            \"cut -d \u0027:\u0027 -f 2 | sed \u0027s/\\ //g\u0027\".format("},{"line_number":132,"context_line":"                shell_path, dst_server_test_port[\u0027mac_address\u0027])).rstrip()"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"        # In case second interface is down we need to switch it on"},{"line_number":135,"context_line":"        # and configure ip address"}],"source_content_type":"text/x-python","patch_set":2,"id":"1fa4df85_b3b348e9","line":132,"range":{"start_line":129,"start_character":25,"end_line":132,"end_character":74},"updated":"2020-03-19 10:40:00.000000000","message":"this can go to neutron_tempest_plugin.common.ip module probably","commit_id":"c77a45bad18e53f26d716a0cb02daef24e8a1c4c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"1c419fe7e4b2af32e6c246a67204330bb57dec6b","unresolved":false,"context_lines":[{"line_number":135,"context_line":"        # and configure ip address"},{"line_number":136,"context_line":"        for server in servers.keys():"},{"line_number":137,"context_line":"            servers[server][\u0027client\u0027].exec_command("},{"line_number":138,"context_line":"                \"cat /sys/class/net/{interface}/operstate | grep -q -v down \""},{"line_number":139,"context_line":"                \"\u0026\u0026 true || ({path}; sudo ip link set {interface} up \""},{"line_number":140,"context_line":"                \"\u0026\u0026 sudo ip addr add {ip}/24 dev {interface})\".format("},{"line_number":141,"context_line":"                    path\u003dshell_path, ip\u003dips[server],"},{"line_number":142,"context_line":"                    interface\u003dtest_interface))"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        self.check_remote_connectivity(src_server[\u0027client\u0027], ips[\u0027dst_server\u0027])"},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1fa4df85_13c25c35","line":142,"range":{"start_line":138,"start_character":17,"end_line":142,"end_character":46},"updated":"2020-03-19 10:40:00.000000000","message":"and this probably too","commit_id":"c77a45bad18e53f26d716a0cb02daef24e8a1c4c"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"1c419fe7e4b2af32e6c246a67204330bb57dec6b","unresolved":false,"context_lines":[{"line_number":146,"context_line":"        # Now configure another MAC and IP address on the dst_server"},{"line_number":147,"context_line":"        # test interface and check connectivity again (in both directions)"},{"line_number":148,"context_line":"        dst_server[\u0027client\u0027].exec_command("},{"line_number":149,"context_line":"            \"{path}; sudo ip addr del {ip}/24 dev {interface} \u0026\u0026 \""},{"line_number":150,"context_line":"            \"sudo ip addr add {ip_alt}/24 dev {interface} \u0026\u0026 \""},{"line_number":151,"context_line":"            \"sudo ip link set {interface} address 02:02:02:03:03:03\".format("},{"line_number":152,"context_line":"                path\u003dshell_path, interface\u003dtest_interface,"},{"line_number":153,"context_line":"                ip\u003dips[\u0027dst_server\u0027], ip_alt\u003dips[\u0027dst_server_alt\u0027]))"},{"line_number":154,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1fa4df85_33bf58ab","line":151,"range":{"start_line":149,"start_character":12,"end_line":151,"end_character":68},"updated":"2020-03-19 10:40:00.000000000","message":"maybe this also can be split to some more basic methods like \"delete_ip_address\", \"set_ip_address\", \"set_mac_address\" and moved to ip module","commit_id":"c77a45bad18e53f26d716a0cb02daef24e8a1c4c"}]}
