Olof hagsand
b0cc1857c0
RESTCONF over mountpoints, extended api_path2xml_mnt with mount-point check
2025-02-24 17:19:23 +01:00
Olof hagsand
73129b96d9
Test: restconf http1.1 only had http2 test
...
test: snmpwalk -t for valgrind
leak in clicon_rpc
2024-10-26 22:37:48 +02:00
Olof hagsand
8098fb031f
Test: check openssl 3.3.0 for x509 v1
2024-05-28 19:44:38 +02:00
Philip Prindeville
951aa71d56
Make /var directory tree owned by $CLICON_GROUP
2023-10-03 23:41:47 +02:00
Olof hagsand
2b6bd4fb5c
test: cleaned up stty get/set in tests
2023-09-22 13:43:27 +02:00
Olof hagsand
45f41e3e4d
Fixed: [JSON backslash string decoding/encoding not correct]( https://github.com/clicon/clixon/issues/453 )
...
Added unicode BMP support for JSON strings
Test: encoding/decoding tests for UTF-8
2023-09-19 12:28:58 +02:00
Olof hagsand
3e34a61bd2
Test: more curl error codes, new version in alpine?
2023-05-25 09:05:20 +02:00
Olof Hagsand
678d48a699
Test: magic line was not first in script and NULL in command substitution
2023-04-27 13:25:20 +00:00
Olof hagsand
453e97ef6b
Test: removed http/1.0 test that seems to stop working in new curl version?
2023-03-04 10:58:29 +01:00
Olof hagsand
204c704b3a
Test: moved unsetting of vars to endtest
2023-02-15 13:59:21 +01:00
Olof hagsand
d84c529ff1
[Code formatting: Change indentation style to space]( https://github.com/clicon/clixon/issues/379 )
...
* Applies to all c/h/y/l/sh files and .editorconfig
2022-10-27 14:21:17 +02:00
Olof Hagsand
d6555e4d1f
Test: add curl error 56
2022-09-21 18:51:23 +00:00
Olof hagsand
fcc9245c35
Test: make streams optional, remove dependency on main example
2022-09-20 14:44:30 +02:00
Olof hagsand
c1e4595949
Refactoring of RESTCONF/TLS close code
...
Single closing function: restconf_close_ssl_socket
Added constant HTTP_ON_HTTPS_REPLY for http request on https socket
2022-09-13 23:01:19 +02:00
Olof hagsand
44501c097d
Test: restconf-callhome fixes for http/1+2 and valgrind
2022-09-06 11:34:06 +02:00
Olof hagsand
f6a964eab6
Test: pass tests for disable-http1 and disable-nghttp2
2022-09-04 15:05:06 +02:00
Olof hagsand
71fc85af0b
restconf: removed try to reply on http on https error, fails on openssl 3
...
test: pipe background restconf to /dev/null
2022-09-02 19:44:53 +02:00
Olof hagsand
e0100a6e3c
Fixed: YANG if-feature in config file did not work, was always on
...
Test: unset test variables
2022-04-23 16:49:09 +02:00
Olof hagsand
404d05950a
HTTP data server updates
...
Check of enable-http-data config option
HTTP/2 Return 400 bad request if no path match
Test: updated yang file revisions, extended restconf config with http-data
2022-04-22 15:23:38 +02:00
Olof hagsand
3d648bc08f
* [prevent clixon-restconf@2021-05-20.yang module from loading]( https://github.com/clicon/clixon/issues/318 )
...
* Instead of always loading it, load it to datastore YANGs only if `CLICON_BACKEND_RESTCONF_PROCESS` is `true`
*
2022-03-29 17:24:03 +02:00
Olof hagsand
c038c9a27f
* Implementation of "chunked framing" according to RFC6242 for Netconf 1.1.
...
* First hello is 1.0 EOM framing, then successing rpc is chunked framing
* See
* [Netconf framing](https://github.com/clicon/clixon/issues/50 ), and
* [Clixon does not switch to chunked framing after NETCONF 1.1 is negotiated](https://github.com/clicon/clixon/issues/314 )
* C:
* Moved netconf framing code from netconf application to clixon lib
* Test:
* New expecteof_netconf and adjusted other expect scripts to handle NETCONF 1.1 framing
2022-03-28 12:36:44 +02:00
Olof hagsand
dd2ac56af8
Module state upgrade: RFC7895 to RFC 8525
...
Changes to clixon-config:
* Added option: 'CLICON_YANG_LIBRARY`
* Changed default value: `CLICON_MODULE_LIBRARY_RFC7895` to false
Datastore modstate is backward compatible
Tests upgraded to RFC8525
2022-03-07 10:56:54 +01:00
Olof hagsand
bf00fdf2c1
* Fixed: [restconf GET json response does not encode top level node with namespace as per rfc #303 ]( https://github.com/clicon/clixon/issues/303 )
2022-02-17 18:42:37 +01:00
Olof hagsand
4aa74fa1d8
* Restconf native http/1, first working version
...
* Renamed files clixon_http -> restconf_http
* Split main file into restconf_native.c
* Remove all evhtp code and libevhtp/libevent dependency
2022-02-08 18:59:47 +01:00
Olof hagsand
dadf4a778a
* HTTP/1 native parser as part of the RESTCONF client
...
* Fixed memory error in opendir/readdir in clicon_file_dirent
* Remove MAXPATH in parsers
* New string-del function
2022-02-08 16:59:08 +01:00
Olof hagsand
4102ca8a46
* configure --with-wwwdir=<dir> is removed
...
* test:
* new test_helloworld.sh smoketest added for testing basic functions
* stripped restconf fcgi default config
* added yang variable
2022-02-07 13:31:39 +01:00
Olof hagsand
e0bcca5405
* New clixon-lib@2021-12-05.yang revision
...
* Extension `autocli-op` obsoleted and no longer supported
* You need to change to use clixon-autocli `hide`and `hide-show` instead.
* Translate as follows:
* `cl:autocli-op hide` -> `autocli:hide`
* `cl:autocli-op hide-database` -> `autocli:hide-show`
* `cl:autocli-op hide-database-auto-completion` -> `autocli:hide; autocli:hide-show`
2022-01-12 22:19:17 +01:00
Olof hagsand
50ac510803
* Fixed: Configure option CLICON_RESTCONF_PATH was marked as obsolete but was still used.
...
* `CLICON_RESTCONF_PATH` is now obsolete for sure
* Instead if you use fgci/nginx:
* Use `restconf/fcgi-socket`
* Ensure `<CLICON_FEATURE>clixon-restconf:fcgi</CLICON_FEATURE>` is set
* Added default values to restconf-config and save fcgi-socket-path in memory
2022-01-01 11:52:18 +01:00
Olof hagsand
f4b35cb270
* [JSON leaf-list output single element leaf-list does not use array]( https://github.com/clicon/clixon/issues/289 )
2021-11-29 13:43:10 +01:00
Olof hagsand
55377786c1
Fix tests for http/1 and http/2 only respectively
2021-09-21 21:23:33 +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
acc6a0fec7
First working prototype
2021-09-21 11:22:40 +02:00
Olof hagsand
e3d0566d3c
- CLICON_RESTCONF_HTTP2_PLAIN set to default false
2021-09-06 13:30:12 +02:00
Olof hagsand
9fce0a1214
- IPC socket: add REUSEADDR when using IP (remove comment)
...
- Test: remove variable to use backend restconf, since that is the only option
- Docs C-style: describe return values better
2021-08-24 13:46:47 +02:00
Olof hagsand
270c47b396
Native restconf fixes:
...
- memleak in http/1-only
- exit if http/1 request sent to http/2-only
- hang if http/1 TLS request sent to http/2 only
2021-07-09 15:08:21 +02:00
Olof hagsand
85e2945ec9
* Netconf message-id attribute changed from optional to mandatory
...
* Made NETCONF message handling more strict according to RFC 6241
* Set `CLICON_NETCONF_MESSAGE_ID_OPTIONAL` to true to accept omission of message-id attribute
* Fixed: [need make sure message-id exist in rpc validate #240 ](https://github.com/clicon/clixon/issues/240 )
2021-06-30 10:59:10 +02:00
Olof hagsand
4f513385e9
- Restconf native http/1 to http/2 upgrade (non-tls)
2021-06-13 12:43:19 +02:00
Olof hagsand
7d59ec1a3a
* Fixed: [JSON parsing error for a specific input. #236 ]( https://github.com/clicon/clixon/issues/236 )
...
* JSON empty list parse problems, eg `a:[]`
2021-06-09 11:44:28 +02:00
Olof hagsand
84f5762ab5
* Most tests work with HTTP/2 support using nghttp2
...
* except non-ssl http/1->/2 upgrade
* Restconf: ensure HEAD method works everywhere GET does.
2021-06-08 20:53:43 +02:00
Olof hagsand
0ad577fa81
- Started nghttp2 work
...
- Added autoconf config options, temporary for nghttp2 development: `--disable-evhtp`and `--enable-nghttp2`.
- Added special case for api-path:s beginning with //
2021-05-31 19:11:19 +02:00
Olof hagsand
c405a08ff8
Restconf https fixes after nmap and fuzz:
...
- segv in PUT/POST of /
- Dont return bad request on error, just close socket
2021-05-28 16:17:52 +02:00
Olof hagsand
164aa1cb4c
* Restconf: added inline configuration using -R <xml> command line as an alternative to making advanced restconf configuration
2021-05-26 11:24:39 +02:00
Olof hagsand
376f2a8143
* Fixed problems with XPATH composite operations and functions in netconf get/get-config operations.
...
* See [XPATH issues #219 ](https://github.com/clicon/clixon/issues/219 )
2021-05-17 10:07:09 +02:00
Olof hagsand
7023fe589f
patch for fixing http2 test
2021-05-09 22:12:33 +02:00
Olof hagsand
6ed2202638
- Added openssl application-layer protocol negotiation
...
- Added restconf tests for http/1.0 and http/2
2021-05-09 17:55:13 +02:00
Olof hagsand
6605ab8ce7
Restconf native: add error bodies on early errors
2021-05-05 20:40:59 +02:00
Olof hagsand
aaaeec92eb
Internal RESTCONF changes:
...
- Kill running process directly, not schedul a kill
- fcgi: when kill, make exit more ordered, ensure fcgi-accept returns properly
2021-04-30 14:49:01 +02:00
Olof hagsand
bba23be444
mem fixes, evolved openconfig interfaces test
2021-04-15 10:12:35 +02:00
Olof hagsand
953326d39f
- Rewrote process control to simpler state model: stopped/running/exiting
...
- Stricter CLICON_BACKEND_RESTCONF_PROCESS :
- if set, restconf daemon queries backend for its config
- if not set, restconf daemon reads its config from main config file
2021-04-12 10:31:17 +02:00
Olof hagsand
15d01c58d8
- Better restconf debug: when restconf debug flag set in datastore, ensure the process is started with -D set
...
- Fixed native http support for base container
- Changed test certs and restconf scripts to functions
2021-04-09 09:34:05 +02:00