Added completion for generated cli leafrefs for both absolute and relatve paths.
This commit is contained in:
parent
1b6c9aacbe
commit
f995f1e268
4 changed files with 52 additions and 23 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue