Call action for different lines

def _line_parser(line):
    '''
    Call action for different lines
    '''
    section = _analyse_status_type(line)
    fields = line.strip().split()

    switch = {
        '': _empty,
        'RESOURCE': _add_res,
        'PEERNODE': _add_peernode,
        'LOCALDISK': _add_volume,
        'PEERDISK': _add_volume,
    }

    func = switch.get(section, _unknown_parser)

    func(line)