def get_all_ip_addresses(): ipaddrs = list() for iface in get_all_ips().values(): for addrs in iface: if 'broadcast' in addrs and addrs['addr'] != '127.0.0.1': ipaddrs.append(addrs['addr']) ipaddrs.sort(cmp=_cmp_ipaddr) return ipaddrs
def get_all_ip_addresses(): ipaddrs = list() for iface in itervalues(get_all_ips()): for addrs in iface: if 'broadcast' in addrs and addrs['addr'] != '127.0.0.1': ipaddrs.append(addrs['addr']) ipaddrs.sort(key=ipaddr_sort_key) return ipaddrs
def get_all_ip_addresses(): ipaddrs = list() for iface in get_all_ips().itervalues(): for addrs in iface: if 'broadcast' in addrs and addrs['addr'] != '127.0.0.1': ipaddrs.append(addrs['addr']) ipaddrs.sort(cmp=_cmp_ipaddr) return ipaddrs