def is_ip()

in Kubernetes/linux/manifest/generate.py [0:0]


def is_ip(x):
    return x.count('.') == 3 and all([ is_int(i) for i in x.split('.') ])