瀏覽代碼

Rename to make it clear this is shaping.

Joe Clarke 2 年之前
父節點
當前提交
85f0de6bb6
共有 1 個文件被更改,包括 4 次插入4 次删除
  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: