Commit d9035fe5 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕 Committed by Vladimír Beneš
Browse files

openvpn: tolerate link-local IPv6 addresses in IPv4 tests

The VPN interface gets an IPv6 link-local address even when the server
doesn't supply any other IPv6 addresses. Unless IPv6 is disabled, this
is the correct behavior. It was always the case with both NetworkManager
and the standalone openvpn client.

Before NetworkManager/next, NetworkManager wouldn't expose these
addresses on the VPN active connection. Given the address is actually
there, the new behavior is better. It's also very unlikely to cause any
unwanted effects.

Adjust the tests to accomodate for that.
parent 2752d4ca
......@@ -31,7 +31,7 @@
* Execute "nmcli con up openvpn ifname tun0"
Then "VPN.VPN-STATE:.*VPN connected" is visible with command "nmcli c show openvpn"
Then "IP4.ADDRESS.*172.31.70.*/32" is visible with command "nmcli c show openvpn"
Then "IP6.ADDRESS" is not visible with command "nmcli c show openvpn"
Then "IP6.ADDRESS" is not visible with command "nmcli c show openvpn |grep -v fe80::"
And "default" is visible with command "ip r |grep ^default | grep -v eth0"
......@@ -46,7 +46,7 @@
* Bring "up" connection "openvpn"
Then "VPN.VPN-STATE:.*VPN connected" is visible with command "nmcli c show openvpn"
And "IP4.ADDRESS.*172.31.70.*/32" is visible with command "nmcli c show openvpn"
And "IP6.ADDRESS" is not visible with command "nmcli c show openvpn"
And "IP6.ADDRESS" is not visible with command "nmcli c show openvpn |grep -v fe80::"
And "default" is not visible with command "ip r |grep ^default | grep -v eth0"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment