@staticmethod
def _get(rest):
    (nodes, err) = rest.nodes_info()
    _exit_if_errors(err)
    fam = {}
    for n in nodes:
        fam[n['addressFamily']] = True
    family = list(fam.keys())
    if (len(family) == 1):
        ipv_fam = 'UNKNOWN'
        if ((family[0] == 'inet') or (family[0] == 'inet_tls')):
            ipv_fam = 'ipv4'
        elif ((family[0] == 'inet6') or (family[0] == 'inet6_tls')):
            ipv_fam = 'ipv6'
        print(f'Cluster using {ipv_fam}')
    else:
        print('Cluster is in mixed mode')
@staticmethod
def _get(rest):
    (nodes, err) = rest.nodes_info()
    _exit_if_errors(err)
    fam = {}
    for n in nodes:
        fam[n['addressFamily']] = True
    family = list(fam.keys())
    if (len(family) == 1):
        ipv_fam = 'UNKNOWN'
        if ((family[0] == 'inet') or (family[0] == 'inet_tls')):
            ipv_fam = 'ipv4'
        elif ((family[0] == 'inet6') or (family[0] == 'inet6_tls')):
            ipv_fam = 'ipv6'
        print(f'Cluster using {ipv_fam}')
    else:
        print('Cluster is in mixed mode')