Olof Hagsand
e59b7e1616
Merge pull request #210 from nowaits/master
...
add clixon proc get pid api
2021-04-29 14:30:34 +02:00
Olof hagsand
05009aed67
Add restconf get list extra =restval test
2021-04-28 11:31:41 +02:00
Olof hagsand
448b56ca0c
- Removed sha1 code
...
- ifdef unused SOAP encoding
2021-04-24 22:06:26 +02:00
Olof hagsand
d48b8a8fad
-Yang Deviation/deviate : added yacc/lex syntax
2021-04-24 12:31:40 +02:00
jxm
45f3d48179
add clixon proc get pid api
2021-04-23 10:44:06 +08:00
Olof hagsand
1c7e52f829
Merge branch 'autocli' of https://github.com/shmuelnatan/clixon into shmuelnatan-autocli
2021-04-22 20:56:04 +02:00
shmuels
bfb7edece4
completing the function of hide for autocli-op in the yang files
2021-04-22 19:17:32 +03:00
shmuels
b0c5e43d50
completing the function of hide for autocli-op in the yang files
2021-04-21 15:15:35 +03:00
shmuels
33ad428854
completing the function of hide for autocli-op in the yang files
2021-04-21 15:09:40 +03:00
Olof hagsand
1d29d29415
- Fixed: [xml2txt last param not used #204 ]( https://github.com/clicon/clixon/issues/204 )
...
- test: coverage test scripts for CI
2021-04-20 13:05:23 +02:00
Olof Hagsand
e9b07cebab
Merge pull request #205 from shmuelnatan/master
...
change localtime to localtime_r which is a thread-safe function
2021-04-20 10:31:22 +02:00
Olof hagsand
91a583253e
- Fixed plugin-module initialized twice in restconf-fcgi
...
- Test script: wait for restconf to stop
2021-04-19 13:54:58 +02:00
shmuels
d962399db0
Revert "change localtime to localtime_r which is a thread-safe function"
...
This reverts commit 8ca5944111 .
2021-04-19 13:29:00 +03:00
Olof hagsand
b88722fa25
- Restructure plugin module using a "module struct" rather than global variables.
...
This include plugin module init and exit functions
New type: clixon_plugin_t exposed via public API while struct clixon_plugin is private
- Makefile changes for static linkage using "LINKAGE=static"
- Moved nacm external init to later stage in backend_main
2021-04-19 11:06:40 +02:00
shmuels
c370ac8706
completing the function of hide for autocli-op in the yang files
2021-04-18 16:58:18 +03:00
shmuels
8ca5944111
change localtime to localtime_r which is a thread-safe function
2021-04-18 10:19:07 +03:00
Olof hagsand
7ebb538ebf
- Changed master to 5.2.0.PRE
...
- Modified Makefiles for static linkage and coverage
- test namespace abstractions
2021-04-17 15:23:10 +02:00
Olof hagsand
172cfd69b3
- Fixed [clixon_proc can't start new process with PATH env #202 ]( https://github.com/clicon/clixon/issues/202 )
...
- Memory errors in tests
2021-04-14 17:02:24 +02:00
Olof hagsand
1af3a7bcfe
- Restconf bind: continue with other sockets if bind fails, print address on log
...
- Multi-yang: Look in CLICON_YANG_MAIN_DIR, not only CLICON_MAIN_DIRs for old yangs
- Backend -q quit option enhanced for multi-yang case
2021-04-14 17:02:24 +02:00
Olof hagsand
c43e216d67
- Restconf bind: continue with other sockets if bind fails, print address on log
...
- Multi-yang: Look in CLICON_YANG_MAIN_DIR, not only CLICON_MAIN_DIRs for old yangs
- Backend -q quit option enhanced for multi-yang case
2021-04-13 18:00:27 +02:00
Olof hagsand
5af7ea9b38
* Added check of old config in upgrade scenarios.
...
* Added to clixon-config.yang `CLICON_XMLDB_UPGRADE_CHECKOLD`, set to false to keep less strict check
2021-04-12 21:03:20 +02:00
Olof hagsand
8469a0962e
* Add multiple yang support also for obsolete versions
...
* This means that files and datastores supporting modstate also looks for deleted or updated yang modules.
* A stricter binding which gives error if loading outdated YANG file does not exist.
* Stricter yang checks: you cannot do get-config on datastores that have obsolete YANG
* Added xerr output parameter to `xmldb_get0()`
2021-04-12 12:42:26 +02:00
Olof hagsand
d542cd5530
Add cli debug commands for cli/backend/restconf
2021-04-12 12:38:16 +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
Olof hagsand
244060fddc
- Added specific WITH_RESTCONF compile contants for _NATIVE and _FCGI for C code
...
- Restconf auth=none changes
- Load clixon-restconf and resolve features earlier so that config features work
- Removed auth=none code from example (this was non-std half-baked basic auth)
- Changed tests that used auth-type=none to enable feature clixon-restconf:allow-auth-none
- Moved cert creation from sub-shell to servercert function
- Fixed typos for dockerfile rename of restconf evhtp to native
2021-04-07 20:54:41 +02:00
Olof hagsand
7412bb7b3d
Fixed [changing interface name not support with openconfig module #195 ]( https://github.com/clicon/clixon/issues/195 )
2021-04-06 22:36:46 +02:00
Olof hagsand
01d0ea905c
Added nonblocking socket support for SSL_read/SSL_accept/SSL_write
2021-04-02 18:06:45 +02:00
Olof hagsand
698625aa65
evhtp configure and warnings
2021-04-02 13:09:53 +02:00
Olof hagsand
2def5d2367
* Fixed Yang parsing of comments in (extension) unknown statements, to allow multiple white space
...
* Fixed cli_start_shell: comments and cli_error
* Fixed [making cli_show_options's output more human readable #199 ](https://github.com/clicon/clixon/issues/199 )
* Fixed SSL/evhtp limited read buffer problem
2021-04-01 15:56:56 +02:00
Olof hagsand
0020c7ff3f
cicd test fixes for libevhtp and warnings
2021-04-01 11:20:48 +02:00
Olof hagsand
c7e7598e3b
* Updated "evhtp" restconf mode
...
* No reliance on libevent or libevhtp, but on libssl >= 1.1 directly
* Moved out event handling to clixon event handling
* Moved out all ssl calls to clixon
* New code MUST use libevhtp from https://github.com/clixon/clixon-libevhtp.git
* This does NOT work: libevhtp from https://github.com/criticalstack/libevhtp.git
2021-03-30 16:00:03 +02:00
Olof hagsand
95a820c862
clicon_err: Missed print strerr due to category error.
2021-03-30 14:26:22 +02:00
Olof hagsand
477059f33d
Fixed again: [backend start resconf failed due to path string truncated #192 ]( https://github.com/clicon/clixon/issues/192 )
2021-03-24 12:23:00 +01:00
Olof hagsand
709459304f
* Removed cli_debug(). Use cli_debug_backend() or cli_debug_restconf() instead.
...
* Created restconf debug rpc stub function and documented restconf debugging
2021-03-22 14:56:05 +01:00
Olof hagsand
43db8dd5c5
Fixed: [state showing error in cli with CLICON_STREAM_DISCOVERY_RFC8040 #191 ]( https://github.com/clicon/clixon/issues/191 )
2021-03-18 10:41:08 +01:00
Olof hagsand
afdf6ffcf8
Fixed: [state showing error in cli with CLICON_STREAM_DISCOVERY_RFC8040 #191 ]( https://github.com/clicon/clixon/issues/191 )
2021-03-18 09:43:13 +01:00
Olof hagsand
f8830dc27e
Fixed: [yang submodule show error in modules-state #190 ](yang submodule show error in modules-state #190 )
2021-03-17 15:44:45 +01:00
Olof hagsand
fb9917e81e
* Removed endtag parameter of clixon_xml_parse_file()
2021-03-15 13:24:27 +01:00
Olof hagsand
9087694b58
Fixed: [Backend can not read datastore with container named config #147 ]( https://github.com/clicon/clixon/issues/147 )
2021-03-13 17:15:00 +01:00
Olof hagsand
07d196dfd0
Added several fields to process-control status operation: active, description, command, status, starttime, pid
2021-03-12 17:22:22 +01:00
Olof hagsand
7e9a207ab2
* New clixon-lib@2020-03-08.yang revision
...
* Changed: RPC process-control output to choice dependent on operation
2021-03-12 12:10:25 +01:00
Olof hagsand
7762b10cbb
* Changed signal handling
...
* Moved clixon-proc sigchild handling from handler to clixon_events
2021-03-11 18:12:43 +01:00
Olof hagsand
dea3962cc0
* Fixed: [The config false leaf shouldn't be configed in startup stage #189 ]( https://github.com/clicon/clixon/issues/189 )
2021-03-11 09:11:14 +01:00
Olof hagsand
f01efaf02a
fixed fcgi notification, genmodel
2021-03-10 14:45:18 +01:00
Olof hagsand
5692072d36
* Fixed: [CLIXON is not waiting for the hello message #184 ]( https://github.com/clicon/clixon/issues/184 )
...
* Hello message semantics has been made stricter according to RFC 6241 Sec 8.1, for example:
* A client MUST send a <hello> element.
* Each peer MUST send at least the base NETCONF capability, "urn:ietf:params:netconf:base:1.1" (or 1.0 for RFC 4741)
* The netconf client will terminate (close the socket) if the client does not comply
* You can set `CLICON_NETCONF_HELLO_OPTIONAL` to true to use the old behavior of essentially ignoring hellos.
* New clixon-config@2020-03-08.yang revision
* Added: `CLICON_NETCONF_HELLO_OPTIONAL`
* The base capability has been changed to "urn:ietf:params:netconf:base:1.1" following RFC6241.
2021-03-10 14:18:16 +01:00
Olof hagsand
608f298ed9
* Fixed: [comma in yang list name will lead to cli setting error #186 ]( https://github.com/clicon/clixon/issues/186 )
2021-03-08 12:37:47 +01:00
Olof hagsand
a8d29b1e7e
* Restconf authentication callback (ca_auth) signature changed
...
* Not backward compatible: All uses of the ca-auth callback in restconf plugins must be changed
* New version is: `int ca_auth(h, req, auth_type, authp, userp)`
* where `auth_type` is the requested authentication-type (none, client-cert or user-defined)
* `authp` is the returned authentication flag
* `userp` is the returned associated authenticated user
* and the return value is three-valued: -1: Error, 0: not handled, 1: OK
* For more info see [clixon-docs/restconf](https://clixon-docs.readthedocs.io/en/latest/restconf.html )
2021-03-07 15:34:26 +01:00
Olof hagsand
c2f07fd29c
test fixes: mod timer for arm and install libevhtp lin in /us/lib
2021-03-06 17:04:31 +01:00
Olof hagsand
b7991d9b39
* Made a separate Clixon datastore XML/JSON top-level symbol
...
* Replaces the hardcoded "config" keyword.
* Implemented by a compile-time option called `DATASTORE_TOP_SYMBOL` option in clixon_custom.h
* Tests: added endtest to all tests. Removed all premature exits if BE=0
2021-03-05 14:15:15 +01:00