diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/kea.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py index b782111c9..71ec82045 100644 --- a/python/vyos/kea.py +++ b/python/vyos/kea.py @@ -749,7 +749,7 @@ def _build_option_match_condition(option_number, match_config): # length is expressed in bytes; a hex literal is '0x' + 2 hex digits per # byte, rounded up since Kea itself pads an odd number of hex digits # with a leading zero - length = substring_config.get('length') or str((len(value_hex) - 1) // 2) + length = str((len(value_hex) - 1) // 2) return f'substring({kea_path}.hex, {offset}, {length}) == {value_hex}' return _build_hex_condition(kea_path, match_config['value']) |
