diff options
author | Christian Breunig <christian@breunig.cc> | 2023-02-14 17:41:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 17:41:48 +0100 |
commit | bfbc88defa842ae6b7234db8603238e1c67ba486 (patch) | |
tree | 09a3185c0c57403fb04544a85490d0672f0d0a0b | |
parent | 3d12327f39b95c5e9c7192361e90d1626e8b8bca (diff) | |
parent | 2e61af88961d8180f5ae3d7c034aaaa53b91f388 (diff) | |
download | vyos-1x-bfbc88defa842ae6b7234db8603238e1c67ba486.tar.gz vyos-1x-bfbc88defa842ae6b7234db8603238e1c67ba486.zip |
Merge pull request #1819 from aapostoliuk/T4985-sagitta
ipsec: T4985: Fixed 'reset vpn ipsec-peer {peer}' command
-rw-r--r-- | op-mode-definitions/vpn-ipsec.xml.in | 2 | ||||
-rwxr-xr-x | src/op_mode/ipsec.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/vpn-ipsec.xml.in b/op-mode-definitions/vpn-ipsec.xml.in index 803ce4cc2..f6b5e6020 100644 --- a/op-mode-definitions/vpn-ipsec.xml.in +++ b/op-mode-definitions/vpn-ipsec.xml.in @@ -28,7 +28,7 @@ <command>sudo ${vyos_op_scripts_dir}/ipsec.py reset_peer --peer="$4" --tunnel="vti"</command> </node> </children> - <command>sudo ${vyos_op_scripts_dir}/ipsec.py reset_peer --peer="$4" --tunnel="all"</command> + <command>sudo ${vyos_op_scripts_dir}/ipsec.py reset_peer --peer="$4"</command> </tagNode> <tagNode name="ipsec-profile"> <properties> 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: |