Olof hagsand
00645ee52b
* Added linenumbers to all YANG symbols for better debug and errors
...
* Improved error messages for YANG identityref:s and leafref:s by adding original line numbers
2021-08-03 12:53:37 +02:00
Olof hagsand
4d265d63bd
Fixed: The auto-cli identityref did not expand identities in grouping/usecases properly.
2021-08-03 11:15:45 +02:00
Olof hagsand
babdc6f496
* Fixed: [OpenConfig BGP afi-safi and when condition issues #249 ]( https://github.com/clicon/clixon/issues/249 )
...
* YANG when was not properly implemented for default values
* Improved error message on leafref validation errors
2021-08-02 15:48:38 +02:00
Olof hagsand
0b08ba6ae5
revert restconf internal tests using CLICON_RESTCONF_INSTALLDIR for docker
2021-07-27 11:18:35 +02:00
Olof hagsand
93a4777f0f
Removed default of CLICON_RESTCONF_INSTALLDIR
...
* The default behaviour is changed to use the config $(sbindir) to locate `clixon_restconf` when starting restconf internally
2021-07-27 10:53:47 +02:00
Olof hagsand
dee081646c
* Fixed: SEGV in clixon_netconf_lib functions from internal errors including validation.
...
* Check xerr argument both before and after call on netconf lib functions
2021-07-27 10:31:16 +02:00
Olof hagsand
600f29a117
- Added yang patch test: test_restconf_yang_patch.sh as placeholder for rfc 8072 tests
...
- Added patch-xml as valid media
2021-07-26 12:20:06 +02:00
Olof hagsand
c1c4e5b3f3
- cli set debug vars
...
- fixed: restconf native evhtp appended indata to old data
2021-07-26 10:46:00 +02:00
Olof hagsand
91313b31e0
Removed space from xpath canonical form of relex/unionex
2021-07-24 16:43:47 +02:00
Olof hagsand
b1e5e8548a
added ietf-yang-patch.yang and enabled clixon_util_validate
2021-07-20 15:54:42 +02:00
Olof hagsand
f7f24949d6
Merge branch 'yang-patch-alanfork' of https://github.com/alanyanigersiklu/clixon into alanyanigersiklu-yang-patch-alanfork
2021-07-19 22:54:00 +02:00
Olof hagsand
df6f26c0de
Misc cleanups, remove old yangs, typos, etc
2021-07-19 22:08:23 +02:00
Alan Yaniger
0c72100a05
implement yang-patch
2021-07-19 13:17:10 +03:00
Olof hagsand
e0ee365958
* Fixed: RFC 8040 yang-data extension allows non-key lists
...
* Added YANG_FLAG_NOKEY as exception to mandatory key lists
2021-07-19 11:15:49 +02:00
Olof hagsand
6bb6faadc9
* Fixed: mandatory leaf in a uses statement caused abort
...
* Occurence was in ietf-yang-patch.yang
2021-07-19 08:14:10 +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
ed1d5698e8
fix the belongs-to test
2021-07-08 16:53:45 +02:00
Olof hagsand
1925ac68cd
* Fixed: [RESTConf GET for a specific list instance retrieves data from other submodules that have same list name and key value #244 ]( https://github.com/clicon/clixon/issues/244 )
...
* Fixed: Double clixon error messages in yang2cli code
* Sanity checks for submodule belongs-to
2021-07-08 16:26:39 +02:00
Olof hagsand
fe0541959f
* Native Restconf is now default, not fcgi/nginx
...
* That is, to configure with fcgi, you need to explicitly configure: `--with-restconf=fcgi`
* Updated main example to native restconf and several other fixes
2021-07-07 16:14:58 +02:00
Olof hagsand
98c5fcd20f
Clixon 5.3.0.PRE
2021-07-07 13:14:17 +02:00
Olof hagsand
22563ee2de
- Clixon 5.2.0 release
2021-07-01 17:47:31 +02:00
Olof hagsand
ef131cf407
* 5.2.0 preparations
...
* Restconf native openssl - ifdef SSL_get0_next_proto_negotiated
2021-07-01 16:34:38 +02:00
Olof hagsand
89f843f919
* Fixed: [uses oc-if:interface-ref error with openconfig #233 ]( https://github.com/clicon/clixon/issues/233 )
2021-07-01 11:55:45 +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
96c9296056
testcase for patch empty field
2021-06-28 22:48:06 +02:00
Olof hagsand
54357a2a78
* Fixed: [ restconf patch method unable to chage value to empty string #229 ]( https://github.com/clicon/clixon/issues/229 )
2021-06-28 17:33:17 +02:00
Olof hagsand
3539a80d5e
restconf fcgi mem leak in indata
...
test pkill needs sleep before name settles
2021-06-27 16:40:27 +02:00
Olof Hagsand
df05acdc9e
test arm curl different return values
2021-06-26 21:39:57 +00:00
Olof Hagsand
b46418d774
Minor test and type fixes
2021-06-26 21:27:59 +00:00
Olof Hagsand
e451b7f43e
- changed debug printfs to work for i386
...
- restconf native centos8: fixed ssl shutdown error
- libnghttp2 older version patch
2021-06-26 08:38:23 +00:00
Olof Hagsand
b31107f646
- Restconf native: Fixed ssl/non-ssl read/write behaviour for data that is different in freebsd than in linux
...
- test: removed sed -i in tests since it is not portable between linux and bsd
2021-06-25 10:48:55 +00:00
Olof hagsand
940f4d4fb9
* Added ordering sanity check for YANG modules and sub-modules
...
* If YANG sub-statements are placed in wrong order, clixon fails on error.
2021-06-24 21:56:36 +02:00
Olof Hagsand
caf396cbda
- disable util_validate
...
- test vagrant: add libnghttp2 dependency
2021-06-24 17:41:46 +00:00
Olof Hagsand
e3e36aba50
test restconf: restconf proto should be default https only for native, not fcgi
2021-06-24 14:31:59 +00:00
Olof Hagsand
2d7d3c9782
test restconf native: generete server cert if not exists
2021-06-24 13:01:19 +00:00
Olof hagsand
c5da97e2a4
restconf memleaks
2021-06-24 13:09:18 +02:00
Olof hagsand
d6c175e76e
- Improved debugs for native restconf config reads
...
- Docker: restconf native added nghttp2
2021-06-23 10:53:27 +02:00
Olof hagsand
ba45d6d2a1
Fixed memory leak in new candidate_validate function
...
Added error returns for clixon-lib process rpc empty returns
2021-06-23 10:50:47 +02:00
Olof hagsand
cb469a2bc7
docker: nginx install changed in alpine
2021-06-20 16:06:24 +02:00
Olof hagsand
528b649012
ci: install libnghttp2
2021-06-18 22:59:04 +02:00
Olof hagsand
9edf380f6a
- Link utils statically if LINKAGE=static
...
- Fix event exit bug (set to new counter, dont increment)
- Changed default CI to be restconf=native instead of fcgi1~
- Tests:
- Change to same wait backend and restconf commands
- Change default restconf protocol from http to https
2021-06-18 22:50:30 +02:00
Olof hagsand
4b83f4198c
New utility: clixon_util_validate for stand-alone application that validates or commits datastores
2021-06-18 09:54:17 +02:00
Olof hagsand
dd8883420c
* Made backend transaction and commit/validate API available to plugin code.
...
* This enables that RPOC handles can call commit and validate via lib
* The commit/validate API is now: `candidate_validate()` and `candidate_commit()`
2021-06-17 19:20:27 +02:00
Olof hagsand
1f7fc3afcb
github actions: added sleep for internal restconf
2021-06-16 16:29:03 +02:00
Olof hagsand
917015ff3c
changed alpine www-data user
2021-06-16 16:17:17 +02:00
Olof hagsand
ec3c69b9cb
github actions: configure preparations
2021-06-16 14:47:23 +02:00
Olof hagsand
6bac41890d
github actions: try docker test
2021-06-16 14:44:42 +02:00
Olof hagsand
8bd0aa82d6
github actions: debug wait backend/restconf
2021-06-16 14:39:28 +02:00
Olof hagsand
c814b809bb
github actions: test backend run
2021-06-16 14:34:52 +02:00
Olof hagsand
cdc8924238
github actions: install curl
2021-06-16 14:30:06 +02:00