diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-01-10 19:43:48 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-01-10 20:02:52 +0000 |
commit | 60127f12d6bd4fa9fb869167bd3582bbb9c5c19f (patch) | |
tree | 7e957495cf431604970c81f6120e4dc7a880d089 /src/conf_mode | |
parent | 3eaf0ca3978aa93ece14c267e5ed9d1bcae3875f (diff) | |
download | vyos-1x-60127f12d6bd4fa9fb869167bd3582bbb9c5c19f.tar.gz vyos-1x-60127f12d6bd4fa9fb869167bd3582bbb9c5c19f.zip |
T5918: Fix typo in verify vpn ipsec interface
The correct CLI command is `interface` and not `interfaces`
```
set vpn ipsec interface xxx
```
(cherry picked from commit 8452d8f49216d224bc5d5751354414274982f5be)
Diffstat (limited to 'src/conf_mode')
-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) |