Commit graph

  • cf63d0f761 * New clixon-config@2020-12-30.yang revision * New clixon-lib@2020-12-30.yang revision * Added callback to process-control RPC feature in clixon-lib.yang to manage processes * Changed behavior of starting restconf internally using CLICON_BACKEND_RESTCONF_PROCESS monitoring changes in enable flag, not only the RPC. * Changed: RPC process-control output parameter status to pid Olof hagsand 2021-01-01 17:26:49 +01:00
  • 7459925bd0 Limited fuzz by AFL committed, see [fuzz/README.md](fuzz/README.md) for details Olof hagsand 2020-12-29 18:29:06 +01:00
  • 7f49c13eba test restconf bugfix, added xml_nsctx_cbuf Olof hagsand 2020-12-29 15:57:21 +01:00
  • 41e23865a1 revise testing: change expectfn -> extectpart etc Olof hagsand 2020-12-29 13:49:49 +01:00
  • 96ab7292b9 * Added cvv_i output parameter to api_path_fmt2api_path() to see how many cvv entries were used * CLIspec dbxml API: Ability to specify deletion of _any_ vs _specific_ entry. Olof hagsand 2020-12-29 11:14:34 +01:00
  • 0289569586 datastore_read: bind yang when reading from cache Baruch Siach 2020-12-28 16:10:52 +02:00
  • 906d8bc63c [Presence container configs not displayed in 'show config set' #164 ](https://github.com/clicon/clixon/issues/164) Olof hagsand 2020-12-28 14:52:56 +01:00
  • 4de0a475d3 4.10.PRE Olof hagsand 2020-12-28 13:16:25 +01:00
  • 006580cdc1 4.9.0 Olof hagsand 2020-12-18 15:08:42 +01:00
  • eaedb14918 Prepare for 4.9.0 release Olof hagsand 2020-12-18 13:54:00 +01:00
  • b8f5d1dcae * Added CLICON_BACKEND_RESTCONF_PROCESS to clixon-config.yang Olof hagsand 2020-12-17 12:13:06 +01:00
  • 4fe3486d4e
    Merge pull request #162 from s-bauer/patch-2 Olof Hagsand 2020-12-16 16:22:29 +01:00
  • 2b820e153a * [Delete and show config are oblivious to the leaf value #157](https://github.com/clicon/clixon/issues/157) * Added equality of values necessary condition in edit-config delete/remove of leafs Olof hagsand 2020-12-16 15:45:17 +01:00
  • 8bc81a8e42 Merge branch 'baruchsiach-fix-xpath-select' Olof hagsand 2020-12-16 11:52:32 +01:00
  • aefc84892b Merge branch 'fix-xpath-select' of https://github.com/baruchsiach/clixon into baruchsiach-fix-xpath-select Olof hagsand 2020-12-16 11:43:45 +01:00
  • f4076497f1 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-12-16 11:37:57 +01:00
  • 214f9cbd82 Merge branch 'dcornejo-master' Olof hagsand 2020-12-16 11:37:28 +01:00
  • 07f96934b3 need to check grand-parent exists Olof hagsand 2020-12-16 11:37:02 +01:00
  • 0e1ae1deab Merge branch 'master' of https://github.com/dcornejo/clixon into dcornejo-master Olof hagsand 2020-12-16 10:18:37 +01:00
  • 53cdfebe11
    Merge pull request #161 from s-bauer/patch-1 Olof Hagsand 2020-12-16 10:03:21 +01:00
  • ff8650c748 restconf-rpc tests Olof hagsand 2020-12-15 17:22:07 +01:00
  • 475e70d773 * 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 Olof hagsand 2020-12-15 14:43:01 +01:00
  • 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 Olof hagsand 2020-12-15 14:43:01 +01:00
  • 8540820698 * New clixon-lib@2020-12-08.yang revision * Added: autocli-op extension (see new features) * Added: rpc process-control for process/daemon management * Added enable flag and removed presence in clixon-restconf Olof hagsand 2020-12-13 22:19:25 +01:00
  • 638658c63d
    Update netconf_rpc.c Simon Bauer 2020-12-13 18:07:28 +01:00
  • be329dac6d
    Fixed filter namespace in netconf_rpc.o Simon Bauer 2020-12-13 18:05:49 +01:00
  • 4ea547ac6f
    Fixed example_reset function Simon Bauer 2020-12-13 17:04:43 +01:00
  • d6db28c47a Fixed memory error in RESTCONF PATCH/PUT when accessing top-level data node. Olof hagsand 2020-12-09 13:38:57 +01:00
  • b8641f30bd * More YANG extension functionality, * See [Augment auto-cli for hiding/modifying cli syntax #156](https://github.com/clicon/clixon/issues/156) and [hiding auto-generated CLI entries #153](https://github.com/clicon/clixon/issues/153) * Extensions can be used in augmentations * Extension autocli-op has been added to add "hidden" commands in the autocli * Documentation: https://clixon-docs.readthedocs.io/en/latest/misc.html#extensions Olof hagsand 2020-12-08 17:21:37 +01:00
  • e1b94d94d2 * Ensure all fopen check for NULL (not -1) * Improve test-perf cycles Olof hagsand 2020-12-07 09:56:07 +01:00
  • 344dcacf6f * Second fix of https://github.com/clicon/clixon/issues/158 * Actually there is an error of duplicate rpc-replies, but it should be detected in the backend not here Olof Hagsand 2020-12-06 11:22:26 +00:00
  • 3c014184f7 * Fixed: [ Calling copy-config RPC from restconf #158](https://github.com/clicon/clixon/issues/158) Olof hagsand 2020-12-05 17:36:21 +01:00
  • a71e8aaceb * minor edits make datastore=nocache pass tests, and ensure generic copy-config works Olof hagsand 2020-12-04 14:44:22 +01:00
  • 99c570e278 test/vagrant fixes Olof Hagsand 2020-12-03 14:23:59 +00:00
  • d045e8abce * Fixed: [namespace prefix nc is not supported in full #154](https://github.com/clicon/clixon/issues/154) * edit-config "config" parameter did not work with prefix other than null Olof hagsand 2020-12-02 14:21:17 +01:00
  • 2b9f19a19f test rpc keyless wrong order Olof hagsand 2020-12-02 09:53:33 +01:00
  • 4d5c428b79 * Test fixes * cligen hist file size test * clixon-example.yang update Olof hagsand 2020-12-01 22:34:24 +01:00
  • e46f6f4a36 * Error-type changed from protocol to application for data-not-unique netconf/restconf errors * Added new revision of main example yang: clixon-example@2020-12-01.yang * Fixed [YANG: key statement in rpc/notification list #148](https://github.com/clicon/clixon/issues/148) * Do not check uniqueness among lists without keys Olof hagsand 2020-12-01 18:56:38 +01:00
  • 1cd6d37fa1 test copy yang from /usr/local/share Olof hagsand 2020-12-01 14:07:46 +01:00
  • 6810472a42 * Fixed typo: [False Header Content_type in restconf error #152](https://github.com/clicon/clixon/issues/152) Olof hagsand 2020-12-01 12:58:07 +01:00
  • c32950c8a9 * Added message-id attributes in error and hello replies * See [namespace prefix nc is not supported in full #154](https://github.com/clicon/clixon/issues/154) * Removed mandatory loading of clixon_restconf.yang Olof hagsand 2020-12-01 12:13:46 +01:00
  • 26a4b14060 revert travis Olof hagsand 2020-11-30 20:12:07 +01:00
  • a337955847 travis set -eux Olof hagsand 2020-11-30 16:22:48 +01:00
  • 76474ba151 travis nginx sudo Olof hagsand 2020-11-30 13:43:36 +01:00
  • 1a60d581c9 Encode xpath select values with yang Baruch Siach 2020-11-30 13:36:50 +02:00
  • 66e1d81609 travis again Olof hagsand 2020-11-30 13:00:13 +01:00
  • 7d55e635cc travis makefile build Olof hagsand 2020-11-30 12:42:47 +01:00
  • cb10d4b552 travis test wait Olof hagsand 2020-11-30 12:06:46 +01:00
  • cdc851e5ce travis again Olof hagsand 2020-11-30 11:16:53 +01:00
  • f34b61cf6a travis again Olof hagsand 2020-11-30 10:35:47 +01:00
  • 0d3321756d travis again Olof hagsand 2020-11-30 10:05:15 +01:00
  • 1080ef9d20 try native travis test #8 Olof hagsand 2020-11-29 23:32:50 +01:00
  • 632314364b try native travis test #7 Olof hagsand 2020-11-29 23:26:24 +01:00
  • 3bbdc3cac8 try native travis test #6 Olof hagsand 2020-11-29 23:18:59 +01:00
  • 993c5efe87 try native travis test #5 Olof hagsand 2020-11-29 23:03:13 +01:00
  • 9c82bbd853 try native travis test #4 Olof hagsand 2020-11-29 22:56:26 +01:00
  • 731ea9d21f try native travis test #3 Olof hagsand 2020-11-29 22:51:55 +01:00
  • b8f987e3f3 try native travis test #2 Olof hagsand 2020-11-29 22:46:16 +01:00
  • bccad164ae try native travis test Olof hagsand 2020-11-29 22:33:15 +01:00
  • 19fb063f82 Support for building static lib: Olof hagsand 2020-11-29 17:00:35 +01:00
  • 542c0495b3 autocli sub fixes Olof hagsand 2020-11-28 18:17:32 +01:00
  • 75f85e0253 revert yang2cli sub code, use existing yang2cli solution Olof hagsand 2020-11-27 15:31:27 +01:00
  • dda3244252 * Auto-cli changed singature of yang2cli() * Auto-cli: create generated CLI for sub-parts of a YANG spec Olof hagsand 2020-11-26 17:32:09 +01:00
  • f69daf773e more test and vagrant for nginx checks Olof hagsand 2020-11-25 19:48:42 +01:00
  • 4f5b0178cc fix test sleep/loop problem Olof hagsand 2020-11-24 22:29:48 +01:00
  • ccadd3f9ea test: sleep 0.5s; vagrant centos: ipv6 enable Olof hagsand 2020-11-24 18:29:04 +01:00
  • 8d8a37d18e test and vagrant fixes Olof hagsand 2020-11-24 10:38:58 +01:00
  • ae8e287dd9 test / restconf /vagrant fixes Olof hagsand 2020-11-21 16:10:38 +01:00
  • 87d9b7776e test_restconf IPv6 typo Olof hagsand 2020-11-21 14:21:59 +01:00
  • 0b948248e4 * Reworked evhtp restconf config to only use clixon-restconf.yang and marked local restconf options as obsolete * Extended clicon-config with clixon-restconf for local config * Removed obsolete CLICON_TRANSACTION_MOD Olof hagsand 2020-11-21 13:16:29 +01:00
  • 3d10c3bfcb evhtp debugging: memleaks, test errors, etc Olof hagsand 2020-11-19 18:06:20 +01:00
  • c0ad6d3f8f remove global ssl-enable in clixon-restconf.yang Olof hagsand 2020-11-18 21:52:47 +01:00
  • 9016dde319 Modify tests so they all work with evhtp and backend config, eg that CLICON_RESTCONF_CONFIG is default true. Note that some tests are forced to CLICON_RESTCONF_CONFIG is false due to test complexities. Olof hagsand 2020-11-18 13:51:15 +01:00
  • daaf3f17df revert clixon-err on XML restconf backend config Olof hagsand 2020-11-17 14:42:12 +01:00
  • eb549b4c21
    Merge pull request #150 from benavrhm/topic_benavrhm_fixups_20201112 Olof Hagsand 2020-11-17 15:45:08 +01:00
  • a2bef12ce0 strncpy warnings fixed: stringop-truncation and stringop-overflow Olof Hagsand 2020-11-17 07:35:50 -06:00
  • ef3a8ed970 Fixed broken *-util target 'cd' commands, comment Jonathan Ben-Avraham 2020-11-16 11:19:44 +02:00
  • 4eee00101c Disabling IPv6 per default due to failing docker tests Olof hagsand 2020-11-15 18:14:41 +01:00
  • a5d56f1cb7 disable IPv6 restconf test by default Olof hagsand 2020-11-15 17:00:35 +01:00
  • 6eb18da5e9 * Multi-socket feature (eg IPv4/IPv6 http/https) to restconf evhtp * Added by-ref parameter to ys_cv_validate() returning which sub-yang spec was validated in a union. Olof hagsand 2020-11-15 12:33:20 +01:00
  • 707685f5ff minor alignment Olof Hagsand 2020-11-15 05:13:05 -06:00
  • b37cec53fb Added sanity test of TIMEFN Jonathan Ben-Avraham 2020-11-14 21:36:32 +02:00
  • 1af53a32ce make xml2xpath1() less picky Dave Cornejo 2020-11-13 11:41:31 -05:00
  • 665f540220 Fixed small shell error in Makefile Jonathan Ben-Avraham 2020-11-13 13:18:13 +02:00
  • 8701303e7f Added clean-util, install-util and uninstall-util Jonathan Ben-Avraham 2020-11-13 13:02:23 +02:00
  • b1c742ff41 Test script documentation fixup Jonathan Ben-Avraham 2020-11-12 10:28:53 +02:00
  • 934341104b Added Makefile ergonomic features Jonathan Ben-Avraham 2020-11-12 15:56:48 +02:00
  • 5c7d67dab4 Merge branch 'benavrhm-topic_benavrhm_rfc8527a_20201103' Olof hagsand 2020-11-11 13:41:36 +01:00
  • a0006075c3 Merge branch 'topic_benavrhm_rfc8527a_20201103' of https://github.com/benavrhm/clixon into benavrhm-topic_benavrhm_rfc8527a_20201103 Olof hagsand 2020-11-11 13:41:05 +01:00
  • 4ecffa6885 test systemctl; better rpc namespace errormsg Olof hagsand 2020-11-11 13:09:58 +01:00
  • 0f1a2ef631 Whitespace fix Jonathan Ben-Avraham 2020-11-11 13:54:09 +02:00
  • cd45f277ef Added basic rfc8527 support Jonathan Ben-Avraham 2020-11-07 22:11:35 +02:00
  • a1f54d71ac Update yang/mandatory files for rfc8527 compliance Jonathan Ben-Avraham 2020-11-07 22:06:05 +02:00
  • e6899cc3f5 Additional documentation for test scripts Jonathan Ben-Avraham 2020-11-07 21:44:59 +02:00
  • 5088f23e6a disable nginx systemd check Olof hagsand 2020-11-06 20:11:01 +01:00
  • 6ecb0d5232 tests for restconf backend configure rm client-cert-ca Olof hagsand 2020-11-06 11:33:46 +01:00
  • c31b1c471b * Changed first parameter from int fd to FILE *f in the following functions: * clixon_xml_parse_file(), clixon_json_parse_file(), yang_parse_file() * See [Bytewise read() of files is slow #146](https://github.com/clicon/clixon/issues/146) Olof hagsand 2020-11-04 22:21:42 +01:00
  • 7a0838da3a * Restconf configuration has a new configure model: clixon-restconf.yang enabling restconf daemon configuration from datastore instead of from config file. Olof hagsand 2020-11-03 21:25:42 +01:00
  • 40da4421e6 pre-daemon callbaclk macro typo Olof hagsand 2020-11-01 13:52:20 +01:00
  • 5c5e45d10a Added new backend plugin: ca_pre-demon called if backend is daemonized just prior to forking. Olof hagsand 2020-10-31 17:08:59 +01:00