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