Skip to content

Commit

Permalink
* Restconf configuration has a new configure model: `clixon-restconf.…
Browse files Browse the repository at this point in the history
…yang` enabling restconf daemon configuration from datastore instead of from config file.
  • Loading branch information
olofhagsand committed Nov 3, 2020
1 parent 40da442 commit 7a0838d
Show file tree
Hide file tree
Showing 14 changed files with 1,718 additions and 900 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@

## 4.9.0 Expected: 15 Dec 2020

### New features

* Restconf configuration has a new configure model: `clixon-restconf.yang` enabling restconf daemon configuration from datastore instead of from config file.
* Restconf config data, such as addresses, authentication type, etc, is read from the backend datastore instead of the clixon-config file on startup.
* This is enabled by setting `CLIXON_RESTCONF_CONFIG` to true (or start clixon-restconf with `-b`), in which case restconf data can be set in the datastore.
* This only applies to the evhtp restconf daemon, not fcgi/nginx.
* If enabled, most RESTCONF clixon-config options are obsolete
* Thanks to Dave Cornejo for the idea
* Example: instead of setting `<CLICON_SSL_SERVER_CERT>file</CLICON_SSL_SERVER_CERT>` in clixon.xml, set: `arestconf><socket><server-cert-path>file</server-cert-path></socket></restconf>` in the running datastore before starting restconf.

### API changes on existing protocol/config features

Users may have to change how they access the system

* New clixon-config@2020-11-03.yang revision
* Added option: `CLICON_RESTCONF_CONFIG` for reading restconf daemon config frm datastore

### Minor changes

* Added new backend plugin: ca_pre-demon called if backend is daemonized just prior to forking.
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/cli_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ autocli_tree(clicon_handle h,
enum genmodel_type gt,
int state,
int printgen,
int show_tree)
int show_tree)
{
int retval = -1;
parse_tree *pt = NULL; /* cli parse tree */
Expand Down
Loading

0 comments on commit 7a0838d

Please sign in to comment.