nm.device: remove unused _ipv6_has_changed helper

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
This commit is contained in:
Fernando Fernandez Mancera 2019-12-12 14:14:47 +01:00 committed by Till Maas
parent c2b5aebc41
commit 03bb579ce2

View File

@ -209,23 +209,6 @@ def _mtu_changed(dev, connection_profile):
return False
def _ipv6_changed(dev, connection_profile):
"""
Detecting that the IPv6 method changed is not possible at this stage,
therefore, if IPv6 is defined (i.e. the method if not 'ignore' or
'disabled'), IPv6 is considered as changed.
"""
ipv6_setting = connection_profile.get_setting_ip6_config()
if ipv6_setting:
methods = [nmclient.NM.SETTING_IP6_CONFIG_METHOD_IGNORE]
if nmclient.can_disable_ipv6():
# pylint: disable=no-member
methods.append(nmclient.NM.SETTING_IP6_CONFIG_METHOD_DISABLED)
# pylint: enable=no-member
return ipv6_setting.props.method not in methods
return False
def _activate_async(dev):
conn = connection.ConnectionProfile()
conn.nmdevice = dev