Fix bw limits on nodes that don't use eth0 as the default network device.
maxexemptrate = cap[5]
# Figure out what the current node bandwidth cap is
maxexemptrate = cap[5]
# Figure out what the current node bandwidth cap is
# Set defaults
if share is None:
# Set defaults
if share is None:
# Defaults
numeric = False
# Defaults
numeric = False
(opts, argv) = getopt.getopt(sys.argv[1:], "d:nr:q:vh")
for (opt, optval) in opts:
(opts, argv) = getopt.getopt(sys.argv[1:], "d:nr:q:vh")
for (opt, optval) in opts:
elif opt == '-h':
usage()
elif opt == '-h':
usage()
+ if not bwcap:
+ bwcap = get_bwcap(dev)
+