Isolate SUN IPv6 fix to Sun Os only

This commit is contained in:
David Murphy 2016-09-21 11:25:25 -06:00
parent 6f54e16cdf
commit cbcdb472fe

View file

@ -589,7 +589,10 @@ def _interfaces_ifconfig(out):
if not salt.utils.is_sunos():
ipv6scope = mmask6.group(3) or mmask6.group(4)
addr_obj['scope'] = ipv6scope.lower() if ipv6scope is not None else ipv6scope
if addr_obj['address'] != '::' and addr_obj['prefixlen'] != 0: # SunOS sometimes has ::/0 as inet6 addr when using addrconf
if salt.utils.is_sunos():
if addr_obj['address'] != '::' and addr_obj['prefixlen'] != 0: # SunOS sometimes has ::/0 as inet6 addr when using addrconf
data['inet6'].append(addr_obj)
else:
data['inet6'].append(addr_obj)
data['up'] = updown
if iface in ret: