mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #6161 from davromaniak/develop
displaying secondary ip addresses in the ip_interface grain.
This commit is contained in:
commit
0333d31d9b
@ -915,6 +915,9 @@ def ip_interfaces():
|
||||
for inet in ifaces[face].get('inet', []):
|
||||
if 'address' in inet:
|
||||
iface_ips.append(inet['address'])
|
||||
for secondary in ifaces[face].get('secondary', []):
|
||||
if 'address' in secondary:
|
||||
iface_ips.append(secondary['address'])
|
||||
ret[face] = iface_ips
|
||||
return {'ip_interfaces': ret}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user