Page MenuHomeVyOS Platform

openvpn: 'show openvpn client' error
Closed, ResolvedPublic

Description

When we don't have defined remote-port, which is not required, just used default 1194.

set interfaces openvpn vtun0 mode 'client'
set interfaces openvpn vtun0 remote-host 'x.x.x.x'
set interfaces openvpn vtun0 tls ca-cert-file '/config/auth/ovpn/ca.crt'
set interfaces openvpn vtun0 tls cert-file '/config/auth/ovpn/branch1.crt'
set interfaces openvpn vtun0 tls key-file '/config/auth/ovpn/branch1.key'
commit
vyos@vyos-rtr01# run show openvpn client 
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/show_openvpn.py", line 166, in <module>
    client['remote'] = str(remote_host[0]) + ':' + remote_port
TypeError: Can't convert 'NoneType' object to str implicitly

Details

Difficulty level
Unknown (require assessment)
Version
1.2-rolling-201909141713
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Dmitry changed the task status from Open to In progress.Sep 14 2019, 8:51 PM
Dmitry triaged this task as Normal priority.
Dmitry created this task.
Dmitry created this object in space S1 VyOS Public.
c-po added a project: VyOS 1.3 Equuleus.
erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 6:48 PM