Page MenuHomeVyOS Platform

The command show remote-config does not work for remote-platform openvpn
Closed, ResolvedPublicBUG

Description

Independent of a simple or complex OpenVPN configuration the following command does not work:

run show remote-config openvpn vtun0 remote-platform openvpn

No results are returned.
Here is the configuration part:

[edit]
vyos@vyos# show int openvpn
 openvpn vtun0 {
     description "OpenVPN Test"
     local-port 12345
     mode server
     openvpn-option "--push route 192.168.0.0 255.255.0.0"
     protocol tcp-passive
     server {
         subnet 10.100.1.0/24
     }
     tls {
         ca-cert-file /config/auth/openvpn/ca.crt
         cert-file /config/easy-rsa/keys/cert.crt
         dh-file /config/easy-rsa/keys/dh2048.pem
         key-file /config/easy-rsa/keys/key.key
     }
 }

Best Regards
Markus

Details

Difficulty level
Normal (likely a few hours)
Version
VyOS 1.2.0-rc3
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

zsdc changed the task status from Open to Confirmed.Mar 11 2021, 9:10 PM
zsdc edited projects, added VyOS 1.4 Sagitta; removed VyOS-1.2.0-GA.
zsdc added a subscriber: zsdc.

Still does not work in 1.4-rolling-202102060218

zsdc changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).Mar 11 2021, 9:10 PM
zsdc set Is it a breaking change? to Perfectly compatible.

Also bug for config "vyos" set mode clientset remote-port 12345

vyos@r6-roll# run show remote-config openvpn vtun0 remote-platform vyos 
NOTE: authentication options are deliberately left out,
since we cannot know file paths on a remote system

edit interfaces openvpn vtun0
set mode clientset remote-port 12345
set protocol tcp-passive
top
[edit]

The best option for now would be to delete those commands and re-implement them in a separate feature request if required.
https://github.com/vyos/vyatta-op/tree/current/templates/show/remote-config

Deprecated commands are deleted.
It should be reimplemented if it is needed in a separate feature request/task