|
@@ -258,7 +258,7 @@ def main():
|
|
|
print("{}update: Update VLAN {} ({}){}".format(Fore.YELLOW, vname, vargs_str, Style.RESET_ALL))
|
|
|
|
|
|
if "ssids" in network:
|
|
|
- if len(network["ssids"]) > 15:
|
|
|
+ if len(network["ssids"].keys()) > 15:
|
|
|
print("{}Only fifteen SSIDs are allowed per network!{}".format(Fore.RED, Style.RESET_ALL))
|
|
|
nerrors += 1
|
|
|
else:
|
|
@@ -276,6 +276,15 @@ def main():
|
|
|
nerrors += 1
|
|
|
else:
|
|
|
print("{}update: Update SSID {} ({}){}".format(Fore.YELLOW, sname, sargs_str, Style.RESET_ALL))
|
|
|
+
|
|
|
+ if "allow_lan_access" in ssid and ssid["allow_lan_access"]:
|
|
|
+ sres = ssid_obj.allow_local_lan()
|
|
|
+ if not sres:
|
|
|
+ print("{}Error allowing local LAN access for SSID {}!{}".format(Fore.RED, sname, Style.RESET_ALL))
|
|
|
+ nerrors += 1
|
|
|
+ else:
|
|
|
+ print("{}update: Allowing local LAN access for SSID {}{}".format(Fore.YELLOW, sname, Style.RESET_ALL))
|
|
|
+
|
|
|
si += 1
|
|
|
|
|
|
if "switches" in network:
|