mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
Added create_vlan parameter for wifi_capacity test
Signed-off-by: tarun-candela <tarunkumar.madabathula@candelatech.com>
This commit is contained in:
@@ -1147,7 +1147,7 @@ class lf_tests(lf_libs):
|
|||||||
instance_name="wct_instance", download_rate="1Gbps", influx_tags="",
|
instance_name="wct_instance", download_rate="1Gbps", influx_tags="",
|
||||||
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000", stations="", create_stations=False,
|
upload_rate="1Gbps", protocol="TCP-IPv4", duration="60000", stations="", create_stations=False,
|
||||||
sort="interleave", raw_lines=[], move_to_influx=False, dut_data={}, ssid_name=None,
|
sort="interleave", raw_lines=[], move_to_influx=False, dut_data={}, ssid_name=None,
|
||||||
num_stations={}, add_stations=True):
|
num_stations={}, add_stations=True, create_vlan=True):
|
||||||
wificapacity_obj_list = []
|
wificapacity_obj_list = []
|
||||||
vlan_raw_lines = None
|
vlan_raw_lines = None
|
||||||
for dut in self.dut_data:
|
for dut in self.dut_data:
|
||||||
@@ -1170,7 +1170,10 @@ class lf_tests(lf_libs):
|
|||||||
logging.error("VLAN ID is Unspecified in the VLAN Case")
|
logging.error("VLAN ID is Unspecified in the VLAN Case")
|
||||||
pytest.skip("VLAN ID is Unspecified in the VLAN Case")
|
pytest.skip("VLAN ID is Unspecified in the VLAN Case")
|
||||||
else:
|
else:
|
||||||
vlan_raw_lines = self.add_vlan(vlan_ids=vlan_id, build=True)
|
if create_vlan:
|
||||||
|
vlan_raw_lines = self.add_vlan(vlan_ids=vlan_id, build=True)
|
||||||
|
else:
|
||||||
|
vlan_raw_lines = self.add_vlan(vlan_ids=vlan_id, build=False)
|
||||||
ret = self.get_wan_upstream_ports()
|
ret = self.get_wan_upstream_ports()
|
||||||
upstream_port = ret[identifier] + "." + str(vlan_id[0])
|
upstream_port = ret[identifier] + "." + str(vlan_id[0])
|
||||||
logging.info("Upstream data: " + str(upstream_port))
|
logging.info("Upstream data: " + str(upstream_port))
|
||||||
|
|||||||
Reference in New Issue
Block a user