Added completion for generated cli leafrefs for both absolute and relatve paths.

This commit is contained in:
Olof hagsand 2017-07-19 09:26:56 +02:00
parent 1b6c9aacbe
commit f995f1e268
4 changed files with 52 additions and 23 deletions

View file

@ -297,7 +297,8 @@ main(int argc, char **argv)
char *dir = dirname(str);
hash_del(clicon_options(h), (char*)"CLICON_YANG_MODULE_REVISION");
clicon_option_str_set(h, "CLICON_YANG_MODULE_MAIN", basename(optarg));
clicon_option_str_set(h, "CLICON_YANG_DIR", strdup(dir));
clicon_option_str_set(h, "CLICON_YANG_DIR", dir);
free(str);
break;
}
default: