displaying secondary ip addresses in the ip_interface grain.

This commit is contained in:
Cyril Lavier 2013-07-15 09:52:50 +02:00
parent 82759b9402
commit 1ea6674267

View File

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