mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
displaying secondary ip addresses in the ip_interface grain.
This commit is contained in:
parent
82759b9402
commit
1ea6674267
@ -915,6 +915,9 @@ def ip_interfaces():
|
|||||||
for inet in ifaces[face].get('inet', []):
|
for inet in ifaces[face].get('inet', []):
|
||||||
if 'address' in inet:
|
if 'address' in inet:
|
||||||
iface_ips.append(inet['address'])
|
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
|
ret[face] = iface_ips
|
||||||
return {'ip_interfaces': ret}
|
return {'ip_interfaces': ret}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user