Page MenuHomeVyOS Platform

Openconnect server incorrect unconfigured check
Closed, ResolvedPublicBUG

Description

Openconnect server incorrect unconfigured check
To reproduce:

set vpn openconnect authentication local-users username foo password bar
commit

commit:

vyos@r1# commit
[ vpn openconnect ]
VyOS had an issue completing a command.

Report time:      2022-12-04 10:03:25
Image version:    VyOS 1.4-rolling-202211260318
Release train:    current

Built by:         [email protected]
Built on:         Sat 26 Nov 2022 03:18 UTC
Build UUID:       b1a6eb3f-41f5-4731-a4be-bc332bea4b69
Build commit ID:  ef7d02b09c49b4

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:     
Hardware UUID:    4f036c37-d678-4725-8222-8eb52d9ceae9

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/vpn_openconnect.py", line 265, in <module>
    c = get_config()
  File "/usr/libexec/vyos/conf_mode/vpn_openconnect.py", line 61, in get_config
    if "local" in ocserv["authentication"]["mode"]:
KeyError: 'mode'



[[vpn openconnect]] failed
Commit failed
[edit]
vyos@r1#

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.4-rolling-202211260318
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)