diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-01 18:40:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-01 18:40:21 +0100 |
commit | b13235d2b2a186be059690af88b243b33b37d60f (patch) | |
tree | f08b577494673b0c553025b344e3a640de7e6242 /python/vyos/validate.py | |
parent | 215ddbe0bc51417b7ba66298764810754b204082 (diff) | |
parent | 9fb9e5cade4ceccd98aefb854a12a2a42db7c672 (diff) | |
download | vyos-1x-b13235d2b2a186be059690af88b243b33b37d60f.tar.gz vyos-1x-b13235d2b2a186be059690af88b243b33b37d60f.zip |
Merge pull request #666 from c-po/t3171-rps
T3171: Ethernet RPS support
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") |