Page MenuHomeVyOS Platform

openvpn: setting "server client" config without "server client ip" results in ValueError: '' does not appear to be an IPv4 or IPv6 address
Closed, ResolvedPublic

Description

[edit interfaces openvpn vtun0]
vyos@vyos# delete server client client1 ip 
[edit interfaces openvpn vtun0]
vyos@vyos# commit
[ interfaces openvpn vtun0 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-openvpn.py", line 1037, in <module>
    verify(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-openvpn.py", line 888, in verify
    if not ip_address(client['ip']) in ip_network(subnet):
  File "/usr/lib/python3.7/ipaddress.py", line 54, in ip_address
    address)
ValueError: '' does not appear to be an IPv4 or IPv6 address

[[interfaces openvpn vtun0]] failed
Commit failed

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

jjakob created this task.Sat, Mar 21, 6:18 PM
jjakob created this object in space S1 VyOS Public.
jjakob claimed this task.Wed, Mar 25, 4:10 PM
jjakob triaged this task as Normal priority.
jjakob closed this task as Resolved.Wed, Mar 25, 5:48 PM
jjakob moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.