Changes in clixon-config.yang:
* Removed obsolete options:
* `CLICON_YANG_LIST_CHECK`
* `CLICON_RESTCONF_PATH` (moved to restconf/fcgi-path)
* Fixed: Configure option `CLICON_RESTCONF_PRETTY` was marked as obsolete but was still used.
* `CLICON_RESTCONF_PRETTY` is now obsolete for sure
* Instead restconf/pretty is used with API function restconf_pretty_get()
This commit is contained in:
parent
32930f4f6b
commit
3117332ddd
16 changed files with 81 additions and 66 deletions
|
|
@ -773,13 +773,10 @@ restconf_config_init(clicon_handle h,
|
|||
}
|
||||
if ((x = xpath_first(xrestconf, nsc, "pretty")) != NULL &&
|
||||
(bstr = xml_body(x)) != NULL){
|
||||
/* XXX redirection to (obsolete) option, fix by replacing its accesses */
|
||||
clicon_option_str_set(h, "CLICON_RESTCONF_PRETTY", bstr);
|
||||
}
|
||||
if ((x = xpath_first(xrestconf, nsc, "fcgi-socket")) != NULL &&
|
||||
(bstr = xml_body(x)) != NULL){
|
||||
/* XXX redirection to (obsolete) option, fix by replacing its accesses */
|
||||
clicon_option_str_set(h, "CLICON_RESTCONF_PATH", bstr);
|
||||
if (strcmp(bstr, "true") == 0)
|
||||
restconf_pretty_set(h, 1);
|
||||
else if (strcmp(bstr, "false") == 0)
|
||||
restconf_pretty_set(h, 0);
|
||||
}
|
||||
retval = 1;
|
||||
done:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue