def is_ipv6(ip_str):
    try:
        addr = ipaddr.IPAddress(ip_str)
        return addr.version == 6
    except:
        return False
:returns: System hostname.
dataset/ETHPy150Open StackStorm/st2/st2common/st2common/util/ip_utils.py/is_ipv6--crossover with--dataset/ETHPy150Open openlmi/openlmi-scripts/commands/system/lmi/scripts/system/__init__.py/get_hostname