def _container_path(model,
                    key=None,
                    container=None,
                    delim=DEFAULT_TARGET_DELIM):
    '''
    Generate all the possible paths within an OpenConfig-like object.
    This function returns a generator.
    '''
    if not key:
        key = ''
    if not container:
        container = 'config'
    for model_key, model_value in six.iteritems(model):
        if key:
            key_depth = '{prev_key}{delim}{cur_key}'.format(prev_key=key,
                                                            delim=delim,
                                                            cur_key=model_key)
        else:
            key_depth = model_key
        if model_key == container:
            yield key_depth
        else:
            for value in _container_path(model_value,
                                         key=key_depth,
                                         container=container,
                                         delim=delim):
                yield value
Generate all the possible paths within an OpenConfig-like object.
    This function returns a generator.