* Event exit API changed to a single decrementing counter where 1 means exit.
* Removed: `clicon_exit_reset()` * Changed: `clicon_exit_set()` --> `clixon_exit_set(int nr)` * Changed: `clicon_exit_get()` --> `clixon_exit_get()` * native restconf special case upgrade handling from http/1 -> http/2 and restconf restart: delay the restart using event exit counter
This commit is contained in:
parent
4f513385e9
commit
b40dafb691
10 changed files with 63 additions and 36 deletions
|
|
@ -340,13 +340,10 @@ xml_yang_validate_rpc(clicon_handle h,
|
|||
goto done;
|
||||
}
|
||||
rpcprefix = xml_prefix(xrpc);
|
||||
if (xml2ns(xrpc, rpcprefix, &namespace) < 0){
|
||||
fprintf(stderr, "%s ERROR\n", __FUNCTION__);
|
||||
if (xml2ns(xrpc, rpcprefix, &namespace) < 0)
|
||||
goto done;
|
||||
}
|
||||
/* Only accept resolved NETCONF base namespace */
|
||||
if (namespace == NULL || strcmp(namespace, NETCONF_BASE_NAMESPACE) != 0){
|
||||
fprintf(stderr, "%s UNKNOWN\n", __FUNCTION__);
|
||||
if (netconf_unknown_namespace_xml(xret, "protocol", rpcprefix, "No appropriate namespace associated with prefix")< 0)
|
||||
goto done;
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue