diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-07-18 19:33:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-18 21:33:24 +0300 |
commit | e2b05343b30d2f989968532106e792cbaf75ecf6 (patch) | |
tree | 4dca6b2d7f28862066c313d7990ac8936fca8264 /src/conf_mode/interfaces_openvpn.py | |
parent | 4d088e615adf5f9cb51b7d83c43f6476a6f1550b (diff) | |
download | vyos-1x-e2b05343b30d2f989968532106e792cbaf75ecf6.tar.gz vyos-1x-e2b05343b30d2f989968532106e792cbaf75ecf6.zip |
openvpn: T6591: deprecate OpenVPN server net30 topology (#3825)
Diffstat (limited to 'src/conf_mode/interfaces_openvpn.py')
-rwxr-xr-x | src/conf_mode/interfaces_openvpn.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces_openvpn.py b/src/conf_mode/interfaces_openvpn.py index 017010a61..0dc76b39a 100755 --- a/src/conf_mode/interfaces_openvpn.py +++ b/src/conf_mode/interfaces_openvpn.py @@ -432,6 +432,13 @@ def verify(openvpn): if IPv6Address(client['ipv6_ip'][0]) in v6PoolNet: print(f'Warning: Client "{client["name"]}" IP {client["ipv6_ip"][0]} is in server IP pool, it is not reserved for this client.') + if 'topology' in openvpn['server']: + if openvpn['server']['topology'] == 'net30': + DeprecationWarning('Topology net30 is deprecated '\ + 'and will be removed in future VyOS versions. '\ + 'Switch to "subnet" or "p2p"' + ) + # add mfa users to the file the mfa plugin uses if dict_search('server.mfa.totp', openvpn): user_data = '' |