Commit graph

  • 5ead099d0b * Added autotool check for getresuid (and related functions) necessary for lowering of priviliges for backend and restconf * If getresuid is not available, CLICON_RESTCONF_PRIVILEGES must be set to 'none' Olof hagsand 2021-06-11 11:02:22 +02:00
  • e24e2eb78b revert of https://github.com/clicon/clixon/pull/238 Olof hagsand 2021-06-11 14:05:19 +02:00
  • 92e340f462
    Merge pull request #238 from mager-m/master Olof Hagsand 2021-06-11 11:10:34 +02:00
  • a122efceff * Fixed: [restconf patch method adds redundant namespaces #235](https://github.com/clicon/clixon/issues/235) Olof hagsand 2021-06-10 13:05:03 +02:00
  • af7e0458c6 Fixed memory allocation for struct dirent mager-m 2021-06-09 23:35:33 +02:00
  • 7d59ec1a3a * Fixed: [JSON parsing error for a specific input. #236](https://github.com/clicon/clixon/issues/236) * JSON empty list parse problems, eg a:[] Olof hagsand 2021-06-09 11:44:28 +02:00
  • 84f5762ab5 * Most tests work with HTTP/2 support using nghttp2 * except non-ssl http/1->/2 upgrade * Restconf: ensure HEAD method works everywhere GET does. Olof hagsand 2021-06-08 20:53:43 +02:00
  • b680e3c5ac - Restconf nghttp2 compiles Olof hagsand 2021-06-03 22:47:54 +02:00
  • 37da0aa45e fuzzing restconf changes, json mem error Olof hagsand 2021-06-02 13:39:48 +02:00
  • 0ad577fa81 - Started nghttp2 work - Added autoconf config options, temporary for nghttp2 development: --disable-evhtpand --enable-nghttp2. - Added special case for api-path:s beginning with // Olof hagsand 2021-05-31 19:03:19 +02:00
  • c405a08ff8 Restconf https fixes after nmap and fuzz: - segv in PUT/POST of / - Dont return bad request on error, just close socket Olof hagsand 2021-05-28 15:42:15 +02:00
  • af88b974fd - Fuzz for restconf and cli updated Olof hagsand 2021-05-27 20:39:49 +02:00
  • 965cce5e5d * Added SM_RUNNING_STARTUP to translation table * Fixed https://github.com/clicon/clixon/issues/224 yet again by addressing a mixed xml and yang namespace xpath case Olof hagsand 2021-05-27 14:55:04 +02:00
  • e0c3f5467c * Added new startup-mode: running-startup: First try running db, if it is empty try startup db. * See [Can startup mode to be extended to support running-startup mode? #234](https://github.com/clicon/clixon/issues/234) * Improved error message on failed MUST condition Olof hagsand 2021-05-27 11:34:50 +02:00
  • 69af2884d0 * Fixed: [restconf patch method unable to chage value to empty string #229](https://github.com/clicon/clixon/issues/229) Olof hagsand 2021-05-26 22:41:28 +02:00
  • ec4d26febf * Fixed again: [xpath function count did not work properly #224](https://github.com/clicon/clixon/issues/224) * Must statements namespace context were given by yang node, but this is not correct, should be xml Olof hagsand 2021-05-26 14:00:20 +02:00
  • 164aa1cb4c * Restconf: added inline configuration using -R <xml> command line as an alternative to making advanced restconf configuration Olof hagsand 2021-05-25 15:21:45 +02:00
  • 1ef7a280d7 * Fixed: [when condition error under augment in restconf #227](https://github.com/clicon/clixon/issues/227) * As part of this fix added custom constant XML_PARENT_CANDIDATE Olof hagsand 2021-05-25 15:21:45 +02:00
  • 5b39418e92 * [Need an option to disable restconf mandatory action of overwriting startup_db #230](https://github.com/clicon/clixon/issues/230) * Disable RFC 8040 mandatory copy of running to startup after commit * Rename CLICON_RESTCONF_INSTALL_DIR -> CLICON_RESTCONF_INSTALLDIR Olof hagsand 2021-05-25 11:07:41 +02:00
  • 60c9172d21 Fixed: [Using YANG union with decimal64 and string leads to regexp match fail #226](https://github.com/clicon/clixon/issues/226) Olof hagsand 2021-05-24 21:05:06 +02:00
  • d3b614e67d
    Merge pull request #225 from nowaits/master Olof Hagsand 2021-05-24 14:53:18 +02:00
  • 551dc707f1 slack invite, travis docker passwords Olof hagsand 2021-05-24 13:27:03 +02:00
  • ae02d02d63 Several fixes to restconf internal and vagrants tests Olof hagsand 2021-05-24 11:31:00 +02:00
  • 603f70e51f Vagrant and test updates for restconf /www-data mods Olof hagsand 2021-05-23 19:55:01 +02:00
  • 637c68aed6 travis debug restconf internal Olof hagsand 2021-05-23 18:22:54 +02:00
  • 5e3ff1ce36 travis/docker issues Olof hagsand 2021-05-23 17:57:44 +02:00
  • c20c672d83 * Changed config and install options for Restconf * clixon_restconf daemon is installed in /usr/local/sbin (as clixon_backend), instead of /www-data * configure --with-wwwdir=<dir> remains but only applies to fcgi socket and log * New option CLICON_RESTCONF_INSTALL_DIR is set to where clixon_restconf is installed, with default /usr/local/sbin/ * Restconf drop privileges user is defined by CLICON_RESTCONF_USER * configure --with-wwwuser=<user> is removed * clixon_restconf drop of privileges is defined by CLICON_RESTCONF_PRIVILEGES option * New clixon-restconf@2020-05-20.yang revision * Added: restconf log-destination Olof hagsand 2021-05-21 15:12:06 +02:00
  • c3e26b004c * Fixed: [xpath function count did not work properly #224](https://github.com/clicon/clixon/issues/224) Olof hagsand 2021-05-20 15:16:29 +02:00
  • 2e71cdbab7 Fixed memleak when setting string for none string cg_var type jxm 2021-05-19 20:37:00 +08:00
  • 9fb9024675 Fixed: native restconf 100 Continue caused hanging Olof hagsand 2021-05-18 11:59:19 +02:00
  • 37bcceac02 * Fixed: RESTCONF Native: Failed binding of socket in network namespace caused process zombie Olof hagsand 2021-05-17 22:50:07 +02:00
  • 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) Olof hagsand 2021-05-17 10:07:09 +02:00
  • 5baf8642ea * Fixed union in XPATH [XPATH issues #219](https://github.com/clicon/clixon/issues/219) Olof hagsand 2021-05-15 22:24:07 +02:00
  • 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$ Olof hagsand 2021-05-12 08:42:15 +02:00
  • 5c7498ee40
    Merge pull request #220 from shmuelnatan/master Olof Hagsand 2021-05-12 08:45:38 +02:00
  • 40f4df1390 Add timeout 100ms before every kill restconf iteration Olof hagsand 2021-05-11 15:55:33 +02:00
  • e2b4e7097b Revert "Disable the CLI comment feature entirely." shmuels 2021-05-10 19:02:48 +03:00
  • b362d0d511 change localtime to localtime_r which is a thread-safe function shmuels 2021-05-10 18:53:21 +03:00
  • 90e2bdf15d Disable the CLI comment feature entirely. shmuels 2021-04-25 18:40:45 +03:00
  • 7023fe589f patch for fixing http2 test Olof hagsand 2021-05-09 22:12:33 +02:00
  • 6ed2202638 - Added openssl application-layer protocol negotiation - Added restconf tests for http/1.0 and http/2 Olof hagsand 2021-05-09 17:55:13 +02:00
  • 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() Olof hagsand 2021-05-08 17:52:29 +02:00
  • c50f9f8056 Added test for restconf tls too weak ca using md5 Olof hagsand 2021-05-07 14:05:40 +02:00
  • ac51cb0293 * Fix: XPath:s used in netconf (eg get-config) did not correctly access default values Olof hagsand 2021-05-07 13:07:34 +02:00
  • 0225488c39 - Moved deviation actions to include grouped/uses statements. See https://github.com/clicon/clixon/issues/211 Olof hagsand 2021-05-06 16:23:50 +02:00
  • 1c5c5a71f2 - Fixed deviate keywords as strings: https://github.com/clicon/clixon/issues/211 Olof hagsand 2021-05-06 14:44:22 +02:00
  • 866d8d1d0a - Fixed issues with mismatching Content-Length in replies causing extra bytes to spill over into the next message Olof hagsand 2021-05-06 14:34:31 +02:00
  • 6605ab8ce7 Restconf native: add error bodies on early errors Olof hagsand 2021-05-05 20:40:59 +02:00
  • 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) Olof hagsand 2021-05-05 15:04:22 +02:00
  • af04ec9e9d Completed: Yang deviation [deviation statement not yet support #211](https://github.com/clicon/clixon/issues/211) Olof hagsand 2021-05-04 11:38:39 +02:00
  • 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 Olof hagsand 2021-05-03 14:34:35 +02:00
  • 6e5e53e02e Restconf native: add body to bad request return Olof hagsand 2021-05-01 17:53:29 +02:00
  • aaaeec92eb Internal RESTCONF changes: - Kill running process directly, not schedul a kill - fcgi: when kill, make exit more ordered, ensure fcgi-accept returns properly Olof hagsand 2021-04-29 17:27:39 +02:00
  • 27af25f57b test: perf restconf rm nginx headers Olof hagsand 2021-04-29 14:45:15 +02:00
  • e59b7e1616
    Merge pull request #210 from nowaits/master Olof Hagsand 2021-04-29 14:30:34 +02:00
  • 0d7e644335 - Native restconf: use cligen buffers instead of libevent for replies Olof hagsand 2021-04-29 14:06:05 +02:00
  • 05009aed67 Add restconf get list extra =restval test Olof hagsand 2021-04-28 11:31:41 +02:00
  • 4c1249fd9b More restconf error tests for coverage Olof hagsand 2021-04-25 16:07:00 +02:00
  • 448b56ca0c - Removed sha1 code - ifdef unused SOAP encoding Olof hagsand 2021-04-24 22:04:05 +02:00
  • 030715df61 Tests: - Added tests for more coverage, including test_debug.sh - Added yang deviation test Olof hagsand 2021-04-24 17:51:39 +02:00
  • 6981daf595 Fixed: [Multiple http requests in native restconf yields same reply #212](https://github.com/clicon/clixon/issues/212) Olof hagsand 2021-04-24 17:43:05 +02:00
  • d48b8a8fad -Yang Deviation/deviate : added yacc/lex syntax Olof hagsand 2021-04-24 12:31:40 +02:00
  • 45f3d48179 add clixon proc get pid api jxm 2021-04-23 09:34:41 +08:00
  • ad0af26649 Merge branch 'shmuelnatan-autocli' Olof hagsand 2021-04-22 20:56:35 +02:00
  • 1c7e52f829 Merge branch 'autocli' of https://github.com/shmuelnatan/clixon into shmuelnatan-autocli Olof hagsand 2021-04-22 20:45:51 +02:00
  • 6cb75f5492 Add tab mode in example. Make coverage script sh->bash script Olof hagsand 2021-04-22 20:44:37 +02:00
  • 5d18c02dfe completing the function of hide for autocli-op in the yang files shmuels 2021-04-22 19:22:31 +03:00
  • bfb7edece4 completing the function of hide for autocli-op in the yang files shmuels 2021-04-22 19:17:32 +03:00
  • ecd5f7de70 * Add default network namespace constant: RESTCONF_NETNS_DEFAULT with default value "default". Olof hagsand 2021-04-22 13:45:02 +02:00
  • 2ce8d9b488 Added codecov config file Olof hagsand 2021-04-21 19:23:17 +02:00
  • 0ffff7844e completing the function of hide for autocli-op in the yang files shmuels 2021-04-21 15:25:11 +03:00
  • b0c5e43d50 completing the function of hide for autocli-op in the yang files shmuels 2021-04-21 15:15:35 +03:00
  • 33ad428854 completing the function of hide for autocli-op in the yang files shmuels 2021-04-21 15:09:40 +03:00
  • 3736927efa completing the function of hide for autocli-op in the yang files shmuels 2021-04-20 18:35:20 +03:00
  • 1d29d29415 - Fixed: [xml2txt last param not used #204](https://github.com/clicon/clixon/issues/204) - test: coverage test scripts for CI Olof hagsand 2021-04-20 10:26:48 +02:00
  • e9b07cebab
    Merge pull request #205 from shmuelnatan/master Olof Hagsand 2021-04-20 10:31:22 +02:00
  • 33347f0939
    Update README.md Olof Hagsand 2021-04-19 19:37:37 +02:00
  • 8ad6c487ef codecov badge Olof hagsand 2021-04-19 19:29:55 +02:00
  • 91a583253e - Fixed plugin-module initialized twice in restconf-fcgi - Test script: wait for restconf to stop Olof hagsand 2021-04-19 13:35:21 +02:00
  • d962399db0 Revert "change localtime to localtime_r which is a thread-safe function" shmuels 2021-04-19 13:29:00 +03:00
  • 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 Olof hagsand 2021-04-19 09:39:07 +02:00
  • cede620a2a completing the function of hide for autocli-op in the yang files shmuels 2021-04-19 10:27:44 +03:00
  • c370ac8706 completing the function of hide for autocli-op in the yang files shmuels 2021-04-18 16:58:18 +03:00
  • 8ca5944111 change localtime to localtime_r which is a thread-safe function shmuels 2021-04-18 10:19:07 +03:00
  • 7ebb538ebf - Changed master to 5.2.0.PRE - Modified Makefiles for static linkage and coverage - test namespace abstractions Olof hagsand 2021-04-17 14:52:42 +02:00
  • f9f533834b update openconfig test to latest pull Olof hagsand 2021-04-15 22:22:25 +02:00
  • ae943d485e prepare for 5.1.0 Olof hagsand 2021-04-15 20:02:41 +02:00
  • 51df120e9e
    Merge pull request #203 from dcornejo/master Olof Hagsand 2021-04-15 20:00:30 +02:00
  • bd20553362 missed a Makefile change Dave Cornejo 2021-04-15 07:36:48 -10:00
  • ec0c5118a4 Cleanup pull request Dave Cornejo 2021-04-15 07:30:26 -10:00
  • 307378227d preparing for 5.1.0 Olof hagsand 2021-04-15 14:26:37 +02:00
  • 418f8f4c6f
    Merge pull request #200 from nowaits/master Olof Hagsand 2021-04-15 10:17:08 +02:00
  • bba23be444 mem fixes, evolved openconfig interfaces test Olof hagsand 2021-04-15 10:12:35 +02:00
  • e4885d51e6 Add ability to enable core dumps from RESTCONF process Dave Cornejo 2021-04-14 09:42:37 -10:00
  • 1cd0eab7ff Fixed broken test scripts sum.sh and all.sh Olof hagsand 2021-04-14 17:13:02 +02:00
  • 172cfd69b3 - Fixed [clixon_proc can't start new process with PATH env #202](https://github.com/clicon/clixon/issues/202) - Memory errors in tests Olof hagsand 2021-04-14 17:01:17 +02:00
  • 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 Olof hagsand 2021-04-13 16:23:20 +02:00
  • 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 Olof hagsand 2021-04-13 16:23:20 +02:00
  • 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 Olof hagsand 2021-04-12 21:03:20 +02:00
  • 21a65d4a75 Build and test issues with evhtp Olof hagsand 2021-03-31 12:31:29 +02:00