Commit graph

  • a387c599e2 comment ssl + grpc Olof hagsand 2019-10-18 19:44:45 +02:00
  • 638deb3818 util ssl+grpc tools Olof hagsand 2019-10-18 19:42:15 +02:00
  • 279614d64f * The backend socket has now support of credentials of peer clients * Added: CLICON_NACM_CREDENTIALS and CLICON_NACM_RECOVERY_USER Olof hagsand 2019-10-18 19:33:23 +02:00
  • 77b491c568 Demon->Daemon, FreeBSD grep changes Olof Hagsand 2019-10-14 07:47:08 -10:00
  • 734f65e25a freebsd test script modifications Olof Hagsand 2019-10-13 07:04:05 -10:00
  • 0895ac7b0d memleak Olof Hagsand 2019-10-10 20:38:08 +00:00
  • 03acf8e19c * XPATH canonical form implemented for NETCONF get and get-config. Olof hagsand 2019-10-09 22:13:04 +02:00
  • 8cdb0bb062 * Changed so that 400 Bad Request are for invalid api-path or unknown yang elements, 404 Not Found for valid xml when object not found. Olof hagsand 2019-10-07 22:20:34 +02:00
  • 6e41592aec * Changed clicon_rpc_get and clicon_rpc_get_config functions: added username and replaced namespace with namespace context * Fixed several issues with multiple namespaces. Olof hagsand 2019-10-03 22:01:16 +02:00
  • 3efd5703d6 memleak Olof Hagsand 2019-09-29 17:42:56 +00:00
  • d9136c8972 * Stricter handling of multi-namespace handling * This occurs in cases where there are more than one XML namespaces in a config tree, such as augment:ed trees. * Affects all parts of the system, including datastore, backend, restconf and cli. * Invalid api-path syntax (eg non-matching yang) error changed from 412 operation-failed to 400 Bad request invalid-value, or unknown-element. Olof hagsand 2019-09-29 14:45:08 +02:00
  • a547b3f31d modified restconf err Olof hagsand 2019-09-21 13:00:03 +02:00
  • 22307e0a9e Invalid api-path syntax error changed from 412 operation-failed to 404 invalid-value. Olof hagsand 2019-09-21 11:26:03 +02:00
  • 8c18f2a86d Configure and test modification for better Freebsd port User Olof 2019-09-20 06:09:48 -10:00
  • fe1aeda4f2 test env bash; freebsd config Olof hagsand 2019-09-17 22:44:01 +02:00
  • 0129fe285e skip privileges in docker test Olof hagsand 2019-09-14 18:45:29 +02:00
  • 27fd99e7cd * Implemented backend daemon drop privileges after initialization to run as non-privileged user Olof hagsand 2019-09-14 18:34:32 +02:00
  • cacba627b5 typo in yang file Olof hagsand 2019-09-11 21:42:18 +02:00
  • d674c8861d typo in yang file Olof hagsand 2019-09-11 21:32:51 +02:00
  • 3d5abb77f9 * Backend daemon drops privileges after initialization (to not run as root) * New config option CLICON_USER with default value clicon * Can also be set with -U <user> clixon_backend command-line option Olof hagsand 2019-09-11 21:24:14 +02:00
  • 3806f7652e Hello netconf candidate capability misspelled, mentioned in [Can clixon_netconf receive netconf packets as a server? #93](https://github.com/clicon/clixon/issues/93) Olof hagsand 2019-09-04 14:56:17 +02:00
  • 6bcaea259c documentation Olof hagsand 2019-09-01 19:45:54 +02:00
  • 6df434093e * Restconf top-level operations GET root resource modified to comply with RFC 8040 Sec 3.1 * non-pretty print remove all spaces, eg {"operations":{"clixon-example:client-rpc":[null] * Replaced JSON null with [null] as proper empty JSON leaf/leaf-list encoding. * [Cannot write to config using restconf example #91](https://github.com/clicon/clixon/issues/91) * Updated restconf documentation (the example was wrong) * [clixon-lib yang revision file name update #92](https://github.com/clicon/clixon/issues/92) * Clixon-lib yang file had conflicting filename and internal yang revision. * This was only detected in the use-case when a whole dir was loaded. * Inserted sanity check in all yang parse routines. * Committed updated clixon-lib yang file that triggered the error Olof hagsand 2019-08-24 15:30:43 +02:00
  • a8906fd0bd 4.1.0 docs Olof hagsand 2019-08-18 16:22:46 +02:00
  • 854ac06405 remove test_perf_api.sh Olof hagsand 2019-08-17 17:32:41 +02:00
  • d9cf43bd46 Preparing for 4.1.0 Olof hagsand 2019-08-17 17:25:20 +02:00
  • 388da01d0b base hello docker example Olof Hagsand 2019-08-17 14:55:44 +00:00
  • ee329ee382 * RESTCONF "depth" query parameter supported * C API change: Added depth parameter to function clicon_xml2cbuf, default is -1. Olof hagsand 2019-08-17 10:54:13 +02:00
  • 10a2dbe8ec * Added experimental binary search API function: xml_binsearch * Added content parameter to clicon_rpc_get (-1 or CONTENT_ALL is default) * Reverted change in clixon-lib.yang Olof hagsand 2019-08-14 11:13:24 +02:00
  • 8b7b7b0f60 * RESTCONF "content" query parameter supported * New clixon-lib@2019-08-13.yang revision * Bugfix: If ietf-netconf.yang was imported from any yang module, client/backend communication stops working. Olof hagsand 2019-08-13 13:21:11 +02:00
  • 48022e57b9 fixed CHANGELOG, restconf memleak, with-defaults test Olof hagsand 2019-08-09 17:35:45 +02:00
  • e244f5c8f8 Added patch media types; restconf patch test-cases; nsc spelling Olof hagsand 2019-08-09 14:49:40 +02:00
  • f319c18374 RESTCONF JSON identity had wrong namespace in sub-objetcs Olof hagsand 2019-08-09 14:39:38 +02:00
  • a57dbfc6f0 Fixed Segv in nacm write when MERGE and creating object Olof hagsand 2019-08-09 14:20:38 +02:00
  • 35808c8352 Restconf PATCH: added accept-patch http header Olof hagsand 2019-08-08 14:16:53 +02:00
  • 46b6a8008a RESTCONF PATCH (plain patch) is supported according to RFC 8040 4.6.1 Olof hagsand 2019-08-08 11:42:45 +02:00
  • bb2eaa3cc7 * Corrected problem with namespace context cache, was not always cleared when adding new subtrees. Olof hagsand 2019-08-08 11:29:01 +02:00
  • aa14f8ac2c RESTCONF PUT/POST -d {} media is enforced Olof hagsand 2019-08-06 15:47:46 +02:00
  • aa653d0831 CLI multi-key bug for ordered-by user Olof hagsand 2019-08-04 17:38:13 +02:00
  • df9e4734f9 Bugfix: multiple key cli bug, ambiguous commands in expand_dbvar Olof hagsand 2019-08-04 17:07:11 +02:00
  • 6d5df4e1ba Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-08-04 09:53:11 +02:00
  • 1bacfd6a85 deleted docs Olof hagsand 2019-08-04 09:52:51 +02:00
  • 1665f1f414 uninitialized nvalvec Olof Hagsand 2019-08-03 15:17:58 +01:00
  • 1fe7d916f4 segv on multiple keys Olof hagsand 2019-08-03 15:08:10 +02:00
  • e61a4dc7eb Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-08-02 17:04:57 +02:00
  • b73348e0cd * Revised RESTCONF->NETCONF insert/point translation * Netconf edit-config "operation" attribute namespace check is enforced Olof hagsand 2019-08-02 17:03:17 +02:00
  • b02c41d3bb Set theme jekyll-theme-minimal Olof Hagsand 2019-08-02 13:57:09 +02:00
  • c4a4e00a0a Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-08-02 13:51:47 +02:00
  • 22c234da89 trying github pages Olof hagsand 2019-08-02 13:51:31 +02:00
  • c97346921b Netconf operation attribute namespace check is enforced Olof hagsand 2019-07-31 16:45:48 +02:00
  • 2d9d204f69 * RESTCONF "insert" and "point" query parameters supported * Yang Netconf leaf/leaf-list insert support * For "ordered-by user" leafs and leaf-lists, the insert and value/key attributes are supported according to RFC7950 Sections 7.7.9 and 7.8.6 Olof hagsand 2019-07-31 14:04:27 +02:00
  • d7a8cf5b0c json empty type null encoded as [null] Olof hagsand 2019-07-29 15:14:24 +02:00
  • 3b93c812d4 identity restconf mapping for augment and identity tests Olof hagsand 2019-07-29 11:34:14 +02:00
  • dbfd92846c test script parameter interfence Olof Hagsand 2019-07-28 19:00:12 +00:00
  • 70ebfa4d80 * Identity/identityref mapped between XML and JSON Olof hagsand 2019-07-28 18:09:55 +02:00
  • ccc95b2826 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-07-25 13:40:01 +02:00
  • 28f0a503a3 Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2019-07-25 11:39:33 +00:00
  • 5f7d011654 memleaks Olof Hagsand 2019-07-25 11:39:17 +00:00
  • c1bae276ff * RESTCONF PUT/POST erroneously returned 200 OK. Instead restconf now returns: * 201 Created for created resources * 204 No Content for replaced resources. * See [RESTCONF: HTTP return codes are not according to RFC 8040](https://github.com/clicon/clixon/issues/56) Olof hagsand 2019-07-25 13:15:31 +02:00
  • 291f173505 libm needed in xpath Olof hagsand 2019-07-24 09:46:08 +02:00
  • e7b60619da * Pushed tag to 4.0.1.PRE * Restconf RFC 8040 increased feature compliance * Cache-Control: no-cache added in HTTP responses (RFC Section 5.5) * Restconf monitoring capabilities (RFC Section 9.1) * Added support for Yang extensions * New plugin callback: ca_extension * Main backend example includes example code on how to implement a Yang extension in a plugin. * JSON changes * Non-pretty-print output removed all extra spaces. * Example: {"nacm-example:x": 42} --> {"nacm-example:x":42} * Empty JSON container changed from null to {}. * Empty list and leafs remain as null` * Removed unnecessary configure dependencies * libnsl, libcrypt, libm, if_vlan,... * pseudo-plugin added, to enable callbacks also for main programs. Useful for extensions * Yang Unique statements with multiple schema identifiers did not work on some platforms due to memory error. Olof hagsand 2019-07-23 22:11:14 +02:00
  • fe46a0e093 Clixon release 4.0.0 Olof hagsand 2019-07-13 16:33:23 +02:00
  • 2a766c5adf zerocopy memleak Olof Hagsand 2019-07-13 13:40:14 +00:00
  • c9ea6d99cf zero-copy mem error; preparing for 4.0 Olof hagsand 2019-07-12 17:00:46 +02:00
  • 8b50695e1f misleading if indentation Olof hagsand 2019-07-11 12:14:02 +02:00
  • 6d46087109 Documented bug [Yang identityref XML encoding is not general #90](https://github.com/clicon/clixon/issues/90) Olof hagsand 2019-07-11 12:11:45 +02:00
  • e44685a100 Replaced strchr with nodeid_split Experimental code for replacing identityref lists with module:id instead of prefix:id Olof hagsand 2019-07-10 17:18:34 +02:00
  • bb04f778ab documentation Olof hagsand 2019-07-09 13:15:25 +02:00
  • 40d5b99d3b Reverted some of the nsc xpath API changes. In the revert, xpath_first() and xpath_vec() retain their old syntax with nsc==NULL. The reason is to be conservative with the API. However, less used functions, such as xpath_vec_bool(), xpath_vec_ctx() and xpath_vec_flag() are changed with a new nscparameter, which should be set to NULL in most cases. Olof hagsand 2019-07-09 12:19:03 +02:00
  • 89f751357d Memory error [Netconf get/get-config :xpath capability does not support namespaces](https://github.com/clicon/clixon/issues/75) Olof Hagsand 2019-07-08 16:21:27 +00:00
  • 1f8c759f3d Merge branch 'master' of https://github.com/clicon/clixon. Added new API function xpath_parse() to split parsing and xml evaluation. Olof hagsand 2019-07-08 14:47:18 +02:00
  • 67b8685bab The Clixon API has been extended with namespaces, or namespace contexts in the following cases: * CLIspec functions have added namespace parameter: * cli_show_config <db> <format> <xpath> --> cli_show_config <db> <format> <xpath> <namespace> * cli_copy_config <db> <xpath> ... --> cli_copy_config <db> <xpath> <namespace> ... * Xpath API * xpath_first(x, format, ...) --> xpath_first(x, nsc, format, ...) * xpath_vec(x, format, vec, veclen, ...) --> xpath_vec(x, nsc, format, vec, veclen, ...) * xpath_vec_flag(x, format, flags, vec, veclen, ...) --> xpath_vec_flag(x, format, flags, vec, veclen, ...) * xpath_vec_bool(x, format, ...) --> xpath_vec_bool(x, nsc, format, ...) * xpath_vec_ctx(x, xpath, xp) --> xpath_vec_ctx(x, nsc, xpath, xp) * xmldb_get0 has an added nsc parameter: * xmldb_get0(h, db, xpath, copy, xret, msd) --> xmldb_get0(h, db, nsc, xpath, copy, xret, msd) * The plugin statedata callback (ca_statedata) has been extended with an nsc parameter: * int example_statedata(clicon_handle h, cvec *nsc, char *xpath, cxobj *xstate); * rpc get and get-config api function has an added namespace argument: * clicon_rpc_get_config(clicon_handle h, char *db, char *xpath, char *namespace, cxobj **xt); * int clicon_rpc_get(clicon_handle h, char *xpath, char *namespace, cxobj **xt); Olof hagsand 2019-07-08 10:36:37 +02:00
  • 41f7e44dec Return 404 Not found error if restconf GET does not return requested instance Olof hagsand 2019-07-04 20:21:07 +02:00
  • a2340c265c test scripts: replaced sleeps with wait functions Olof hagsand 2019-07-01 10:32:48 +02:00
  • 1134b084c3 error range test error x - y Olof hagsand 2019-06-30 15:14:51 +02:00
  • 91d01f8c28 range test Olof hagsand 2019-06-25 16:55:32 +02:00
  • 6dec522af1 Changed invalid number ranges outside type scope. Olof hagsand 2019-06-25 16:40:04 +02:00
  • 4cd63f6b55 dded enable/disable as alternative boolean truth values on input (in CLIgen) Olof hagsand 2019-06-22 12:22:41 +02:00
  • b64dd678dc CLI ranges error shown instead of "Unknown command" Olof hagsand 2019-06-21 17:44:52 +02:00
  • d12644a5ef Fixed [Wrong yang-generated cli code for typeref identityref combination #88](https://github.com/clicon/clixon/issues/88) Olof hagsand 2019-06-20 19:00:22 +02:00
  • fe35e181fd identityref errmsg memory error Olof hagsand 2019-06-20 15:56:02 +02:00
  • d703c274b6 test string problem Olof hagsand 2019-06-20 15:43:11 +02:00
  • c90aa8371c * Fixed [identityref validation fails when using typedef #87](https://github.com/clicon/clixon/issues/87) Olof hagsand 2019-06-20 15:35:57 +02:00
  • 97529a20a4 * Error messages for invalid number ranges and string lengths have been uniformed and changed. * Error messages for invalid ranges are now on the form: `` Number 23 out of range: 1-10 String length 23 out of range: 1-10 `` Olof hagsand 2019-06-20 13:59:55 +02:00
  • c683bc9d0f
    Merge pull request #89 from 008agent/path2xml_strict_fix Olof Hagsand 2019-06-19 22:20:12 +02:00
  • bf2a9bfdfc
    Update clixon_xml_map.c 008agent 2019-06-19 23:00:30 +03:00
  • 45de5e982c Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-06-19 21:55:29 +02:00
  • c3245f0600 On validation callbacks, XML_FLAG_ADD is added to all nodes at startup validation, not just the top-level. This is the same behaviour as for steady-state validation. Olof hagsand 2019-06-19 21:54:59 +02:00
  • 631b1d4558 api_path2xml_vec strict mode check on list key length mismatch Vladimir Ratnikov 2019-06-19 15:52:20 -04:00
  • ae011663ba
    Merge pull request #86 from dcornejo/master Olof Hagsand 2019-06-19 10:54:45 +02:00
  • 9ad343d6b4 add instructions for FreeBSD Dave Cornejo 2019-06-18 22:15:38 -10:00
  • af720e8f28 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2019-06-18 14:50:30 +02:00
  • 17e3e74ad5 All hash_ functions have been prefixed with clicon_ to avoid name collision with other packages (frr) Olof hagsand 2019-06-18 14:49:18 +02:00
  • 73d8e97a01 added template doc/INSTALL.md Olof hagsand 2019-06-18 10:07:17 +02:00
  • e5a1c821e9 making USE_XML_INSERT permanent Olof hagsand 2019-06-15 11:48:20 +02:00
  • 3bad8bc874 * startup_extraxml triggers unnecessary validation * Renamed startup_db_reset -> xmldb_db_reset (its a general function) * In startup_extraxml(), check if reset callbacks or extraxml file actually makes and changes to the tmp db. Olof hagsand 2019-06-14 22:01:30 +02:00
  • daa01b3a5e Print CLICON_YANG_DIR and CLICON_FEATURE lists on startup with debug flag Olof hagsand 2019-06-13 10:36:37 +02:00
  • 98cc62eace Fixed a problem with some netconf error messages caused restconf daemon to exit due to no XML encoding Olof hagsand 2019-06-12 18:15:44 +02:00
  • de15b2bf80 * RESTCONF strict namespace validation of data in POST and PUT. * Accepted: `` curl -X PUT http://localhost/restconf/data/mod:a -d {"mod:a":"x"} ` * Not accepted (must prefix "a" with module): ` curl -X PUT http://localhost/restconf/data/mod:a -d {"a":"x"} ` * Undefine RESTCONF_NS_DATA_CHECK` in include/clixon_custom.h to disable strict check. Olof hagsand 2019-06-10 16:15:02 +02:00
  • 40f3d48f2b Restconf uri with mismatching keys problem Olof hagsand 2019-06-10 13:56:06 +02:00