Olof hagsand
fc73493881
Docs update, externalized cvec_concat_cb, example mem-leak
2023-08-15 20:45:15 +02:00
Olof hagsand
90b7a550b2
Added configure option CLICON_PLUGIN_DLOPEN_GLOBAL for config of dlopen()
2023-07-06 17:34:28 +02:00
Olof hagsand
3858cd93c2
Add pipe functions
2023-07-04 20:50:41 +02:00
Olof hagsand
b33603107d
Output pipe functionality
...
Based on output pipe code in CLIgen
Clixon adaptions include `CLICON_PIPETREE=` variable and a new cli_pipe.c callback file
2023-07-03 15:14:11 +02:00
Olof hagsand
72a4494b69
Clixon 6.1
...
Reviewed documentation, changelog, etc
2023-02-19 11:35:37 +01:00
Olof hagsand
994632daac
Test adaption to new openconfig version
...
Last minute changes to readme:s before 6.1.0
2023-02-18 12:10:58 +01:00
Jarrod Baumann
d65a6b14c2
[docs] update FAQ hello world example url
2023-02-07 21:38:11 -06:00
Olof hagsand
67e6e5e5e1
Preparations for Clixon 6.0 release
...
Test:
- netconf-monitoring using http-data disabled for restconf=fcgi
- updated cicd.sh script with detail and change logfile
2022-11-29 10:00:41 +01:00
Olof hagsand
c2faf8b96c
Main example: Removed dependency of external IETF RFCs
...
+ * See [Can't initiate clixon_backend](https://github.com/clicon/clixon/issues/382 )
2022-11-01 12:20:30 +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
3a5d156690
Docs: C struct style
...
Tests: changed waiting->wait backend
2022-10-24 13:54:11 +02:00
Olof hagsand
c4e69b76cf
Doxyfile for graphs
2022-10-09 12:10:12 +02:00
Olof hagsand
f0def17b85
New pre version: 6.0.0.PRE
2022-09-26 12:37:52 +02:00
Olof hagsand
a3b94f4781
Beginning 5.9.0.PRE
2022-07-29 08:56:14 +02:00
Olof hagsand
84d88c8ad8
Restconf http-data server updates
...
Check data paths for .., ~ and soft links
Changed semantics of `CLICON_HTTP_DATA_PATH` and `_ROOT`
Change URI catch-all to 404 instead of 400
Fixed some memory leaks
2022-04-26 17:42:53 +02:00
Olof hagsand
927d6f2d9c
* Documentation: plugin start function doc
2022-03-14 12:14:55 +01:00
Olof hagsand
12695c5d87
* Unit test ifdef for restconf http1 parser
...
* test: fix cli-union test
2022-02-17 09:16:01 +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
77b4468eb3
Updated copyright statements to 2022
2022-01-18 16:36:00 +01:00
Olof hagsand
1808015cf6
Fixed: SEGV when starting FCGI restconf program
...
- Reverted removal of CLICON_RESTCONF_PATH since it was used there
Misc fixes: initialized variables, docs, removed obsolete --enable-optyang
2021-12-30 16:35:54 +01:00
Olof hagsand
339b744835
* Optional yangs for testing have been removed from the Clixon repo
...
* These were included for testing
* If you want to run the Clixon test suite you need to point `YANGMODELS`, see test/README.md
* The following configure options have been removed:
* `configure --with-opt-yang-installdir=DIR`
* `configure --enable-optyangs`
* You may need to specify standard YANGs using configure option `--with-yang-standard-dir=DIR`
* Updated yang ietf models with fetures for tet
* Added option `CLICON_YANG_AUGMENT_ACCEPT_BROKEN` to accept broken yangmodels.
* This is a debug option for CI testcases where standard YANG models are broken
2021-11-29 10:28:34 +01:00
Olof hagsand
daf37f6ad7
Fixed: [Doxygen - Typo in Input #275 ]( https://github.com/clicon/clixon/issues/275 )
2021-10-12 15:28:40 +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
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
8008fa01b7
Pagination draft
2021-09-21 11:22:40 +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
8db716ca07
- Moved yang patch code to new files restconf_methods_patch.[ch]
...
- Started modifying patch code to style guidelines
- Made patch test independent of example
- Added developers style guidelines
2021-08-15 20:43:52 +02: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
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
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
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
e8cd587ded
Changed libevhtp tests to compile from clicon instead of criticalstack
2021-03-03 21:57:19 +01:00
Olof hagsand
b41f68b677
debug print of backend state, split test-stream into a netconf and restconf part, change restconf yang auth-type from leaf-list to leaf
2021-01-27 14:40:34 +01:00
Olof hagsand
96b50b88e8
Copyright 2021
2021-01-13 14:40:34 +01:00
Olof hagsand
22adc58187
* New process-control RPC feature in clixon-lib.yang to manage processes
...
* This is an alternative to manage a clixon daemon via sudtemd, containerd or other
* One important special case is starting the clixon-restconf daemon internally
* This is how it works:
* Register a process via `clixon_process_register(h, name, namespace, argv, argc)`
* Use process-control RPC defined in clixon-lib.yang to start/stop/restart or query status on that process
* Example code in the main example
2020-12-15 15:48:42 +01:00
Olof hagsand
c049a397b0
Fixed ssl client certs for evhtp.
...
* Added SSL cert info as options: CLICON_SSL_SERVER_CERT, CLICON_SSL_SERVER_KEY, CLICON_SSL_CA_CERT
Added config.sh for testing for autotools
2020-07-01 15:11:22 +02:00
Olof hagsand
1597bd303c
changed cligen repo from olofhagsand/cligen to clicon/cligen
2020-06-21 15:57:43 +02:00
Olof hagsand
ee29452d24
* New clixon-config@2020-06-17.yang revision
...
* Added CLICON_CLI_LINES_DEFAULT for setting window row size of raw terminals
* Added enum HIDE to CLICON_CLI_GENMODEL for auto-cli
2020-06-18 11:28:47 +02:00
Olof hagsand
5120409a56
Auto-cli updates and sync with clixon-docs
2020-06-15 16:07:04 +02:00
Olof hagsand
94cf4a88b3
* Optimizations
...
* Reduced memory for attribute and body objects, see `XML_NEW_DIFFERENTIATE` compile-time option.
* Optimized cbuf handling in parsing and xml2cbuf functions.
* Optimized xml scanner to read strings rather than single chars
* Optimized xml_merge for the case of disjunct trees.
2020-04-28 22:31:58 +02:00
Olof hagsand
e6178858f0
In the bbuild system, you dont need to do make install-include for installing include files for compiling. This is now included in the actions done by make install.
2020-04-05 12:25:33 +02:00
Olof hagsand
d36ab2e093
merge
2020-03-16 15:27:59 +01:00
Olof hagsand
0e94937ccf
Sanity check of mandatory key statement for Yang LISTs.
...
* If fails, exit with error message, eg: `Yang error: Sanity check failed: LIST vsDataContainer lacks key statement which MUST be present (See RFC 7950 Sec 7.8.2)`
* Can be disabled by setting `CLICON_CLICON_YANG_LIST_CHECK` to `false`
2020-03-09 15:48:33 +01:00
Olof hagsand
0f54899ae4
* Added option: CLICON_CLI_BUF_START and CLICON_CLI_BUF_THRESHOLD so you can change the start and
...
threshold of quadratic and linear growth of CLIgen buffers (cbuf:s)
* Memory footprint
* Do not autopopulate namespace cache, instead use on-demand, see `xml2ns()`.
* Set CBUF start level to 256 (`CLICON_CLI_BUF_START` option)
* Reduced xml child vector default size from 4 to 1 with quadratic growoth to 64K then linear
2020-03-04 11:27:43 +01:00
Olof hagsand
e8ae628d06
4.3.0 commit
2020-01-01 12:16:32 +01:00
Olof hagsand
0d22a8b6d0
Yang files reorganized into three classes: clixon, mandatory, optional
2019-11-26 21:51:28 +01:00
Olof hagsand
728fe9c6ac
* Bumped version to 4.3.0.PRE
...
* Added wildcard `*` as a mode to `CLICON_MODE` in clispec files
* [Add missing includes](https://github.com/clicon/clixon/pulls )
2019-11-03 13:05:50 +01:00
User Olof
8c18f2a86d
Configure and test modification for better Freebsd port
2019-09-20 06:09:48 -10:00
Olof hagsand
27fd99e7cd
* Implemented backend daemon drop privileges after initialization to
...
run as non-privileged user
2019-09-14 18:34:32 +02:00