summaryrefslogtreecommitdiff
path: root/python/vyos/validate.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-01 18:40:21 +0100
committerGitHub <noreply@github.com>2021-01-01 18:40:21 +0100
commitb13235d2b2a186be059690af88b243b33b37d60f (patch)
treef08b577494673b0c553025b344e3a640de7e6242 /python/vyos/validate.py
parent215ddbe0bc51417b7ba66298764810754b204082 (diff)
parent9fb9e5cade4ceccd98aefb854a12a2a42db7c672 (diff)
downloadvyos-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.py4
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")