Skip to content

Commit

Permalink
cli UPDATE get-data factory-default support
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Nov 24, 2023
1 parent 661101f commit 7c52d35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ cmd_getdata_help(void)
origin = 1;
}

fprintf(stdout, "get-data [--help] --datastore running|startup|candidate|operational [--filter-subtree[=<file>]%s]"
fprintf(stdout, "get-data [--help] --datastore running|startup|candidate|operational|factory-default [--filter-subtree[=<file>]%s]"
" [--config true|false]%s [--depth <subtree-depth>]%s%s [--out <file>] [--rpc-timeout <seconds>]\n",
xpath, origin ? " [--origin <origin>]* [--negated-origin]" : "", origin ? " [--with-origin]" : "", defaults);
}
Expand Down Expand Up @@ -4936,6 +4936,8 @@ cmd_getdata(const char *arg, char **tmp_config_file)
datastore = "ietf-datastores:candidate";
} else if (!strcmp(optarg, "operational")) {
datastore = "ietf-datastores:operational";
} else if (!strcmp(optarg, "factory-default")) {
datastore = "ietf-factory-default:factory-default";
} else {
ERROR(__func__, "Invalid datastore specified (%s).", optarg);
goto fail;
Expand Down

0 comments on commit 7c52d35

Please sign in to comment.