Olof hagsand
d175720b7e
Cleaned up Makefiles, especially LINKAGE=static vs dynamic
...
Added LIBSTATIC_SUFFIX instead of hardcoded .a
Changed building of build.c not to be triggered by install
2021-09-30 21:40:46 +02:00
Olof Hagsand
3ec0c42959
Merge pull request #271 from s-bauer/s-bauer-patch-4
...
Added --without-sigaction option
2021-09-30 16:30:20 +02:00
Olof Hagsand
820e2f0837
Merge pull request #270 from s-bauer/patch-3
...
Updated warnroot and checkroot Commands
2021-09-30 16:25:21 +02:00
Olof Hagsand
499e3f862a
Merge pull request #269 from s-bauer/s-bauer-patch-2
...
Fixed CFLags for debug mode
2021-09-30 16:24:44 +02:00
Olof Hagsand
5f741ce978
Merge pull request #267 from s-bauer/s-bauer-patch-1
...
Fixed SH_SUFFIX
2021-09-30 16:20:41 +02:00
Olof hagsand
648b3f41f2
Make ready for clixon 5.4.0 development
2021-09-30 16:16:00 +02:00
Simon Bauer
f65c90f151
Regenerated configure script
2021-09-30 12:25:25 +00:00
Simon Bauer
c0bbe607ed
Added --without-sigaction option
2021-09-30 11:56:38 +00:00
Simon Bauer
1d2114cbe0
Updated warnroot and checkroot Commands
...
Updated the Makefile.in to check if the `id` utility exists on the platform, otherwise skip the root check.
2021-09-30 13:08:46 +02:00
Simon Bauer
dc85b220a5
Fixed CFLags for debug mode
...
Fixing the behavior when using the `--enable-debug` flag -> the `CFLAGS` variable get's overwritten. Also logging out the `LDFLAGS` variable for debugging purposes.
2021-09-30 12:53:03 +02:00
Simon Bauer
bdda35d95b
Fixed SH_SUFFIX
2021-09-30 10:37:19 +02:00
Olof hagsand
9b6bb3ecbf
- Added transaction_arg_set()
...
- Modifed coverage script
2021-09-27 16:31:21 +02:00
Olof hagsand
51278d5901
Fixed static linking for coverage and fuzzing
...
Preparations for Clixon 5.3 release
2021-09-27 12:26:53 +02:00
Olof hagsand
5a875e3152
Fix some LINKAGE=static compile issues:
...
- Makefile circularity by fixing .so suffix
- simplify example/main Makefile
2021-09-26 11:22:48 +02:00
Olof hagsand
c00162aec1
- Modified linkage constant in makefile to test for dynamic only
...
- CLIXON_STATIC_PLUGIN to support statically linked plugins
- Added -H option to clixon_netconf: Do not require hello before request
2021-09-25 16:36:37 +02:00
Olof hagsand
b70e22096e
- 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
2021-09-23 13:33:26 +02:00
Olof hagsand
47141089c2
- Added netconf to fuzz
...
- Restconf internal start more robust
- Restconf fcgi fix
2021-09-22 18:55:32 +02:00
Olof hagsand
55377786c1
Fix tests for http/1 and http/2 only respectively
2021-09-21 21:23:33 +02:00
Olof hagsand
a7a699a8b5
New state plugin callback for pagination.
...
* You need to change all statedata plugin callback for the new pagination feature
* If you dont use pagination you can ignore the values of the new parameters
* See [User manual pagination](https://clixon-docs.readthedocs.io/en/latest/misc.html#pagination )
* The updated callback signature is as follows:
```
int statedata(clicon_handle h,
cvec *nsc,
char *xpath,
pagination_mode_t pagmode, // NEW
uint32_t offset, // NEW
uint32_t limit, // NEW
uint32_t *remaining, // NEW
cxobj *xstate)
```
2021-09-21 15:02:46 +02:00
Olof hagsand
384ce70d7c
memory leak and nacm recovery test fix
2021-09-21 13:24:34 +02:00
Olof hagsand
d23153e25a
Removed ietf-origin and ietf-netconf-with-defaults YANGS
2021-09-21 11:28:29 +02:00
Olof hagsand
ff3f600920
Renamed paging to pagination
2021-09-21 11:28:29 +02:00
Olof hagsand
60193cca0d
- Add remaining argument to state callback
2021-09-21 11:27:58 +02:00
Olof hagsand
6e316b519b
- Refactoring of get_common/get_list_pagination with two sub-functions
...
- Fixed memory leak
2021-09-21 11:27:58 +02:00
Olof hagsand
caabfd464e
* New state callback signature (ca_statedata2)
...
* The new callback contains parameters for paging
* Goal is to replace ca_statedata callback
* New plugin callback when lock/unlock occurs
* Add `ca_lockdb` tro plugin init to use it.
* Fixed: Typing 'q' in CLI more paging did not properly quit output
* Output continued but was not shown, for a very large file this could cause considerable delay
* Fixed: Lock was broken in first get get access
* if the first netconf operation to a backend was lock;get;unlock, the lock was broken in the first get access.
2021-09-21 11:27:58 +02:00
Olof hagsand
aaf9a89183
- Added an extended state plugin callback: ca_statedata2 with offset and limit parameters
...
- Fixed memory errors
2021-09-21 11:26:28 +02:00
Olof hagsand
28f58fb7d6
- Fixed list pagination for CLI
2021-09-21 11:24:53 +02:00
Olof hagsand
a046306270
- New netconf-specific uint32 parse functions
...
- Added failure handling to xpath traverse_canonical
- Started pagination cli code
2021-09-21 11:24:53 +02:00
Olof hagsand
390b0886ed
- pageing offset working
2021-09-21 11:24:53 +02:00
Olof hagsand
fb0b9409f3
- Moved restrconf code from pageing rpc to get
2021-09-21 11:24:53 +02:00
Olof hagsand
c9843b34a6
- Rewrite of netconf get/get-config code
...
- Unified get and get-config code to single function get_common
- Integrated list-pagination code
- Moved get code to new files backend_get.[ch]
2021-09-21 11:24:53 +02:00
Olof hagsand
b03cf426a4
* Protyped netconf native pagination
2021-09-21 11:24:53 +02:00
Olof hagsand
6bf3112fe7
* JSON encoding of YANG metadata according to RFC 7952
...
* XML -> JSON translation
2021-09-21 11:23:40 +02:00
Olof hagsand
76e59873c2
- Changed media name: yang.collection+xml/yang to application-collection+xml/json
...
- Modified ietf-netconf-list-pagination.yang:
- changed get-pagable -> get-pageable
- renamed count -> limit
- renamed skip -> offset
- added import ietf-yang-metadata
- added md:annotation remaining
2021-09-21 11:22:41 +02:00
Olof hagsand
0c7f2043f3
* Pagination according to new draft
...
* count/skip -> limit/offset
* ietf-yang-metadata RFC 7952 support, placeholder parsing and extension
2021-09-21 11:22:41 +02:00
Olof hagsand
77bacc93bb
- Updated code to clixon 5.2 status
...
- Added LIST_PAGINATION clixon_custom constant
- Fix: leafs added as augments on rpc input/output lacked cv:s
2021-09-21 11:22:40 +02:00
Olof hagsand
2485bec483
fixes for compilation
2021-09-21 11:22:40 +02:00
Olof hagsand
ba835346a5
cli-pagination
2021-09-21 11:22:40 +02:00
Olof hagsand
2b5dceb82c
cli pagination
2021-09-21 11:22:40 +02:00
Olof hagsand
8e266dd136
skip+count
2021-09-21 11:22:40 +02:00
Olof hagsand
8008fa01b7
Pagination draft
2021-09-21 11:22:40 +02:00
Olof hagsand
c4b1051b1f
* Changed first parameter from int fd to FILE *f in the following functions:
...
* clixon_xml_parse_file(), clixon_json_parse_file(), yang_parse_file()
* See [Bytewise read() of files is slow #146 ](https://github.com/clicon/clixon/issues/146 )
2021-09-21 11:22:40 +02:00
Olof hagsand
acc6a0fec7
First working prototype
2021-09-21 11:22:40 +02:00
Olof hagsand
78f5a6983c
Pagination draft
2021-09-21 11:22:40 +02:00
Olof hagsand
ab0bc0ea4b
* Changed first parameter from int fd to FILE *f in the following functions:
...
* clixon_xml_parse_file(), clixon_json_parse_file(), yang_parse_file()
* See [Bytewise read() of files is slow #146 ](https://github.com/clicon/clixon/issues/146 )
2021-09-21 11:22:40 +02:00
Olof hagsand
2e857bb417
First working prototype
2021-09-21 11:22:40 +02:00
Olof hagsand
6b357dc038
* Partly Fixed: [String concatenation in YANG model leads to syntax error]( https://github.com/clicon/clixon/issues/265 )
...
* In this case, eg "uses", single quotes can now be used, but not `qstring + qstring` in this case
2021-09-20 22:54:14 +02:00
Olof hagsand
392e6679c5
* JSON errors are now labelled with JSON and not XML
...
* Fixed: [Performance issue when parsing large JSON param](https://github.com/clicon/clixon/issues/266 )
* Moved strlen() from for end condition
* Fixed debugging of xpath parser
2021-09-20 21:35:01 +02:00
Olof hagsand
3cd3f7987d
- Cannot reproduce https://github.com/clicon/clixon/issues/245 , added sanity chaeck and regression test
2021-09-09 14:01:48 +02:00
Olof hagsand
ca14879e8c
- Fixed: [Duplicate lines emitted by cli_show_config (cli output style) when yang list element has composite key]( https://github.com/clicon/clixon/issues/258 )
2021-09-09 13:33:51 +02:00