I am attempting to declaratively set up a CISCO-anyconnect VPN connection in NetworkManager. I installed both openconnect and networkmanager-openconnect and enabled the networkmanager module, then proceeded to import a CISCO-anyconnect profile:
cmcli connection add \
connection.id foobar \
connection.type vpn \
vpn.service-type openconnect \
vpn.data cookie-flags=2,gateway=vpn.foo.bar,protocol=anyconnect vpn.secrets gateway=vpn.foo.bar.ac.at,gwcert=
The connection is imported properly. However, when trying to activate it from nmtui, I get the following error:
Could not activate connectionL The VPN service 'org.freedesktop.NetworkManager.openconnect' was not installed.
I suspect the plugin is not properly detected by NetworkManager.