diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2025-03-20 16:22:10 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2025-04-14 11:50:41 +0200 |
commit | f3e77facc06750caafb100cdc6e96a1dc362182a (patch) | |
tree | c6e1a5781733ebaa03344bf34f6858e152cf3661 /python/vyos/kea.py | |
parent | d1e8dbd33ad84999ea4feea075d723068628ab1d (diff) | |
download | vyos-1x-f3e77facc06750caafb100cdc6e96a1dc362182a.tar.gz vyos-1x-f3e77facc06750caafb100cdc6e96a1dc362182a.zip |
kea: T7281: Use Kea internal option for option 121 routes, remove option 249
Remove legacy windows static route on option 249
Diffstat (limited to 'python/vyos/kea.py')
-rw-r--r-- | python/vyos/kea.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py index 9fc5dde3d..264142f13 100644 --- a/python/vyos/kea.py +++ b/python/vyos/kea.py @@ -21,7 +21,6 @@ from datetime import datetime from datetime import timezone from vyos.template import is_ipv6 -from vyos.template import isc_static_route from vyos.template import netmask_from_cidr from vyos.utils.dict import dict_search_args from vyos.utils.file import file_permissions @@ -111,22 +110,21 @@ def kea_parse_options(config): default_route = '' if 'default_router' in config: - default_route = isc_static_route('0.0.0.0/0', config['default_router']) + default_route = f'0.0.0.0/0 - {config["default_router"]}' routes = [ - isc_static_route(route, route_options['next_hop']) + f'{route} - {route_options["next_hop"]}' for route, route_options in config['static_route'].items() ] options.append( { - 'name': 'rfc3442-static-route', + 'name': 'classless-static-route', 'data': ', '.join( routes if not default_route else routes + [default_route] ), } ) - options.append({'name': 'windows-static-route', 'data': ', '.join(routes)}) if 'time_zone' in config: with open('/usr/share/zoneinfo/' + config['time_zone'], 'rb') as f: |