def list_eth_ips():
    if (not ethtool):
        return []
    devcfgs = ethtool.get_interfaces_info(ethtool.get_devices())
    addrs = set()
    for d in devcfgs:
        if d.ipv4_address:
            addrs.add(d.ipv4_address)
            addrs.add('0.0.0.0')
        for ip6 in d.get_ipv6_addresses():
            addrs.add(ip6.address)
            addrs.add('::0')
    return sorted(addrs)
def list_eth_ips():
    if (not ethtool):
        return []
    devcfgs = ethtool.get_interfaces_info(ethtool.get_devices())
    addrs = set()
    for d in devcfgs:
        if d.ipv4_address:
            addrs.add(d.ipv4_address)
            addrs.add('0.0.0.0')
        for ip6 in d.get_ipv6_addresses():
            addrs.add(ip6.address)
            addrs.add('::0')
    return sorted(addrs)