summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-01-10 19:43:48 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2024-01-10 19:43:48 +0000
commit8452d8f49216d224bc5d5751354414274982f5be (patch)
tree90fec1ec4e49c75b530c000ecb2b62a8a1d40a11
parentaebb458262072457c6a3840d1b17031fbd780eca (diff)
downloadvyos-1x-8452d8f49216d224bc5d5751354414274982f5be.tar.gz
vyos-1x-8452d8f49216d224bc5d5751354414274982f5be.zip
T5918: Fix typo in verify vpn ipsec interface
The correct CLI command is `interface` and not `interfaces` ``` set vpn ipsec interface xxx ```
-rwxr-xr-xsrc/conf_mode/vpn_ipsec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_ipsec.py b/src/conf_mode/vpn_ipsec.py
index 5bdcf2fa1..adbac0405 100755
--- a/src/conf_mode/vpn_ipsec.py
+++ b/src/conf_mode/vpn_ipsec.py
@@ -159,7 +159,7 @@ def verify(ipsec):
if 'id' not in psk_config or 'secret' not in psk_config:
raise ConfigError(f'Authentication psk "{psk}" missing "id" or "secret"')
- if 'interfaces' in ipsec :
+ if 'interface' in ipsec:
for ifname in ipsec['interface']:
verify_interface_exists(ifname)