#!/usr/bin/bash
# Setup python environment variable and pip environment variable like
# export PYTHON=/usr/bin/python3
# export PIP=/usr/bin/pip3
#sh setup_env.bash -t tip_2x -d all -n "Shivam Thakur" -o TIP -e shivam.thakur@candelatech.com -i "TIP OpenWIFI 2.X Library"
helpFunction()
{
   echo "Setup SSH Tunnel for TIP Labs"
   echo "Usage: $0 -l lab "
   echo -e "\t-l Target Lab basic-01 | basic-02 | basic-03 | basic-04 | basic-05 | basic-06 | basic-07 | basic-08 | advance-01 | advance-02 | advance-03 | scale-23b"
   exit 1 # Exit script after printing help
}

basic1_8080=8800
basic1_22=8801
basic1_lab_ctlr=8802
basic1_vnc=8803

basic2_8080=8810
basic2_22=8811
basic2_lab_ctlr=8812
basic2_vnc=8813

basic3_8080=8820
basic3_22=8821
basic3_lab_ctlr=8822
basic3_vnc=8823

basic4_8080=8830
basic4_22=8831
basic4_lab_ctlr=8832
basic4_vnc=8833

basic5_8080=8840
basic5_22=8841
basic5_lab_ctlr=8842
basic5_vnc=8843

basic6_8080=8850
basic6_22=8851
basic6_lab_ctlr=8852
basic6_vnc=8853

basic7_8080=8860
basic7_22=8861
basic7_lab_ctlr=8862
basic7_vnc=8863


basic8_8080=8870
basic8_22=8871
basic8_lab_ctlr=8872
basic8_vnc=8873

advance1_8080=8880
advance1_22=8881
advance1_lab_ctlr=8882
advance1_vnc=8883

advance2_8080=8890
advance2_22=8891
advance2_lab_ctlr=8892
advance2_vnc=8893

advance3_8080=8900
advance3_22=8901
advance3_lab_ctlr=8902
advance3_vnc=8903

scale23_8080=9000
scale23_22=9001
scale23_lab_ctlr=9002
scale23_vnc=9003

Create_lab_info_json()
{
  rm tests/lab_info.json
  touch lab_info.json
  # shellcheck disable=SC2016
  echo -e '
  {

"CONFIGURATION" : {
        "basic-01" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "wallys_dr40x9",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": null,
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi5",
                "identifier": "c44bd1a022c1",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port": ' $basic1_lab_ctlr ',
                "serial_tty": "/dev/ttyAP8",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": ' $basic1_8080 ',
                    "ssh_port": ' $basic1_22 ',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.6",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-02" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "hfcl_ion4",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": null,
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi5",
                "identifier": "0006aee53b84",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port":  ' $basic2_lab_ctlr ' ,
                "serial_tty": "/dev/ttyAP11",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": ' $basic2_8080 ',
                    "ssh_port": ' $basic2_22 ',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.7",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-03" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "tp-link_ec420-g1",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": "1.1.eth1",
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi5",
                "identifier": "001122090801",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port":  ' $basic3_lab_ctlr ' ,
                "serial_tty": "/dev/ttyAP5",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": ' $basic3_8080 ',
                    "ssh_port": ' $basic3_22 ',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"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"
                        }
                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.8",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-03a" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "indio_um-305ac",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": "1.1.eth1",
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi5",
                "identifier": "706dec0a8a79",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port":  ' $basic3_lab_ctlr ' ,
                "serial_tty": "/dev/ttyAP6",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": ' $basic3_8080 ',
                    "ssh_port": ' $basic3_22 ',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"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"
                        }
                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.8",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-04" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "edgecore_ecw5211",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": "1.1.eth1",
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi5",
                "identifier": "68215fda456d",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port": ' $basic4_lab_ctlr ',
                "serial_tty": "/dev/ttyAP5",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port":' $basic4_8080',
                    "ssh_port":' $basic4_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"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"
                        }
                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.9",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-04a" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "hfcl_ion4xi",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": "1.1.eth1",
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi5",
                "identifier": "0006ae6df11f",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port": ' $basic4_lab_ctlr ',
                "serial_tty": "/dev/ttyAP5",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port":' $basic4_8080',
                    "ssh_port":' $basic4_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"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"
                        }
                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.9",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-05" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "cig_wf188n",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": null,
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi6",
                "identifier": "0000c1018812",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port":' $basic5_lab_ctlr',
                "serial_tty": "/dev/ttyAP1",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port":' $basic5_8080',
                    "ssh_port":' $basic5_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth1": {
                            "addressing": "static",
                            "ip": "10.28.2.16",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-06" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "edgecore_eap102",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": null,
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi6",
                "identifier": "903cb39d6918",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port":' $basic6_lab_ctlr',
                "serial_tty": "/dev/ttyAP2",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port":' $basic6_8080',
                    "ssh_port":' $basic6_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.17",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-07" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "edgecore_eap101",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": null,
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi6",
                "identifier": "903cb36ae4a8",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port":' $basic7_lab_ctlr',
                "serial_tty": "/dev/ttyAP3",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port":' $basic7_8080',
                    "ssh_port":' $basic7_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.18",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-08" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "liteon-wpx8324",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": null,
                "ssid": {},
                "mode": "wifi6",
                "identifier": "e8c74f202600",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port": '$basic8_lab_ctlr',
                "serial_tty": "/dev/ttyAP5",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": '$basic8_8080',
                    "ssh_port": '$basic8_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.19",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "basic-08a" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "udaya_a5-id2",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": null,
                "ssid": {},
                "mode": "wifi5",
                "identifier": "50987100327b",
                "method": "serial",
                "host_ip": "10.28.3.103",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port": '$basic8_lab_ctlr',
                "serial_tty": "/dev/ttyAP6",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": '$basic8_8080',
                    "ssh_port": '$basic8_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.19",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "advance-01" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "cig_194c4",
                "supported_bands": ["2G", "5G", "6G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth1",
                "lan_port": null,
                "ssid": {},
                "mode": "wifi6",
                "identifier": "f40b9fe78e03",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port": '$advance1_lab_ctlr',
                "serial_tty": "/dev/ttyAP2",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port":  '$advance1_8080',
                    "ssh_port":  '$advance1_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth1": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.15",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "advance-02" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "edgecore_eap102",
                "supported_bands": ["2G", "5G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth1",
                "lan_port": null,
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi6",
                "identifier": "903cb39d6958",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port": ' $advance2_lab_ctlr',
                "serial_tty": "/dev/ttyAP3",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": ' $advance2_8080',
                    "ssh_port": ' $advance2_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth1": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.14",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "advance-03" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "cig_wf196",
                "supported_bands": ["2G", "5G", "6G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.3.eth2",
                "lan_port": null,
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi6e",
                "identifier": "824f816011e4",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port":' $advance3_lab_ctlr',
                "serial_tty": "/dev/ttyAP0",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "basic",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": ' $advance3_8080',
                    "ssh_port": ' $advance3_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.3.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.3.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.29",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        },
        "scale-23b" : {
            "target": "tip_2x",
            "controller" : {
                "url": "https://sec-qa01.cicd.lab.wlan.tip.build:16001",
                "username": "tip@ucentral.com",
                "password": "OpenWifi%123"
            },
            "device_under_tests": [{
                "model": "cig_wf196",
                "supported_bands": ["2G", "5G", "6G"],
                "supported_modes": ["BRIDGE", "NAT", "VLAN"],
                "wan_port": "1.1.eth2",
                "lan_port": null,
                "ssid": {
                    "2g-ssid": "OpenWifi",
                    "5g-ssid": "OpenWifi",
                    "6g-ssid": "OpenWifi",
                    "2g-password": "OpenWifi",
                    "5g-password": "OpenWifi",
                    "6g-password": "OpenWifi",
                    "2g-encryption": "WPA2",
                    "5g-encryption": "WPA2",
                    "6g-encryption": "WPA3",
                    "2g-bssid": "68:7d:b4:5f:5c:31",
                    "5g-bssid": "68:7d:b4:5f:5c:3c",
                    "6g-bssid": "68:7d:b4:5f:5c:38"
                },
                "mode": "wifi6e",
                "identifier": "04b6be139a48",
                "method": "serial",
                "host_ip": "localhost",
                "host_username": "lanforge",
                "host_password": "pumpkin77",
                "host_ssh_port":' $scale23_lab_ctlr',
                "serial_tty": "/dev/ttyAP16",
                "firmware_version": "next-latest"
            }],
            "traffic_generator": {
                "name": "lanforge",
                "testbed": "scale",
                "scenario": "dhcp-bridge",
                "details": {
                    "manager_ip": "localhost",
                    "http_port": ' $scale23_8080',
                    "ssh_port": ' $scale23_22',
                    "setup": {"method": "build", "DB": "Test_Scenario_Automation"},
                    "wan_ports": {
                        "1.1.eth2": {"addressing": "dhcp-server", "subnet": "172.16.0.1/16", "dhcp": {
                            "lease-first": 10,
                            "lease-count": 10000,
                            "lease-time": "6h"
                            }
                        }
                    },
                    "lan_ports": {

                    },
                    "uplink_nat_ports": {
                        "1.1.eth3": {
                            "addressing": "static",
                            "ip": "10.28.2.55",
                            "gateway_ip": "10.28.2.1/24",
                            "ip_mask": "255.255.255.0",
                            "dns_servers": "BLANK"
                        }
                    }
                }
            }
        }
},

"PERFECTO_DETAILS" : {
    "securityToken":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI3NzkzZGM0Ni1jZmU4LTQ4ODMtYjhiOS02ZWFlZGU2OTc2MDkifQ.eyJpYXQiOjE2MzI4Mzc2NDEsImp0aSI6IjAwZGRiYWY5LWQwYjMtNDRjNS1hYjVlLTkyNzFlNzc5ZGUzNiIsImlzcyI6Imh0dHBzOi8vYXV0aDIucGVyZmVjdG9tb2JpbGUuY29tL2F1dGgvcmVhbG1zL3RpcC1wZXJmZWN0b21vYmlsZS1jb20iLCJhdWQiOiJodHRwczovL2F1dGgyLnBlcmZlY3RvbW9iaWxlLmNvbS9hdXRoL3JlYWxtcy90aXAtcGVyZmVjdG9tb2JpbGUtY29tIiwic3ViIjoiODNkNjUxMWQtNTBmZS00ZWM5LThkNzAtYTA0ZjBkNTdiZDUyIiwidHlwIjoiT2ZmbGluZSIsImF6cCI6Im9mZmxpbmUtdG9rZW4tZ2VuZXJhdG9yIiwibm9uY2UiOiI2ZjE1YzYxNy01YTU5LTQyOWEtODc2Yi1jOTQxMTQ1ZDFkZTIiLCJzZXNzaW9uX3N0YXRlIjoiYmRjZTFmYTMtMjlkYi00MmFmLWI5YWMtYjZjZmJkMDEyOTFhIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyBlbWFpbCJ9.5R85_1R38ZFXv_wIjjCIsj8NJm1p66dCsLJI5DBEmks",
    "projectName": "TIP-PyTest-Execution",
    "projectVersion": "1.0",
    "reportTags": "TestTag",
    "perfectoURL":"tip",
    "available_devices": [""],
    "iPhone-11": {
        "model-iOS": "iPhone-11",
        "bundleId-iOS": "com.apple.Preferences",
        "platformName-iOS": "iOS",
        "bundleId-iOS-Settings": "com.apple.Preferences",
        "bundleId-iOS-Ping": "com.deftapps.ping",
        "browserType-iOS": "Safari",
        "bundleId-iOS-Safari": "com.apple.mobilesafari",
        "platformName-android": "Android",
        "appPackage-android": "com.android.settings",
        "jobName": "Interop-iphone-11",
        "jobNumber": 38
    },
    "iPhone-12": {
        "model-iOS": "iPhone-12",
        "bundleId-iOS": "com.apple.Preferences",
        "platformName-iOS": "iOS",
        "bundleId-iOS-Settings": "com.apple.Preferences",
        "bundleId-iOS-Ping": "com.deftapps.ping",
        "browserType-iOS": "Safari",
        "bundleId-iOS-Safari": "com.apple.mobilesafari",
        "platformName-android": "Android",
        "appPackage-android": "com.android.settings",
        "jobName": "Interop-iphone-12",
        "jobNumber": 38
    },
    "iPhone-7": {
        "model-iOS": "iPhone-7",
        "bundleId-iOS": "com.apple.Preferences",
        "platformName-iOS": "iOS",
        "bundleId-iOS-Settings": "com.apple.Preferences",
        "bundleId-iOS-Ping": "com.deftapps.ping",
        "browserType-iOS": "Safari",
        "bundleId-iOS-Safari": "com.apple.mobilesafari",
        "platformName-android": "Android",
        "appPackage-android": "com.android.settings",
        "jobName": "Interop-iphone-7",
        "jobNumber": 38
    },
    "iPhone-XR": {
        "model-iOS": "iPhone-XR",
        "bundleId-iOS": "com.apple.Preferences",
        "platformName-iOS": "iOS",
        "bundleId-iOS-Settings": "com.apple.Preferences",
        "bundleId-iOS-Ping": "com.deftapps.ping",
        "browserType-iOS": "Safari",
        "bundleId-iOS-Safari": "com.apple.mobilesafari",
        "platformName-android": "Android",
        "appPackage-android": "com.android.settings",
        "jobName": "Interop-iphone-XR",
        "jobNumber": 38
    },
    "Galaxy S20": {
        "platformName-android": "Android",
        "model-android": "Galaxy S20",
        "appPackage-android": "com.android.settings",
        "bundleId-iOS-Settings": "com.apple.Preferences",
        "bundleId-iOS-Safari": "com.apple.mobilesafari",
        "jobName": "Interop-Galaxy-S20",
        "jobNumber": 38
    },
    "Galaxy S10.*": {
        "platformName-android": "Android",
        "model-android": "Galaxy S10.*",
        "appPackage-android": "com.android.settings",
        "bundleId-iOS-Settings": "com.apple.Preferences",
        "bundleId-iOS-Safari": "com.apple.mobilesafari",
        "jobName": "Interop-Galaxy-S10",
        "jobNumber": 38
    },
    "Galaxy S9": {
        "platformName-android": "Android",
        "model-android": "Galaxy S9",
        "appPackage-android": "com.android.settings",
        "bundleId-iOS-Settings": "com.apple.Preferences",
        "bundleId-iOS-Safari": "com.apple.mobilesafari",
        "jobName": "Interop-Galaxy-S9",
        "jobNumber": 38
    },
    "Pixel 4": {
        "platformName-android": "Android",
        "model-android": "Pixel 4",
        "appPackage-android": "com.android.settings",
        "bundleId-iOS-Settings": "com.apple.Preferences",
        "bundleId-iOS-Safari": "com.apple.mobilesafari",
        "jobName": "Interop-pixel-4",
        "jobNumber": 38
    }
},
"RADIUS_SERVER_DATA" : {
    "ip": "10.28.3.100",
    "port": 1812,
    "secret": "testing123",
    "user": "nolaradius",
    "password": "nolastart",
    "pk_password": "whatever"
},

"RADIUS_ACCOUNTING_DATA" : {
    "ip": "10.10.1.221",
    "port": 1813,
    "secret": "testing123",
    "user": "user",
    "password": "password",
    "pk_password": "whatever"
},

"DYNAMIC_VLAN_RADIUS_SERVER_DATA" : {
    "ip": "3.20.165.131",
    "port": 1812,
    "secret": "testing123",
    "user": "user",
    "password": "password",
    "pk_password": "whatever"
},

"DYNAMIC_VLAN_RADIUS_ACCOUNTING_DATA" : {
    "ip": "3.20.165.131",
    "port": 1813,
    "secret": "testing123",
    "user": "user",
    "password": "password",
    "pk_password": "whatever"
},

"RATE_LIMITING_RADIUS_SERVER_DATA" : {
    "ip": "10.28.3.100",
    "port": 1812,
    "secret": "testing123",
    "user": "user",
    "password": "password",
    "pk_password": "whatever"
},

"RATE_LIMITING_RADIUS_ACCOUNTING_DATA" : {
    "ip": "10.28.3.100",
    "port": 1813,
    "secret": "testing123",
    "user": "user",
    "password": "password",
    "pk_password": "whatever"
},

"PASSPOINT_RADIUS_SERVER_DATA" : {
    "ip": "52.234.179.191",
    "port": 11812,
    "secret": "yeababy20!",
    "user": "nolaradius",
    "password": "nolastart",
    "pk_password": "whatever"
},

"PASSPOINT_RADIUS_ACCOUNTING_SERVER_DATA" : {
    "ip": "52.234.179.191",
    "port": 11813,
    "secret": "yeababy20!"
},

"PASSPOINT": {
    "venue-name": [
      "eng:Example passpoint_venue",
      "fra:Exemple de lieu"
    ],
    "domain-name": [
      "onboard.almondlabs.net",
      "test.com"
    ],
    "asra": false,
    "internet": true,
    "esr": false,
    "uesa": false,
    "access-network-type": 0,
    "hessid": "11:22:33:44:55:66",
    "venue-group": 2,
    "venue-type": 8,
    "connection-capability": [
      "1:0:2",
      "6:22:1",
      "17:5060:0"
    ],
    "roaming-consortium": [
      "F4F5E8F5F4",
      "BAA2D00100",
      "BAA2D00000",
      "DEADBEEF01"
    ],
    "disable-dgaf": true,
    "anqp-domain": 8888,
    "ipaddr-type-available": 14,
    "nai-realm": [
      "0,oss.ameriband.com,21[5:7][2:4],13[5:-1]",
      "0,test.com,21[5:7][2:4]"
    ],
    "osen": false,
    "anqp-3gpp-cell-net": [
      "310,260",
      "310,410"
    ],
    "friendly-name": [
      "eng:AlmondLabs",
      "fra:AlmondLabs"
    ],
    "venue-url": [
      "http://www.example.com/info-fra",
      "http://www.example.com/info-eng"
    ],
    "auth-type": {
      "type": "terms-and-conditions"
    }
},
"open_flow":{},

"influx_params" : {}

}   ' >> tests/lab_info.json



}
while getopts "l:" opt
do
   case "$opt" in
      l ) lab="$OPTARG" ;;
      ? ) helpFunction ;; # Print helpFunction in case parameter is non-existent
   esac
done

# Print helpFunction in case parameters are empty
if [ -z "$lab" ]
then
   echo "Some or all of the parameters are empty";
   helpFunction
fi
if [ "$lab" = "basic-01" ]; then
    echo "Initiating LAB Connection in basic-01"

    Create_lab_info_json
    ssh -C -L 8800:10.28.3.6:8080 -L 8801:10.28.3.6:22 -L 8802:10.28.3.100:22 -L 8803:10.28.3.6:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "basic-02" ]; then
    echo "Initiating LAB Connection in basic-02"
    Create_lab_info_json
    ssh -C -L 8810:10.28.3.8:8080 -L 8811:10.28.3.8:22 -L 8812:10.28.3.100:22 -L 8813:10.28.3.8:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "basic-03" ] || [ "$lab" = "basic-03a" ]; then
    echo "Initiating LAB Connection in basic-03"
    Create_lab_info_json
    ssh -C -L 8820:10.28.3.10:8080 -L 8821:10.28.3.10:22 -L 8822:10.28.3.100:22 -L 8823:10.28.3.10:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "basic-04" ] || [ "$lab" = "basic-04a" ] ; then
    echo "Initiating LAB Connection in basic-04"
    Create_lab_info_json
    ssh -C -L 8830:10.28.3.12:8080 -L 8831:10.28.3.12:22 -L 8832:10.28.3.100:22 -L 8833:10.28.3.12:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "basic-05" ]; then
    echo "Initiating LAB Connection in basic-05"
    Create_lab_info_json
    ssh -C -L 8840:10.28.3.28:8080 -L 8841:10.28.3.28:22 -L 8842:10.28.3.103:22 -L 8843:10.28.3.28:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "basic-06" ]; then
    echo "Initiating LAB Connection in basic-06"
    Create_lab_info_json
    ssh -C -L 8850:10.28.3.30:8080 -L 8851:10.28.3.30:22 -L 8852:10.28.3.103:22 -L 8853:10.28.3.30:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "basic-07" ]; then
    echo "Initiating LAB Connection in basic-07"
    Create_lab_info_json
    ssh -C -L 8860:10.28.3.32:8080 -L 8861:10.28.3.32:22 -L 8862:10.28.3.103:22 -L 8863:10.28.3.32:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "basic-08" ]; then
    echo "Initiating LAB Connection in basic-08"
    Create_lab_info_json
    ssh -C -L 8870:10.28.3.34:8080 -L 8871:10.28.3.34:22 -L 8872:10.28.3.103:22 -L 8873:10.28.3.34:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "advance-01" ]; then
    echo "Initiating LAB Connection in advance-01"
    Create_lab_info_json
    ssh -C -L 8880:10.28.3.24:8080 -L 8881:10.28.3.24:22 -L 8882:10.28.3.102:22 -L 8883:10.28.3.24:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "advance-02" ]; then
    echo "Initiating LAB Connection in advance-02"
    Create_lab_info_json
    ssh -C -L 8890:10.28.3.26:8080 -L 8801:10.28.3.26:22 -L 8892:10.28.3.102:22 -L 8893:10.28.3.26:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "advance-03" ]; then
    echo "Initiating LAB Connection in advance-03"
    Create_lab_info_json
    ssh -C -L 8900:10.28.3.117:8080 -L 8901:10.28.3.117:22 -L 8902:10.28.3.115:22 -L 8903:10.28.3.117:5901 ubuntu@3.130.51.163
fi
if [ "$lab" = "scale-23b" ]; then
    echo "Initiating LAB Connection to Scale-23"
    Create_lab_info_json
    ssh -C -L 9000:10.28.3.56:8080 -L 9001:10.28.3.56:22 -L 9002:10.28.3.105:22 -L 9003:10.28.3.56:5901 ubuntu@3.130.51.163
else
    echo "Testbed is Not Available"
fi