1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

python/provision: remove unused linklocal=False argument from interface_ips_v6()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Bjoern Jacke <bj@sernet.de>

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Aug 30 17:33:58 CEST 2013 on sn-devel-104
This commit is contained in:
Stefan Metzmacher 2013-08-30 15:18:44 +02:00 committed by Bjoern Jacke
parent 9edc0276c7
commit 3430448fc0

View File

@ -1705,12 +1705,12 @@ def interface_ips_v4(lp):
return ret
def interface_ips_v6(lp, linklocal=False):
def interface_ips_v6(lp):
"""return only IPv6 IPs"""
ips = samba.interface_ips(lp, False)
ret = []
for i in ips:
if i.find(':') != -1 and (linklocal or i.find('%') == -1):
if i.find(':') != -1:
ret.append(i)
return ret
@ -2007,7 +2007,7 @@ def provision(logger, session_info, credentials, smbconf=None,
if hostip6 is None:
logger.info("Looking up IPv6 addresses")
hostips = interface_ips_v6(lp, linklocal=False)
hostips = interface_ips_v6(lp)
if hostips:
hostip6 = hostips[0]
if len(hostips) > 1: