diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-01 18:27:23 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-01 18:35:14 +0100 |
commit | 9fb9e5cade4ceccd98aefb854a12a2a42db7c672 (patch) | |
tree | f08b577494673b0c553025b344e3a640de7e6242 /python/vyos/validate.py | |
parent | 09bc3cdff7d7c70885e232f4ada8b1db7e0026ed (diff) | |
download | vyos-1x-9fb9e5cade4ceccd98aefb854a12a2a42db7c672.tar.gz vyos-1x-9fb9e5cade4ceccd98aefb854a12a2a42db7c672.zip |
ethernet: T3171: add CLI option to enable RPS (Receive Packet Steering)
set interfaces ethernet <interface> offload rps
Diffstat (limited to 'python/vyos/validate.py')
-rw-r--r-- | python/vyos/validate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/validate.py b/python/vyos/validate.py index 98bd40f74..acd6086ff 100644 --- a/python/vyos/validate.py +++ b/python/vyos/validate.py @@ -1,4 +1,4 @@ -# Copyright 2018-2020 VyOS maintainers and contributors <maintainers@vyos.io> +# Copyright 2018-2021 VyOS maintainers and contributors <maintainers@vyos.io> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -165,7 +165,7 @@ def assert_boolean(b): def assert_range(value, lower=0, count=3): - if int(value) not in range(lower,lower+count): + if int(value, 16) not in range(lower, lower+count): raise ValueError("Value out of range") |