- Pagination: enabled LIST_PAGINATION and remobved constant
- Changed logic on how to find clixon_restconf in pseudo plugin - Removed ==== in constants to avoid conflict with git merge - Remove assert - Added fuzzing for netconf
This commit is contained in:
parent
47141089c2
commit
b70e22096e
28 changed files with 114 additions and 155 deletions
|
|
@ -923,12 +923,9 @@ xml2json1_cbuf(cbuf *cb,
|
|||
--commas;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef LIST_PAGINATION /* identify md:annotations as RFC 7952 Sec 5.2.1*/
|
||||
if (metacbc){
|
||||
cprintf(cb, "%s", cbuf_get(metacbc));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0 /* identify md:annotations as RFC 7952 Sec 5.2.1*/
|
||||
for (i=0; i<xml_child_nr(x); i++){
|
||||
|
|
|
|||
|
|
@ -1530,27 +1530,12 @@ netconf_module_load(clicon_handle h)
|
|||
if (clicon_option_bool(h, "CLICON_NETCONF_MESSAGE_ID_OPTIONAL") == 1)
|
||||
xml_bind_netconf_message_id_optional(1);
|
||||
#endif
|
||||
#ifdef LIST_PAGINATION
|
||||
/* Load clixon netconf list pagination */
|
||||
if (yang_spec_parse_module(h, "clixon-netconf-list-pagination", NULL, yspec)< 0)
|
||||
goto done;
|
||||
/* Load restconf list pagination */
|
||||
if (yang_spec_parse_module(h, "ietf-restconf-list-pagination", NULL, yspec)< 0)
|
||||
goto done;
|
||||
|
||||
#if 0
|
||||
/* XXX Clixon test harness problem: when loading ietf-list-pagination, it loads
|
||||
* ietf-system-capabilities which in turn loads ietf-netconf-acm. As this is a
|
||||
* system module (always loaded) it means all test-cases
|
||||
*/
|
||||
/* Load list pagination */
|
||||
if (yang_spec_parse_module(h, "ietf-list-pagination", NULL, yspec)< 0)
|
||||
goto done;
|
||||
#endif
|
||||
#ifdef LIST_PAGINATION
|
||||
|
||||
#endif
|
||||
#endif
|
||||
retval = 0;
|
||||
done:
|
||||
return retval;
|
||||
|
|
|
|||
|
|
@ -878,7 +878,6 @@ clicon_rpc_get(clicon_handle h,
|
|||
return retval;
|
||||
}
|
||||
|
||||
#ifdef LIST_PAGINATION
|
||||
/*! Get database configuration and state data collection
|
||||
* @param[in] h Clicon handle
|
||||
* @param[in] xpath To identify a list/leaf-list
|
||||
|
|
@ -1014,7 +1013,6 @@ clicon_rpc_get_pageable_list(clicon_handle h,
|
|||
free(msg);
|
||||
return retval;
|
||||
}
|
||||
#endif /* LIST_PAGINATION */
|
||||
|
||||
/*! Send a close a netconf user session. Socket is also closed if still open
|
||||
*
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
* @see https://tools.ietf.org/html/rfc7950 YANG 1.1
|
||||
*
|
||||
* CALLING ORDER OF YANG PARSE FILES
|
||||
* =================================
|
||||
* yang_spec_parse_module
|
||||
* | |
|
||||
* v v v
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue