Page MenuHomePhabricator

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?
Perfectly compatible

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 closed this task as Resolved.Sep 15 2019, 8:52 AM
c-po added a project: VyOS 1.3 Equuleus.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.Sun, Oct 13, 3:02 PM