diff options
author | aapostoliuk <a.apostoliuk@vyos.io> | 2023-02-14 12:48:56 +0200 |
---|---|---|
committer | aapostoliuk <a.apostoliuk@vyos.io> | 2023-02-14 13:16:03 +0200 |
commit | 2e61af88961d8180f5ae3d7c034aaaa53b91f388 (patch) | |
tree | 09a3185c0c57403fb04544a85490d0672f0d0a0b /src/op_mode | |
parent | 3d12327f39b95c5e9c7192361e90d1626e8b8bca (diff) | |
download | vyos-1x-2e61af88961d8180f5ae3d7c034aaaa53b91f388.tar.gz vyos-1x-2e61af88961d8180f5ae3d7c034aaaa53b91f388.zip |
ipsec: T4985: Fixed 'reset vpn ipsec-peer {peer}' command
Fixed 'reset vpn ipsec-peer {peer}' command.
The op-mode script uses value 'None' in the 'tunnel' parameter
to clear all CHILD SAs.
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/ipsec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/ipsec.py b/src/op_mode/ipsec.py index f6417764a..63fa05885 100755 --- a/src/op_mode/ipsec.py +++ b/src/op_mode/ipsec.py @@ -425,7 +425,7 @@ def get_peer_connections(peer, tunnel): return matches -def reset_peer(peer: str, tunnel:typing.Optional[str]): +def reset_peer(peer: str, tunnel:typing.Optional[str] = None): conns = get_peer_connections(peer, tunnel) if not conns: |