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