mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
Changed filename and moved to py-scripts
This commit is contained in:
26
py-scripts/realm_test.py
Executable file
26
py-scripts/realm_test.py
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import Realm
|
||||
|
||||
|
||||
test = Realm.Realm("http://localhost:8080")
|
||||
|
||||
staList = test.stationList()
|
||||
cxList = test.cxList()
|
||||
vapList = test.vapList()
|
||||
|
||||
|
||||
print(f"CXs: {cxList}\n")
|
||||
print(f"Stations: {staList}\n")
|
||||
print(f"VAPs: {vapList}\n")
|
||||
|
||||
cxTest = Realm.CXProfile()
|
||||
|
||||
cxTest.addPorts("A", "lf_udp", test.findPortsLike("sta+"))
|
||||
cxTest.create()
|
||||
|
||||
print(test.findPortsLike("sta+"))
|
||||
|
||||
print(test.findPortsLike("sta0*"))
|
||||
|
||||
print(test.findPortsLike("sta[0000..0002]"))
|
||||
Reference in New Issue
Block a user