mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
sta_connect.py: fixes UDP connections, now setting UseAutoNat, speeds up report timer
This commit is contained in:
@@ -253,6 +253,13 @@ class StaConnect(LFCliBase):
|
||||
}
|
||||
self.json_post("/cli-json/add_endp", data)
|
||||
|
||||
data = {
|
||||
"name" : "testUDP-%s-A" % sta_name,
|
||||
"flag" : "UseAutoNAT",
|
||||
"val" : 1
|
||||
}
|
||||
self.json_post("/cli-json/set_endp_flag", data)
|
||||
|
||||
data = {
|
||||
"alias": "testUDP-%s-B" % sta_name,
|
||||
"shelf": 1,
|
||||
@@ -264,6 +271,13 @@ class StaConnect(LFCliBase):
|
||||
}
|
||||
self.json_post("/cli-json/add_endp", data)
|
||||
|
||||
data = {
|
||||
"name" : "testUDP-%s-B" % sta_name,
|
||||
"flag" : "UseAutoNAT",
|
||||
"val" : 1
|
||||
}
|
||||
self.json_post("/cli-json/set_endp_flag", data)
|
||||
|
||||
# Create CX
|
||||
data = {
|
||||
"alias": "testUDP-%s" % sta_name,
|
||||
@@ -273,6 +287,13 @@ class StaConnect(LFCliBase):
|
||||
}
|
||||
self.json_post("/cli-json/add_cx", data)
|
||||
|
||||
data = {
|
||||
"test_mgr": "default_tm",
|
||||
"cx_name": "testUDP-%s" % sta_name,
|
||||
"milliseconds": 1000
|
||||
}
|
||||
self.json_post("/cli-json/set_cx_report_timer", data)
|
||||
|
||||
# Create TCP endpoints
|
||||
cx_names["testTCP-"+sta_name] = { "a": "testUDP-%s-A" % sta_name,
|
||||
"b": "testUDP-%s-B" % sta_name}
|
||||
@@ -307,6 +328,13 @@ class StaConnect(LFCliBase):
|
||||
}
|
||||
self.json_post("/cli-json/add_cx", data)
|
||||
|
||||
data = {
|
||||
"test_mgr": "default_tm",
|
||||
"cx_name": "testTCP-%s" % sta_name,
|
||||
"milliseconds": 1000
|
||||
}
|
||||
self.json_post("/cli-json/set_cx_report_timer", data)
|
||||
|
||||
# start cx traffic
|
||||
print("\nStarting CX Traffic")
|
||||
for cx_name in cx_names.keys():
|
||||
|
||||
Reference in New Issue
Block a user