realm: renames StationProfile.build() to StationProfile.create(), future profile methods will all be named create()

This commit is contained in:
Jed Reynolds
2020-06-09 10:16:22 -07:00
parent d68e193d6e
commit 92ea2a41da
2 changed files with 2 additions and 2 deletions

View File

@@ -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:]

View File

@@ -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()