mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Fixed incorrect file destination
This commit is contained in:
26
py-json/realm_test.py
Executable file
26
py-json/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