mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
@@ -4,67 +4,41 @@
|
|||||||
# The Realm Class contains the configurable components for LANforge,
|
# The Realm Class contains the configurable components for LANforge,
|
||||||
# For example L3 / L4 cross connects, stations. Also contains helper methods
|
# For example L3 / L4 cross connects, stations. Also contains helper methods
|
||||||
# http://www.candelatech.com/cookbook.php?vol=cli&book=Python_Create_Test_Scripts_With_the_Realm_Class
|
# http://www.candelatech.com/cookbook.php?vol=cli&book=Python_Create_Test_Scripts_With_the_Realm_Class
|
||||||
|
#
|
||||||
|
|
||||||
# Written by Candela Technologies Inc.
|
# Written by Candela Technologies Inc.
|
||||||
# Updated by:
|
# Updated by:
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
# ---- ---- ---- ---- LANforge Base Imports ---- ---- ---- ----
|
# ---- ---- ---- ---- LANforge Base Imports ---- ---- ---- ----
|
||||||
|
from LANforge import LFRequest
|
||||||
import sys
|
from LANforge import LFUtils
|
||||||
import os
|
from LANforge.lfcli_base import LFCliBase
|
||||||
import importlib
|
# ---- ---- ---- ---- Profile Imports ---- ---- ---- ----
|
||||||
|
from l3_cxprofile import L3CXProfile
|
||||||
|
from l3_cxprofile2 import L3CXProfile2
|
||||||
|
from l4_cxprofile import L4CXProfile
|
||||||
|
from lf_attenmod import ATTENUATORProfile
|
||||||
|
from multicast_profile import MULTICASTProfile
|
||||||
|
from http_profile import HTTPProfile
|
||||||
|
from station_profile import StationProfile
|
||||||
|
from fio_endp_profile import FIOEndpProfile
|
||||||
|
from test_group_profile import TestGroupProfile
|
||||||
|
from dut_profile import DUTProfile
|
||||||
|
from vap_profile import VAPProfile
|
||||||
|
from mac_vlan_profile import MACVLANProfile
|
||||||
|
from wifi_monitor_profile import WifiMonitor
|
||||||
|
from gen_cxprofile import GenCXProfile
|
||||||
|
from qvlan_profile import QVLANProfile
|
||||||
|
from port_utils import PortUtils
|
||||||
|
from lfdata import LFDataCollection
|
||||||
|
# ---- ---- ---- ---- Other Imports ---- ---- ---- ----
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
import pprint
|
import pprint
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
if 'lanforge-scripts' not in sys.path:
|
|
||||||
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../")))
|
|
||||||
|
|
||||||
LANforge = importlib.import_module("lanforge-scripts.py-json.LANforge")
|
|
||||||
LFUtils = importlib.import_module("lanforge-scripts.py-json.LANforge.LFUtils")
|
|
||||||
lfcli_base = importlib.import_module("lanforge-scripts.py-json.LANforge.lfcli_base")
|
|
||||||
LFCliBase = lfcli_base.LFCliBase
|
|
||||||
|
|
||||||
# ---- ---- ---- ---- Profile Imports ---- ---- ---- ----
|
|
||||||
|
|
||||||
l3_cxprofile = importlib.import_module("lanforge-scripts.py-json.l3_cxprofile")
|
|
||||||
L3CXProfile = l3_cxprofile.L3CXProfile
|
|
||||||
l3_cxprofile2 = importlib.import_module("lanforge-scripts.py-json.l3_cxprofile2")
|
|
||||||
L3CXProfile2 = l3_cxprofile2.L3CXProfile2
|
|
||||||
l4_cxprofile = importlib.import_module("lanforge-scripts.py-json.l4_cxprofile")
|
|
||||||
L4CXProfile = l4_cxprofile.L4CXProfile
|
|
||||||
lf_attenmod = importlib.import_module("lanforge-scripts.py-json.lf_attenmod")
|
|
||||||
ATTENUATORProfile = lf_attenmod.ATTENUATORProfile
|
|
||||||
multicast_profile = importlib.import_module("lanforge-scripts.py-json.multicast_profile")
|
|
||||||
MULTICASTProfile = multicast_profile.MULTICASTProfile
|
|
||||||
http_profile = importlib.import_module("lanforge-scripts.py-json.http_profile")
|
|
||||||
HTTPProfile = http_profile.HTTPProfile
|
|
||||||
station_profile = importlib.import_module("lanforge-scripts.py-json.station_profile")
|
|
||||||
StationProfile = station_profile.StationProfile
|
|
||||||
fio_endp_profile = importlib.import_module("lanforge-scripts.py-json.fio_endp_profile")
|
|
||||||
FIOEndpProfile = fio_endp_profile.FIOEndpProfile
|
|
||||||
test_group_profile = importlib.import_module("lanforge-scripts.py-json.test_group_profile")
|
|
||||||
TestGroupProfile = test_group_profile.TestGroupProfile
|
|
||||||
dut_profile = importlib.import_module("lanforge-scripts.py-json.dut_profile")
|
|
||||||
DUTProfile = dut_profile.DUTProfile
|
|
||||||
vap_profile = importlib.import_module("lanforge-scripts.py-json.vap_profile")
|
|
||||||
VAPProfile = vap_profile.VAPProfile
|
|
||||||
mac_vlan_profile = importlib.import_module("lanforge-scripts.py-json.mac_vlan_profile")
|
|
||||||
MACVLANProfile = mac_vlan_profile.MACVLANProfile
|
|
||||||
wifi_monitor_profile = importlib.import_module("lanforge-scripts.py-json.wifi_monitor_profile")
|
|
||||||
WifiMonitor = wifi_monitor_profile.WifiMonitor
|
|
||||||
gen_cxprofile = importlib.import_module("lanforge-scripts.py-json.gen_cxprofile")
|
|
||||||
GenCXProfile = gen_cxprofile.GenCXProfile
|
|
||||||
qvlan_profile = importlib.import_module("lanforge-scripts.py-json.qvlan_profile")
|
|
||||||
QVLANProfile = qvlan_profile.QVLANProfile
|
|
||||||
port_utils = importlib.import_module("lanforge-scripts.py-json.port_utils")
|
|
||||||
PortUtils = port_utils.PortUtils
|
|
||||||
lfdata = importlib.import_module("lanforge-scripts.py-json.lfdata")
|
|
||||||
LFDataCollection = lfdata.LFDataCollection
|
|
||||||
|
|
||||||
# ---- ---- ---- ---- Other Imports ---- ---- ---- ----
|
|
||||||
|
|
||||||
|
|
||||||
def wpa_ent_list():
|
def wpa_ent_list():
|
||||||
return [
|
return [
|
||||||
|
|||||||
Reference in New Issue
Block a user