"""

    Multi Station throughput vs Packet Size test: Bridge Mode
    pytest -m "multi_sta_thpt and wpa2_personal and bridge and twog"

"""

import os
import allure
import pytest

pytestmark = [pytest.mark.performance, pytest.mark.multi_sta_thpt, pytest.mark.wpa2_personal, pytest.mark.bridge,
              pytest.mark.twog]

setup_params_general = {
    "mode": "BRIDGE",
    "ssid_modes": {
        "wpa2_personal": [
            {"ssid_name": "ssid_wpa2_2g", "appliedRadios": ["2G"], "security_key": "something"}]},
    "rf": {},
    "radius": False
}


@allure.suite("performance")
@allure.feature("BRIDGE MODE WPA2 PERSONAL Multi_Station_Throughput")
@pytest.mark.parametrize(
    'setup_configuration',
    [setup_params_general],
    indirect=True,
    scope="class"
)
@pytest.mark.usefixtures("setup_configuration")
class TestMultiStaThptbridge(object):

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_dl_2g_1",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3631")
    def test_mstathpt_wpa2p_bridge_udp_dl_2g_1(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                 pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """

        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:
            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512,1024,MTU'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_1", raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_dl_2g_2",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3633")
    def test_mstathpt_wpa2p_bridge_tcp_dl_2g_2(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
            pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'],
                     ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512,1024,MTU'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_2",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name,
                                      pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_ul_2g_3",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3635")
    def test_mstathpt_wpa2p_bridge_udp_ul_2g_3(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                    pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512,1024,MTU'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_3", raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_ul_2g_4",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3637")
    def test_mstathpt_wpa2p_bridge_tcp_ul_2g_4(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                        pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512,1024,MTU'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_4", raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.multi_sta_perf_throughput
    @pytest.mark.tcp_udp_ul_dl
    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_dl_2g_5",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3639")
    def test_mstathpt_wpa2p_bridge_udp_dl_2g_5(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                          pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512,1024,MTU'], ['capacities:MAX'], ['tput_multi_tcp:0'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_5", raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.multi_sta_perf_throughput
    @pytest.mark.tcp_udp_ul_dl
    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_dl_2g_6",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3641")
    def test_mstathpt_wpa2p_bridge_tcp_dl_2g_6(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                               pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512,1024,MTU'], ['capacities:MAX'], ['tput_multi_tcp:1'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_6", raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.multi_sta_perf_throughput
    @pytest.mark.tcp_udp_ul_dl
    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_ul_2g_7",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3643")
    def test_mstathpt_wpa2p_bridge_udp_ul_2g_7(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                               pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512,1024,MTU'], ['capacities:MAX'], ['tput_multi_tcp:0'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_7", raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.multi_sta_perf_throughput
    @pytest.mark.tcp_udp_ul_dl
    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_ul_2g_8",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3645")
    def test_mstathpt_wpa2p_bridge_tcp_ul_2g_8(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                                  pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512,1024,MTU'], ['capacities:MAX'], ['tput_multi_tcp:1'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_8", raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_dl_2g_9",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3781")
    def test_mstathpt_wpa2p_bridge_udp_dl_2g_9(self,  lf_tools,
                                               create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
               pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200,512'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_9", raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_dl_2g_10",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3783")
    def test_mstathpt_wpa2p_bridge_tcp_dl_2g_10(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                    pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_10",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_ul_2g_11",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3786")
    def test_mstathpt_wpa2p_bridge_udp_ul_2g_11(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                       pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_11",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_ul_2g_12",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3788")
    def test_mstathpt_wpa2p_bridge_tcp_ul_2g_12(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                       pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """

        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:200'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_12",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_dl_2g_13",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3790")
    def test_mstathpt_wpa2p_bridge_udp_dl_2g_13(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                       pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:512'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_13",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_dl_2g_14",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3793")
    def test_mstathpt_wpa2p_bridge_tcp_dl_2g_14(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                          pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:512'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_14",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_ul_2g_15",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3798")
    def test_mstathpt_wpa2p_bridge_udp_ul_2g_15(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                          pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:512'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_15",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_ul_2g_16",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3800")
    def test_mstathpt_wpa2p_bridge_tcp_ul_2g_16(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                             pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:512'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_16",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_dl_2g_17",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3802")
    def test_mstathpt_wpa2p_bridge_udp_dl_2g_17(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                             pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:1024'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_17",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_dl_2g_18",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3804")
    def test_mstathpt_wpa2p_bridge_tcp_dl_2g_18(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                             pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:1024'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_18",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_ul_2g_19",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3806")
    def test_mstathpt_wpa2p_bridge_udp_ul_2g_19(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
         pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:1024'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_19",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_ul_2g_20",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3810")
    def test_mstathpt_wpa2p_bridge_tcp_ul_2g_20(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
        pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:1024'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_20",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_dl_2g_21",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3812")
    def test_mstathpt_wpa2p_bridge_udp_dl_2g_21(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
        pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:MTU'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_21",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_dl_2g_22",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3815")
    def test_mstathpt_wpa2p_bridge_tcp_dl_2g_22(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
             pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:MTU'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:1'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:0']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_22",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_udp_ul_2g_23",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3817")
    def test_mstathpt_wpa2p_bridge_udp_ul_2g_23(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                 pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:MTU'], ['capacities:1,2,5'], ['tput_multi_tcp:0'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:1'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_23",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True

    @pytest.mark.wpa2_personal
    @pytest.mark.twog
    @allure.testcase(name="test_mstathpt_wpa2p_bridge_tcp_ul_2g_24",
                     url="https://telecominfraproject.atlassian.net/browse/WIFI-3819")
    def test_mstathpt_wpa2p_bridge_tcp_ul_2g_24(self,  lf_tools,
                                                create_lanforge_chamberview_dut, lf_test, get_configuration):
        """
                 pytest -m "multi_sta_thpt and bridge and wpa2_personal and twog"
        """
        profile_data = setup_params_general["ssid_modes"]["wpa2_personal"]
        ssid_2G = profile_data[0]["ssid_name"]

        dut_name = create_lanforge_chamberview_dut
        mode = "BRIDGE"
        vlan = 1
        print(lf_tools.dut_idx_mapping)
        dut_5g = ""
        dut_2g = ""
        for i in lf_tools.dut_idx_mapping:

            if lf_tools.dut_idx_mapping[i][3] == "2G":
                dut_2g = dut_name + ' ' + lf_tools.dut_idx_mapping[i][0] + ' ' + lf_tools.dut_idx_mapping[i][4]
                print(dut_2g)
        if ssid_2G not in get_vif_state:
            allure.attach(name="retest,vif state ssid not available:", body=str(get_vif_state))
            pytest.xfail("SSID NOT AVAILABLE IN VIF STATE")

        raw_lines = [['skip_5:1'], ['skip_dual:1'], ['hunt_retries:1'], ['hunt_iter:10'], ['pkt_loss_thresh:500000'],
                     ['frame_sizes:MTU'], ['capacities:1,2,5'], ['tput_multi_tcp:1'], ['tput_multi_dl:0'],
                     ['tput_multi_udp:0'], ['tput_multi_ul:1']]

        msthpt_obj = lf_test.multi_sta_thpt(mode=mode, ssid_2G=ssid_2G, ssid_5G="",
                                            instance_name="multistathpt_instance_wpa2p_2g_bridge_24",
                                            raw_line=raw_lines,
                                            vlan_id=vlan, dut_5g="", dut_2g=dut_2g)

        report_name = msthpt_obj.report_name[0]['LAST']["response"].split(":::")[1].split("/")[-1]
        lf_tools.attach_report_graphs(report_name=report_name, pdf_name="Multi Station Throughput vs Packet Size Test")
        assert True
