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
5baf8642ea
* Fixed union in XPATH [XPATH issues #219 ]( https://github.com/clicon/clixon/issues/219 )
2021-05-15 22:28:10 +02:00
Olof hagsand
783b0a4857
* YANG when statement in conjunction with grouping/uses/augment
...
* Several cases were not implemented fully according to RFC 7950
* Do not extend default values if when statements evaluate to false
* Do not allow edit-config of nodes if when statements evaluate to false (Sec 8.3.2)
* If a key leaf is defined in a grouping that is used in a list, the "uses" statement MUST NOT have a "when" statement. (See 7.21.5)
* See [yang uses's substatement when has no effect #218 ](https://github.com/clicon/clixon/issues/2$
2021-05-13 14:26:02 +02:00
Olof Hagsand
5c7498ee40
Merge pull request #220 from shmuelnatan/master
...
change localtime to localtime_r which is a thread-safe function
2021-05-12 08:45:38 +02:00
Olof hagsand
40f4df1390
Add timeout 100ms before every kill restconf iteration
2021-05-11 15:55:33 +02:00
shmuels
e2b4e7097b
Revert "Disable the CLI comment feature entirely."
...
This reverts commit 90e2bdf15d .
2021-05-10 19:02:48 +03:00
shmuels
b362d0d511
change localtime to localtime_r which is a thread-safe function
2021-05-10 18:53:21 +03:00
shmuels
90e2bdf15d
Disable the CLI comment feature entirely.
2021-05-10 10:03:35 +03: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
ad08200931
- Added Restconf-style xml/json message bodies everywhere
...
- Added api_return_err0() and changed many calls to that instead of api_return_err
- Added netconf_operation_not_supported_xml()
2021-05-08 20:20:01 +02:00
Olof hagsand
c50f9f8056
Added test for restconf tls too weak ca using md5
2021-05-07 14:05:40 +02:00
Olof hagsand
ac51cb0293
* Fix: XPath:s used in netconf (eg get-config) did not correctly access default values
2021-05-07 13:07:34 +02:00
Olof hagsand
0225488c39
- Moved deviation actions to include grouped/uses statements. See https://github.com/clicon/clixon/issues/211
2021-05-06 16:23:50 +02:00
Olof hagsand
1c5c5a71f2
- Fixed deviate keywords as strings: https://github.com/clicon/clixon/issues/211
2021-05-06 14:44:22 +02:00
Olof hagsand
866d8d1d0a
- Fixed issues with mismatching Content-Length in replies causing extra bytes to spill over into the next message
2021-05-06 14:34:31 +02:00
Olof hagsand
6605ab8ce7
Restconf native: add error bodies on early errors
2021-05-05 20:40:59 +02:00
Olof hagsand
17e7b25537
* RESTCONF in Clixon used empty key as "wildchar". But according to RFC 8040 it should mean the "empty string".
...
* Example: `GET restconf/data/x:a=`
* Previous meaning (wrong): Return all `a` elements.
* New meaning (correct): Return the `a` instance with empty key string: "".
* [RESTCONF GET request of single-key list with empty string returns all elements #213 ](https://github.com/clicon/clixon/issues/213 )
* [RESTCONF GETof lists with empty string keys does not work #214 ](https://github.com/clicon/clixon/issues/214 )
2021-05-05 15:04:22 +02:00
Olof hagsand
af04ec9e9d
Completed: Yang deviation [deviation statement not yet support #211 ]( https://github.com/clicon/clixon/issues/211 )
2021-05-04 11:38:39 +02:00
Olof hagsand
5a72626aa4
- Yang deviation [deviation statement not yet support #211 ]( https://github.com/clicon/clixon/issues/211 )
...
- Added "depth" parameter to yang_apply
- Added extra API function to yang_cardinality to check individual relation
2021-05-03 14:34:35 +02:00
Olof hagsand
6e5e53e02e
Restconf native: add body to bad request return
2021-05-01 17:53:29 +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
27af25f57b
test: perf restconf rm nginx headers
2021-04-29 14:45:15 +02:00
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
0d7e644335
- Native restconf: use cligen buffers instead of libevent for replies
2021-04-29 14:06:05 +02:00
Olof hagsand
05009aed67
Add restconf get list extra =restval test
2021-04-28 11:31:41 +02:00
Olof hagsand
4c1249fd9b
More restconf error tests for coverage
2021-04-25 17:53:32 +02:00
Olof hagsand
448b56ca0c
- Removed sha1 code
...
- ifdef unused SOAP encoding
2021-04-24 22:06:26 +02:00
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
jxm
45f3d48179
add clixon proc get pid api
2021-04-23 10:44:06 +08: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