(config_lines, init_config_start_line, errors)
return _parse_for_config_blocks(config_lines, init_config_start_line + 1, end, errors)
Function used to parse the init_config section and return the list of 'ConfigBlock'
    It first checks if the section contains data or not. If not, it returns an empty list. Otherwise
    it will use the _parse_for_config_blocks function to parse it between the beginning and the end of the part
Function used to parse the init_config section and return the list of 'ConfigBlock'
    It first checks if the section contains data or not. If not, it returns an empty list. Otherwise
    it will use the _parse_for_config_blocks function to parse it between the beginning and the end of the part
Function used to parse the init_config section and return the list of ConfigBlock It first checks if the section contains data or not . If not it returns an empty list . Otherwise it will use the _parse_for_config_blocks function to parse it between the beginning and the end of the part
def _parse_init_config(config_lines, init_config_start_line, errors):
    """Function used to parse the init_config section and return the list of 'ConfigBlock'
    It first checks if the section contains data or not. If not, it returns an empty list. Otherwise
    it will use the _parse_for_config_blocks function to parse it between the beginning and the end of the part
    """
    blocks = []
    idx = init_config_start_line + 1

    # Check if the init_config part contains data or not
    while idx < len(config_lines):
        current_line = config_lines[idx]
        if is_blank(current_line):
            idx += 1
            continue
        elif is_at_least_indented(current_line, 1):
            # There is data in 'init_config'
            break
        else:
            # There is no data, do not try to parse the init_config
            return blocks

    end = get_end_of_part(config_lines, init_config_start_line)
    if end is None:
        errors.append(ValidatorError("Malformed file, cannot find end of part 'init_config'", init_config_start_line))
        return blocks

    return _parse_for_config_blocks(config_lines, init_config_start_line + 1, end, errors)
def _parse_init_config ( config_lines , init_config_start_line , errors ) : blocks = [ ] idx = init_config_start_line + 1 # Check if the init_config part contains data or not while idx < len ( config_lines ) : current_line = config_lines [ idx ] if is_blank ( current_line ) : idx += 1 continue elif is_at_least_indented ( current_line , 1 ) : # There is data in 'init_config' break else : # There is no data, do not try to parse the init_config return blocks end = get_end_of_part ( config_lines , init_config_start_line ) if end is None : errors . append ( ValidatorError ( "Malformed file, cannot find end of part 'init_config'" , init_config_start_line ) ) return blocks return _parse_for_config_blocks ( config_lines , init_config_start_line + 1 , end , errors )