mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Isolate SUN IPv6 fix to Sun Os only
This commit is contained in:
parent
6f54e16cdf
commit
cbcdb472fe
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue