Commit graph

1546 commits

Author SHA1 Message Date
Olof hagsand
030715df61 Tests:
- Added tests for more coverage, including test_debug.sh
- Added yang deviation test
2021-04-24 17:51:39 +02:00
Olof hagsand
6981daf595 Fixed: [Multiple http requests in native restconf yields same reply #212](https://github.com/clicon/clixon/issues/212) 2021-04-24 17:43:05 +02:00
Olof hagsand
d48b8a8fad -Yang Deviation/deviate : added yacc/lex syntax 2021-04-24 12:31:40 +02:00
Olof hagsand
ad0af26649 Merge branch 'shmuelnatan-autocli' 2021-04-22 20:56:35 +02:00
Olof hagsand
1c7e52f829 Merge branch 'autocli' of https://github.com/shmuelnatan/clixon into shmuelnatan-autocli 2021-04-22 20:56:04 +02:00
Olof hagsand
6cb75f5492 Add tab mode in example. Make coverage script sh->bash script 2021-04-22 20:44:37 +02:00
shmuels
5d18c02dfe completing the function of hide for autocli-op in the yang files 2021-04-22 19:22:31 +03:00
shmuels
bfb7edece4 completing the function of hide for autocli-op in the yang files 2021-04-22 19:17:32 +03:00
Olof hagsand
ecd5f7de70 * Add default network namespace constant: RESTCONF_NETNS_DEFAULT with default value "default". 2021-04-22 13:45:02 +02:00
Olof hagsand
2ce8d9b488 Added codecov config file 2021-04-21 19:23:17 +02:00
shmuels
0ffff7844e completing the function of hide for autocli-op in the yang files 2021-04-21 15:25:11 +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
shmuels
3736927efa completing the function of hide for autocli-op in the yang files 2021-04-20 18:35:20 +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
33347f0939
Update README.md 2021-04-19 19:37:37 +02:00
Olof hagsand
8ad6c487ef codecov badge 2021-04-19 19:29:55 +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
cede620a2a completing the function of hide for autocli-op in the yang files 2021-04-19 10:27:44 +03: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
f9f533834b update openconfig test to latest pull 2021-04-15 22:22:25 +02:00
Olof hagsand
ae943d485e prepare for 5.1.0 2021-04-15 20:14:25 +02:00
Olof Hagsand
51df120e9e
Merge pull request #203 from dcornejo/master
Add ability to enable core dumps from RESTCONF process
2021-04-15 20:00:30 +02:00
Dave Cornejo
bd20553362 missed a Makefile change 2021-04-15 07:36:48 -10:00
Dave Cornejo
ec0c5118a4 Cleanup pull request
Remove clixon-restconf 2021-04-12, add changes to 2021-03-15
Remove noisy debug logging
2021-04-15 07:30:26 -10:00
Olof hagsand
307378227d preparing for 5.1.0 2021-04-15 14:26:57 +02:00
Olof Hagsand
418f8f4c6f
Merge pull request #200 from nowaits/master
yang container add support for cl:autocli-op
2021-04-15 10:17:08 +02:00
Olof hagsand
bba23be444 mem fixes, evolved openconfig interfaces test 2021-04-15 10:12:35 +02:00
Dave Cornejo
e4885d51e6 Add ability to enable core dumps from RESTCONF process
Contributed by Rubicon Communications LLC, dbs Netgate
2021-04-14 09:42:37 -10:00
Olof hagsand
1cd0eab7ff Fixed broken test scripts sum.sh and all.sh 2021-04-14 17:13:02 +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
21a65d4a75 Build and test issues with evhtp 2021-04-12 12:50:42 +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
9f5176adf5 Fix: Restconf service did not close when restconf config was removed 2021-04-09 13:47:05 +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
jxm
b938c0c40c yang container add support for cl:autocli-op 2021-04-09 15:27:37 +08: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
2bf75158a6
Merge pull request #194 from dcornejo/master
Make authentication-type none a configurable feature
2021-04-07 10:31:20 +02:00
Olof Hagsand
aeba2496c3
Merge pull request #197 from s-bauer/master
fix: Build breaks when using "--without-restconfig"
2021-04-07 10:25:34 +02:00
Olof hagsand
692dc12c03 * Fixed ["aux" folder issue with Windows. #198](https://github.com/clicon/clixon/issues/198)
* Updated config scripts
* removed unused expand_dir util cli function
* Fixed again [making cli_show_options's output more human readable #199](https://github.com/clicon/clixon/issues/199)
2021-04-07 09:44:18 +02:00