diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-01-10 19:43:48 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-01-10 19:43:48 +0000 |
commit | 8452d8f49216d224bc5d5751354414274982f5be (patch) | |
tree | 90fec1ec4e49c75b530c000ecb2b62a8a1d40a11 /src/conf_mode/vpn_ipsec.py | |
parent | aebb458262072457c6a3840d1b17031fbd780eca (diff) | |
download | vyos-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
```
Diffstat (limited to 'src/conf_mode/vpn_ipsec.py')
-rwxr-xr-x | src/conf_mode/vpn_ipsec.py | 2 |
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) |