mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Changed use_wpa2 to use_security function
This commit is contained in:
@@ -43,8 +43,7 @@ class IPv4Test(LFCliBase):
|
||||
|
||||
def build(self):
|
||||
# Build stations
|
||||
if self.security == "wpa2":
|
||||
self.station_profile.use_wpa2(True, self.ssid, self.password)
|
||||
self.station_profile.use_security(self.security, self.ssid, self.password)
|
||||
self.station_profile.set_number_template(self.number_template)
|
||||
print("Creating stations")
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
|
||||
@@ -83,8 +83,7 @@ class IPV4L4(LFCliBase):
|
||||
|
||||
def build(self):
|
||||
# Build stations
|
||||
if self.security == "wpa2":
|
||||
self.station_profile.use_wpa2(True, self.ssid, self.password)
|
||||
self.station_profile.use_security(self.security, self.ssid, self.password)
|
||||
self.station_profile.set_number_template(self.number_template)
|
||||
print("Creating stations")
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
|
||||
@@ -79,8 +79,7 @@ class IPV4L4(LFCliBase):
|
||||
|
||||
def build(self):
|
||||
# Build stations
|
||||
if self.security == "wpa2":
|
||||
self.station_profile.use_wpa2(True, self.ssid, self.password)
|
||||
self.station_profile.use_security(self.security, self.ssid, self.password)
|
||||
self.station_profile.set_number_template(self.number_template)
|
||||
print("Creating stations")
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
|
||||
@@ -134,8 +134,7 @@ class IPV4VariableTime(LFCliBase):
|
||||
debug=self.debug)
|
||||
|
||||
def build(self):
|
||||
if self.security == "wpa2":
|
||||
self.station_profile.use_wpa2(True, self.ssid, self.password)
|
||||
self.station_profile.use_security(self.security, self.ssid, self.password)
|
||||
self.station_profile.set_number_template(self.number_template)
|
||||
print("Creating stations")
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
|
||||
@@ -44,8 +44,7 @@ class IPv6Test(LFCliBase):
|
||||
self.station_profile.mode = 0
|
||||
|
||||
def build(self):
|
||||
if self.security == "wpa2":
|
||||
self.station_profile.use_wpa2(True, self.ssid, self.password)
|
||||
self.station_profile.use_security(self.security, self.ssid, self.password)
|
||||
self.profile.set_number_template(self.prefix)
|
||||
print("Creating stations")
|
||||
self.profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
|
||||
@@ -136,8 +136,7 @@ class IPV6VariableTime(LFCliBase):
|
||||
debug=self.debug)
|
||||
|
||||
def build(self):
|
||||
if self.security == "wpa2":
|
||||
self.station_profile.use_wpa2(True, self.ssid, self.password)
|
||||
self.station_profile.use_security(self.security, self.ssid, self.password)
|
||||
self.station_profile.set_number_template(self.number_template)
|
||||
print("Creating stations")
|
||||
self.station_profile.set_command_flag("add_sta", "create_admin_down", 1)
|
||||
|
||||
Reference in New Issue
Block a user