Commit graph

  • e6022bc088
    Merge pull request #252 from pheller/filter-and-xml-encoding-fixes Olof Hagsand 2021-08-08 13:32:24 +02:00
  • f2e81be66e fix merge conflicts Alan Yaniger 2021-08-06 12:08:13 +03:00
  • 2abbea4e3a fixed Makefile.in to use name of yang patch file Alan Yaniger 2021-08-06 12:00:38 +03:00
  • 355ed7d96a * Fixed: [clixon_netconf errors on client XML Declaration with valid encoding spec](https://github.com/clicon/clixon/issues/250) Olof hagsand 2021-08-05 21:44:52 +02:00
  • 94b8f7fec5 fixed another rebase error Alan Yaniger 2021-08-05 15:39:27 +03:00
  • 17c7acfa11 fixed error in rebase Alan Yaniger 2021-08-05 15:34:38 +03:00
  • d4c77ffa90 Move Yang patterns: \n match from yang parse to regex compile stage Olof hagsand 2021-08-05 12:53:26 +02:00
  • a6176ec773 cli exclude clixon-restconf, extra cv check in default1 Olof hagsand 2021-08-05 12:07:07 +02:00
  • c743b90fdd * Fixed: Yang patterns: \n and other non-printable characters were broken * Example: Clixon interpereted them two characters: \\ n instead of ascii 10 Olof hagsand 2021-08-05 09:59:20 +02:00
  • dc2b3a80ca * Fixed: YANG when was not properly implemented for LEAF default values Olof hagsand 2021-08-03 13:38:31 +02:00
  • 8675620d22 * 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 Olof hagsand 2021-08-03 12:53:37 +02:00
  • efcfb176ae Fixed: The auto-cli identityref did not expand identities in grouping/usecases properly. Olof hagsand 2021-08-03 11:15:45 +02:00
  • 551a985d1b * 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 Olof hagsand 2021-08-02 15:46:07 +02:00
  • ad950efc32 fixed check when getting value inside xml tag given the key Alan Yaniger 2021-08-01 17:01:40 +03:00
  • 523407a9c1 fixed string length checks, removed unnecessary loop, changed some other code for clarity Alan Yaniger 2021-08-01 16:50:04 +03:00
  • fd28fd498d - Add prefix "yang_patch_" to new functions - use clixon cbuf functions instead of new string functions - moved some code into separate functions - added comments - added documentation to functions that did not have it Alan Yaniger 2021-07-27 18:36:46 +03:00
  • ecceda35b6 revert restconf internal tests using CLICON_RESTCONF_INSTALLDIR for docker Olof hagsand 2021-07-27 11:18:35 +02:00
  • 96a3ee98c6 Removed default of CLICON_RESTCONF_INSTALLDIR * The default behaviour is changed to use the config $(sbindir) to locate clixon_restconf when starting restconf internally Olof hagsand 2021-07-27 10:53:47 +02:00
  • 5de6d56822 * Fixed: SEGV in clixon_netconf_lib functions from internal errors including validation. * Check xerr argument both before and after call on netconf lib functions Olof hagsand 2021-07-27 09:39:44 +02:00
  • 128764a570 - Added yang patch test: test_restconf_yang_patch.sh as placeholder for rfc 8072 tests - Added patch-xml as valid media Olof hagsand 2021-07-26 12:20:06 +02:00
  • 659aaac5c6 - cli set debug vars - fixed: restconf native evhtp appended indata to old data Olof hagsand 2021-07-25 22:21:37 +02:00
  • 86b64c4dd0 split up long function, use safe string handling functions Alan Yaniger 2021-07-25 09:04:26 +03:00
  • f64eff15a0 Removed space from xpath canonical form of relex/unionex Olof hagsand 2021-07-24 16:43:47 +02:00
  • 1631e23c98 added ietf-yang-patch.yang and enabled clixon_util_validate Olof hagsand 2021-07-20 15:54:42 +02:00
  • 75f5dc8500 Misc cleanups, remove old yangs, typos, etc Olof hagsand 2021-07-19 22:07:21 +02:00
  • 8d2fbf39de implement yang-patch Alan Yaniger 2021-07-19 13:17:10 +03:00
  • 9aad253f1e Move Yang patterns: \n match from yang parse to regex compile stage Olof hagsand 2021-08-05 12:53:26 +02:00
  • 3ed41c5a04 cli exclude clixon-restconf, extra cv check in default1 Olof hagsand 2021-08-05 12:07:07 +02:00
  • dcaeb581a1 * Fixed: Yang patterns: \n and other non-printable characters were broken * Example: Clixon interpereted them two characters: \\ n instead of ascii 10 Olof hagsand 2021-08-05 09:59:20 +02:00
  • 603f9724ce * Fixed: YANG when was not properly implemented for LEAF default values Olof hagsand 2021-08-03 13:38:31 +02:00
  • 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 Olof hagsand 2021-08-03 12:53:37 +02:00
  • 4d265d63bd Fixed: The auto-cli identityref did not expand identities in grouping/usecases properly. Olof hagsand 2021-08-03 11:15:45 +02:00
  • 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 Olof hagsand 2021-08-02 15:46:07 +02:00
  • d1f44e2f1f fixed check when getting value inside xml tag given the key Alan Yaniger 2021-08-01 17:01:40 +03:00
  • db7e016aa0 fixed string length checks, removed unnecessary loop, changed some other code for clarity Alan Yaniger 2021-08-01 16:50:04 +03:00
  • 3c5f956805 Merge branch 'master' into filter-and-xml-encoding-fixes Phil Heller 2021-07-29 23:01:47 -06:00
  • 38f4cd8237 Testing dependency fixes, Netconf XML declaration and filter logic fix Phil Heller 2021-07-29 21:07:15 -06:00
  • 948fa70b44 - Add prefix "yang_patch_" to new functions - use clixon cbuf functions instead of new string functions - moved some code into separate functions - added comments - added documentation to functions that did not have it Alan Yaniger 2021-07-27 18:36:46 +03:00
  • 0b08ba6ae5 revert restconf internal tests using CLICON_RESTCONF_INSTALLDIR for docker Olof hagsand 2021-07-27 11:18:35 +02:00
  • 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 Olof hagsand 2021-07-27 10:53:47 +02:00
  • 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 Olof hagsand 2021-07-27 09:39:44 +02:00
  • 600f29a117 - Added yang patch test: test_restconf_yang_patch.sh as placeholder for rfc 8072 tests - Added patch-xml as valid media Olof hagsand 2021-07-26 12:20:06 +02:00
  • c1c4e5b3f3 - cli set debug vars - fixed: restconf native evhtp appended indata to old data Olof hagsand 2021-07-25 22:21:37 +02:00
  • 46d07c1372 split up long function, use safe string handling functions Alan Yaniger 2021-07-25 09:04:26 +03:00
  • 91313b31e0 Removed space from xpath canonical form of relex/unionex Olof hagsand 2021-07-24 16:43:47 +02:00
  • b1e5e8548a added ietf-yang-patch.yang and enabled clixon_util_validate Olof hagsand 2021-07-20 15:54:42 +02:00
  • f7f24949d6 Merge branch 'yang-patch-alanfork' of https://github.com/alanyanigersiklu/clixon into alanyanigersiklu-yang-patch-alanfork Olof hagsand 2021-07-19 22:29:33 +02:00
  • df6f26c0de Misc cleanups, remove old yangs, typos, etc Olof hagsand 2021-07-19 22:07:21 +02:00
  • 0c72100a05 implement yang-patch Alan Yaniger 2021-07-19 13:17:10 +03:00
  • e0ee365958 * Fixed: RFC 8040 yang-data extension allows non-key lists * Added YANG_FLAG_NOKEY as exception to mandatory key lists Olof hagsand 2021-07-19 11:15:49 +02:00
  • 6bb6faadc9 * Fixed: mandatory leaf in a uses statement caused abort * Occurence was in ietf-yang-patch.yang Olof hagsand 2021-07-19 08:14:10 +02:00
  • 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 Olof hagsand 2021-07-09 15:00:47 +02:00
  • ed1d5698e8 fix the belongs-to test Olof hagsand 2021-07-08 16:53:45 +02:00
  • 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 Olof hagsand 2021-07-08 16:09:18 +02:00
  • 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 Olof hagsand 2021-07-07 16:14:01 +02:00
  • 98c5fcd20f Clixon 5.3.0.PRE Olof hagsand 2021-07-07 13:14:17 +02:00
  • 22563ee2de - Clixon 5.2.0 release Olof hagsand 2021-07-01 17:47:31 +02:00
  • ef131cf407 * 5.2.0 preparations * Restconf native openssl - ifdef SSL_get0_next_proto_negotiated Olof hagsand 2021-07-01 16:34:38 +02:00
  • 89f843f919 * Fixed: [uses oc-if:interface-ref error with openconfig #233](https://github.com/clicon/clixon/issues/233) Olof hagsand 2021-07-01 11:53:46 +02:00
  • 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) Olof hagsand 2021-06-30 10:59:10 +02:00
  • 96c9296056 testcase for patch empty field Olof hagsand 2021-06-28 22:43:33 +02:00
  • 54357a2a78 * Fixed: [ restconf patch method unable to chage value to empty string #229](https://github.com/clicon/clixon/issues/229) Olof hagsand 2021-06-28 17:33:17 +02:00
  • 3539a80d5e restconf fcgi mem leak in indata test pkill needs sleep before name settles Olof hagsand 2021-06-27 16:32:10 +02:00
  • df05acdc9e test arm curl different return values Olof Hagsand 2021-06-26 21:39:57 +00:00
  • b46418d774 Minor test and type fixes Olof Hagsand 2021-06-26 21:27:59 +00:00
  • e451b7f43e - changed debug printfs to work for i386 - restconf native centos8: fixed ssl shutdown error - libnghttp2 older version patch Olof Hagsand 2021-06-26 08:36:24 +00:00
  • 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 Olof Hagsand 2021-06-25 10:46:53 +00:00
  • 940f4d4fb9 * Added ordering sanity check for YANG modules and sub-modules * If YANG sub-statements are placed in wrong order, clixon fails on error. Olof hagsand 2021-06-24 21:56:36 +02:00
  • caf396cbda - disable util_validate - test vagrant: add libnghttp2 dependency Olof Hagsand 2021-06-24 17:41:46 +00:00
  • e3e36aba50 test restconf: restconf proto should be default https only for native, not fcgi Olof Hagsand 2021-06-24 14:31:59 +00:00
  • 2d7d3c9782 test restconf native: generete server cert if not exists Olof Hagsand 2021-06-24 13:01:19 +00:00
  • c5da97e2a4 restconf memleaks Olof hagsand 2021-06-24 13:09:18 +02:00
  • d6c175e76e - Improved debugs for native restconf config reads - Docker: restconf native added nghttp2 Olof hagsand 2021-06-23 10:52:19 +02:00
  • ba45d6d2a1 Fixed memory leak in new candidate_validate function Added error returns for clixon-lib process rpc empty returns Olof hagsand 2021-06-23 10:50:47 +02:00
  • cb469a2bc7 docker: nginx install changed in alpine Olof hagsand 2021-06-20 16:06:24 +02:00
  • 528b649012 ci: install libnghttp2 Olof hagsand 2021-06-18 22:59:04 +02:00
  • 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 Olof hagsand 2021-06-18 12:18:33 +02:00
  • 4b83f4198c New utility: clixon_util_validate for stand-alone application that validates or commits datastores Olof hagsand 2021-06-18 09:54:17 +02:00
  • 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() Olof hagsand 2021-06-17 19:20:27 +02:00
  • 1f7fc3afcb github actions: added sleep for internal restconf Olof hagsand 2021-06-16 16:29:03 +02:00
  • 917015ff3c changed alpine www-data user Olof hagsand 2021-06-16 16:17:17 +02:00
  • ec3c69b9cb github actions: configure preparations Olof hagsand 2021-06-16 14:47:23 +02:00
  • 6bac41890d github actions: try docker test Olof hagsand 2021-06-16 14:44:42 +02:00
  • 8bd0aa82d6 github actions: debug wait backend/restconf Olof hagsand 2021-06-16 14:39:28 +02:00
  • c814b809bb github actions: test backend run Olof hagsand 2021-06-16 14:34:52 +02:00
  • cdc8924238 github actions: install curl Olof hagsand 2021-06-16 14:30:06 +02:00
  • 4c82562d4f github actions: clixon make util and example Olof hagsand 2021-06-16 14:25:35 +02:00
  • d1013d5cce github actions: split into separate runs Olof hagsand 2021-06-16 14:21:31 +02:00
  • 8482bbffa9 github actions: typo prepare site.sh Olof hagsand 2021-06-16 14:19:05 +02:00
  • 7a2cd61015 github actions: prepare test site.sh file Olof hagsand 2021-06-16 14:16:36 +02:00
  • cc7fa155f4 github actions: typo run Olof hagsand 2021-06-16 14:08:33 +02:00
  • b28a7aa4a6 github actions: run inline tests, not docker Olof hagsand 2021-06-16 14:07:13 +02:00
  • 4b2430e007 github actions: dont add www-data Olof hagsand 2021-06-16 14:03:01 +02:00
  • f7162297d3 github actions: libevent and clixon users Olof hagsand 2021-06-16 13:51:01 +02:00
  • fdcb7eb9ab github actions: libevhtp Olof hagsand 2021-06-16 13:11:18 +02:00
  • f66916ae57 github actions: native restconf Olof hagsand 2021-06-16 13:09:13 +02:00
  • 113f92ab41 Move clixon CI from travis to github actions Olof hagsand 2021-06-16 13:05:51 +02:00
  • b40dafb691 * Event exit API changed to a single decrementing counter where 1 means exit. * Removed: clicon_exit_reset() * Changed: clicon_exit_set() --> clixon_exit_set(int nr) * Changed: clicon_exit_get() --> clixon_exit_get() * native restconf special case upgrade handling from http/1 -> http/2 and restconf restart: delay the restart using event exit counter Olof hagsand 2021-06-16 11:58:13 +02:00
  • 4f513385e9 - Restconf native http/1 to http/2 upgrade (non-tls) Olof hagsand 2021-06-13 12:43:19 +02:00
  • b711faade9 grpc in shape Olof hagsand 2021-06-11 14:38:48 +02:00