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