Merge pull request #6161 from davromaniak/develop

displaying secondary ip addresses in the ip_interface grain.
This commit is contained in:
Thomas S Hatch 2013-07-15 08:08:55 -07:00
commit 0333d31d9b

View File

@ -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}