From 3b9e283855556707d3df27465f571efb869aeb9b Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 18 Jul 2024 19:33:24 +0100 Subject: openvpn: T6591: deprecate OpenVPN server net30 topology (#3825) (cherry picked from commit e2b05343b30d2f989968532106e792cbaf75ecf6) --- src/conf_mode/interfaces_openvpn.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/conf_mode/interfaces_openvpn.py') 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 = '' -- cgit v1.2.3