Browse Source

Rename to make it clear this is shaping.

Joe Clarke 2 years ago
parent
commit
85f0de6bb6
1 changed files with 4 additions and 4 deletions
  1. 4 4
      setup-meraki-nets.py

+ 4 - 4
setup-meraki-nets.py

@@ -123,17 +123,17 @@ def main():
             errors += 1
             continue
 
-        if "client_limit" in network:
-            if not isinstance(network["client_limit"], int) or network["client_limit"] < 0:
+        if "client_bandwidth_limit" in network:
+            if not isinstance(network["client_bandwidth_limit"], int) or network["client_bandwidth_limit"] < 0:
                 print(
-                    "{}Client limit for network {} must be an integer greater than or equal to 0!{}".format(
+                    "{}Client bandwidth limit for network {} must be an integer greater than or equal to 0!{}".format(
                         Fore.RED, nname, Style.RESET_ALL
                     )
                 )
                 nerrors += 1
                 continue
 
-            shape_ret = net_obj.apply_shaping(int(network["client_limit"]))
+            shape_ret = net_obj.apply_shaping(int(network["client_bandwidth_limit"]))
             if shape_ret:
                 print("{}update: added traffic shaping to network {}{}".format(Fore.YELLOW, nname, Style.RESET_ALL))
             else: