mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
import name updates IPV4VariableTime to IPVariableTIme
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -17,7 +17,8 @@ from LANforge import LFUtils
|
||||
import realm
|
||||
import time
|
||||
import pprint
|
||||
from test_ipv4_variable_time import IPV4VariableTime
|
||||
from test_ip_variable_time import IPVariableTime
|
||||
|
||||
|
||||
class TTLSTest(LFCliBase):
|
||||
def __init__(self, host="localhost", port=8080,
|
||||
@@ -124,7 +125,7 @@ class TTLSTest(LFCliBase):
|
||||
self.station_profile.mode = 0
|
||||
|
||||
# Layer3 Traffic
|
||||
self.l3_cx_obj_udp = IPV4VariableTime(host=self.host, port=self.port,
|
||||
self.l3_cx_obj_udp = IPVariableTime(host=self.host, port=self.port,
|
||||
create_sta=False, sta_list=self.sta_list, traffic_type="lf_udp",
|
||||
upstream=self.upstream_port)
|
||||
self.l3_cx_obj_udp.cx_profile.name_prefix = "udp-"
|
||||
@@ -137,7 +138,7 @@ class TTLSTest(LFCliBase):
|
||||
self.l3_cx_obj_udp.cx_profile.side_b_min_pdu = 1500
|
||||
self.l3_cx_obj_udp.cx_profile.report_timer = 1000
|
||||
|
||||
self.l3_cx_obj_tcp = IPV4VariableTime(host=self.host, port=self.port,
|
||||
self.l3_cx_obj_tcp = IPVariableTime(host=self.host, port=self.port,
|
||||
create_sta=False, sta_list=self.sta_list, traffic_type="lf_tcp",
|
||||
upstream=self.upstream_port)
|
||||
self.l3_cx_obj_tcp.cx_profile.name_prefix = "tcp-"
|
||||
@@ -255,7 +256,6 @@ class TTLSTest(LFCliBase):
|
||||
# please see test_ipv4_variable_time for example of generating traffic
|
||||
return self.passes()
|
||||
|
||||
|
||||
def stop(self):
|
||||
# Bring stations down
|
||||
self.station_profile.admin_down()
|
||||
@@ -311,8 +311,8 @@ class TTLSTest(LFCliBase):
|
||||
else:
|
||||
self._fail("%s did not report traffic: %s" % (name, postVal), print_fail)
|
||||
|
||||
def main():
|
||||
|
||||
def main():
|
||||
parser = LFCliBase.create_basic_argparse(
|
||||
prog='test_ipv4_ttls.py',
|
||||
# formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
@@ -349,14 +349,17 @@ test_ipv4_ttls.py:
|
||||
optional.add_argument('--a_min', help='--a_min bps rate minimum for side_a', default=256000)
|
||||
optional.add_argument('--b_min', help='--b_min bps rate minimum for side_b', default=256000)
|
||||
optional.add_argument('--test_duration', help='--test_duration sets the duration of the test', default="5m")
|
||||
optional.add_argument('--key-mgmt', help="--key-mgt: { %s }"%", ".join(realm.wpa_ent_list()), default="WPA-EAP")
|
||||
optional.add_argument('--key-mgmt', help="--key-mgt: { %s }" % ", ".join(realm.wpa_ent_list()),
|
||||
default="WPA-EAP")
|
||||
optional.add_argument('--wpa_psk', help='wpa-ent pre shared key', default="[BLANK]")
|
||||
optional.add_argument('--eap', help='--eap eap method to use', default="TTLS")
|
||||
optional.add_argument('--identity', help='--identity eap identity string', default="testuser")
|
||||
optional.add_argument('--ttls_passwd', help='--ttls_passwd eap password string', default="testpasswd")
|
||||
optional.add_argument('--ttls_realm', help='--ttls_realm 802.11u home realm to use', default="localhost.localdomain")
|
||||
optional.add_argument('--ttls_realm', help='--ttls_realm 802.11u home realm to use',
|
||||
default="localhost.localdomain")
|
||||
optional.add_argument('--domain', help='--domain 802.11 domain to use', default="localhost.localdomain")
|
||||
optional.add_argument('--hessid', help='--hessid 802.11u HESSID (MAC addr format/peer for WDS)', default="00:00:00:00:00:01")
|
||||
optional.add_argument('--hessid', help='--hessid 802.11u HESSID (MAC addr format/peer for WDS)',
|
||||
default="00:00:00:00:00:01")
|
||||
optional.add_argument('--ieee80211w', help='--ieee80211w <disabled(0),optional(1),required(2)', default='1')
|
||||
optional.add_argument('--use_hs20', help='use HotSpot 2.0', default=False)
|
||||
optional.add_argument('--enable_pkc', help='enable opportunistic PMKSA WPA2 key caching', default=False)
|
||||
|
||||
Reference in New Issue
Block a user