mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-07 14:18:05 +00:00
Merge branch 'WIFI-1321-create-a-lan-forge-pip-module' of https://github.com/Telecominfraproject/wlan-lanforge-scripts into WIFI-1321-create-a-lan-forge-pip-module
This commit is contained in:
@@ -209,26 +209,27 @@ class lf_tests(lf_libs):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
basic_02 = {
|
basic_1 = {
|
||||||
|
"target": "tip_2x",
|
||||||
"controller": {
|
"controller": {
|
||||||
"url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
|
"url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
|
||||||
"username": "tip@ucentral.com",
|
"username": "tip@ucentral.com",
|
||||||
"password": "OpenWifi%123"
|
"password": "OpenWifi%123"
|
||||||
},
|
},
|
||||||
"device_under_tests": [
|
"device_under_tests": [{
|
||||||
{
|
"model": "edgecore_eap101",
|
||||||
"model": "hfcl_ion4",
|
"supported_bands": ["2G", "5G"],
|
||||||
"mode": "wifi5",
|
"supported_modes": ["BRIDGE", "NAT", "VLAN"],
|
||||||
"serial": "0006aee53b84",
|
"mode": "wifi6",
|
||||||
"jumphost": True,
|
"identifier": "c44bd1005b30",
|
||||||
"ip": "10.28.3.100",
|
"serial_port": True,
|
||||||
"username": "lanforge",
|
"host_ip": "10.28.3.100",
|
||||||
"password": "pumpkin77",
|
"host_username": "lanforge",
|
||||||
"port": 22,
|
"host_password": "pumpkin77",
|
||||||
"jumphost_tty": "/dev/ttyAP2",
|
"host_ssh_port": 22,
|
||||||
"version": "next-latest"
|
"serial_tty": "/dev/ttyAP8",
|
||||||
}
|
"firmware_version": "next-latest"
|
||||||
],
|
}],
|
||||||
"traffic_generator": {
|
"traffic_generator": {
|
||||||
"name": "lanforge",
|
"name": "lanforge",
|
||||||
"testbed": "basic",
|
"testbed": "basic",
|
||||||
@@ -237,15 +238,28 @@ if __name__ == '__main__':
|
|||||||
"manager_ip": "192.168.52.89",
|
"manager_ip": "192.168.52.89",
|
||||||
"http_port": 8080,
|
"http_port": 8080,
|
||||||
"ssh_port": 22,
|
"ssh_port": 22,
|
||||||
"default_setup_DB": "Test_Scenario",
|
"setup": {"method": "build" , "DB": "Test_Scenario_Automation"}, # method: build/load,
|
||||||
"wan_ports": ["1.1.eth3"],
|
# DB : Default database name
|
||||||
"lan_ports": ["1.1.eth1"],
|
"wan_ports": {
|
||||||
"uplink_nat_ports": ["1.1.eth2"]
|
"1.1.eth3": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
|
||||||
|
"lease-first": 10,
|
||||||
|
"lease-count": 10000,
|
||||||
|
"lease-time": "6h"
|
||||||
|
}}
|
||||||
|
},
|
||||||
|
"lan_ports": {
|
||||||
|
"1.1.eth1": {"addressing": "dynamic"} # dhcp-server/{"addressing": "dynamic"}/{"addressing":
|
||||||
|
# "static", "subnet": "10.28.2.6/16"}
|
||||||
|
},
|
||||||
|
"uplink_nat_ports": {
|
||||||
|
"1.1.eth2": {"addressing": "static", "subnet": "10.28.2.6/16"} # dhcp-server/{"addressing":
|
||||||
|
# "dynamic"} /{"addressing": "static", "subnet": "10.28.2.6/16"}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
obj = lf_tests(lf_data=dict(basic_02["traffic_generator"]), dut_data=list(basic_02["device_under_tests"]),
|
obj = lf_tests(lf_data=dict(basic_1["traffic_generator"]), dut_data=list(basic_1["device_under_tests"]),
|
||||||
log_level=logging.DEBUG)
|
log_level=logging.DEBUG)
|
||||||
# obj.read_cv_scenario()
|
# obj.read_cv_scenario()
|
||||||
# obj.setup_dut()
|
# obj.setup_dut()
|
||||||
|
|||||||
Reference in New Issue
Block a user