Temporary: mark --updateonly as unavailable if OnAStick

The partial reload mechanism *really* doesn't work with OnAStick
configurations at present. There's a lot of work required to make
it function. In the meantime, warn the poor user that this
isn't going to work.

Affects ISSUE #129
This commit is contained in:
Herbert Wolverson 2023-02-15 17:14:29 +00:00
parent e7d7429058
commit da44d38888

View File

@ -1332,6 +1332,10 @@ if __name__ == '__main__':
elif args.clearrules:
tearDown(interfaceA, interfaceB)
elif args.updateonly:
# Single-interface updates don't work at all right now.
if OnAStick:
print("--updateonly is not supported for single-interface configurations")
os.exit(-1)
refreshShapersUpdateOnly()
else:
# Refresh and/or set up queues