mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-30 18:27:53 +00:00
realm: renames StationProfile.build() to StationProfile.create(), future profile methods will all be named create()
This commit is contained in:
@@ -361,7 +361,7 @@ class StationProfile:
|
||||
|
||||
|
||||
# Checks for errors in initialization values and creates specified number of stations using init parameters
|
||||
def build(self, resource, radio, num_stations, dry_run=False, debug=False):
|
||||
def create(self, resource, radio, num_stations, dry_run=False, debug=False):
|
||||
# try:
|
||||
# resource = resource_radio[0: resource_radio.index(".")]
|
||||
# name = resource_radio[resource_radio.index(".") + 1:]
|
||||
|
||||
@@ -56,7 +56,7 @@ profile = localrealm.new_station_profile()
|
||||
profile.use_wpa2(True, "jedway-wpa2-x2048-5-1", "jedway-wpa2-x2048-5-1")
|
||||
profile.set_command_flag("add_sta", "80211u_enable", 1)
|
||||
profile.set_prefix("0100")
|
||||
profile.build(1, "wiphy0", 5)
|
||||
profile.create(1, "wiphy0", 5)
|
||||
|
||||
try:
|
||||
sta_list = localrealm.station_list()
|
||||
|
||||
Reference in New Issue
Block a user