Robert Chacón 2023-02-07 06:24:49 -07:00 committed by GitHub
parent f89e2d5847
commit 4caf9712cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ import subprocess
import warnings
import argparse
import logging
from ispConfig import interfaceA, interfaceB, enableActualShellCommands
from ispConfig import interfaceA, interfaceB, enableActualShellCommands, upstreamBandwidthCapacityDownloadMbps, upstreamBandwidthCapacityUploadMbps
def shell(command):
if enableActualShellCommands:
@ -103,7 +103,8 @@ def printCircuitClassInfo(ipAddress):
print("Upload rate/ceil: " + uploadMin + "/" + uploadMax)
print("burst/cburst: " + burst + "/" + cburst)
else:
print("Invalid IP address provided")
bwString = str(upstreamBandwidthCapacityDownloadMbps) + '/' + str(upstreamBandwidthCapacityUploadMbps)
print("Invalid IP address provided (default queue limit is " + bwString + " Mbps)")
def findClassIDForCircuitByIP(data, inputIP, classID):
for node in data: