def _parse_node()

in cstar/nodetoolparser/status.py [0:0]


def _parse_node(line):
    words = line.split()
    if len(words) == 8 \
        and re.match(_state_re, words[0]) \
        and is_ip(words[1]) \
        and re.match(_tokens_re, words[4]) \
        and re.match(_host_id_re, words[6]) \
        and re.match(_rack_re, words[7]):
        return words
    else:
        return None