Commit graph

  • 1df420255e Fixed [Clixon backend generates wrong XML on empty string value #144](https://github.com/clicon/clixon/issues/144) Olof hagsand 2020-10-28 14:28:34 +01:00
  • fab261cb53 * Added XPATH functions position Olof hagsand 2020-10-27 09:40:45 +01:00
  • 8f81eb1c66
    Merge pull request #145 from benavrhm/topic_benavrhm_doc_fix_20201023 Olof Hagsand 2020-10-23 13:21:54 +02:00
  • f274a77414 Updated @retval doxygen specs for all functions Jonathan Ben-Avraham 2020-10-23 10:20:31 +03:00
  • ac13729cdc sleep 1 for docker test race condition Olof hagsand 2020-10-20 10:46:46 +02:00
  • 1614bcd19c Cleanup master for 4.9.0.PRE Olof hagsand 2020-10-19 20:06:20 +02:00
  • 6fdc42a42b Clixon 4.8.0 Olof hagsand 2020-10-18 17:27:45 +02:00
  • 85f069fa8a vagrant updates Olof Hagsand 2020-10-18 15:22:50 +00:00
  • e176330a74 * Removed string limit on cli prompt and cli mode name Olof hagsand 2020-10-18 16:24:11 +02:00
  • f07f291bdd Main examples uses new auto-mode Olof hagsand 2020-10-17 23:13:47 +02:00
  • a77cd27abb * Fixed: [namespace prefix nc is not supported](https://github.com/clicon/clixon/issues/143) * Added more sanity checks on incoming top-level rpc and hello messages, including verifying top-level namespace Olof hagsand 2020-10-17 18:04:46 +02:00
  • 46bee9e358 Crash seen with startup mode as running with the XML_DB format being set to JSON. [clixon : 4.7.0] #138 Olof hagsand 2020-10-17 10:01:04 +02:00
  • 4d35ace95f fix of performance enhancement commit for unique constraint Olof hagsand 2020-10-16 15:43:37 +02:00
  • 3d1ac2692d Fixed: Performance enhancement of unique list check (of duplicate keys) Olof hagsand 2020-10-16 12:48:42 +02:00
  • b92fe441cd Fix tests after earlier non-config err commit Olof hagsand 2020-10-15 21:36:59 +02:00
  • 0b3391836f * Fixed: Validate/commit error with false positive yang choice changes detected in validation found in ietf-ipfix-psamp.yang. Olof hagsand 2020-10-15 21:35:14 +02:00
  • 6465022f57 Find non-config nodes and mark/return error with better error message Olof hagsand 2020-10-15 13:55:44 +02:00
  • 6e81db18bb removed debug printf:s Olof hagsand 2020-10-14 22:48:30 +02:00
  • fec6fbbd49 removed debug printf:s Olof hagsand 2020-10-14 22:24:39 +02:00
  • 7da98de695 uninitizlized variable Olof hagsand 2020-10-14 12:55:21 +02:00
  • a41bd8aed3 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-10-14 11:23:59 +02:00
  • 2d56c9674a * New YANG generated auto-cli feature with syntax modes * The existing autocli does not support modes, complete paths must be given, eg: set a b c d 42. * In the new auto-cli, automatic modes are present at each YANG syntax node level, eg the above can be given as: edit a b c; set d 4; top * The existing CLI API remains, the new API is as follows: cli_auto_edit(), cli_auto_up(), cli_auto_top(), cli_auto_show(), cli_auto_set(), cli_auto_merge(), cli_auto_create(), cli_auto_del(). * See test/test_cli_auto.sh for an example of the new API, and apps/cli/cli_auto.c for the source code of the new callback API. * Documentation will be appear and full integration with the main example. * Added inline state field to clixon-example.yang * Added new clicon_data_cvec_*() API for generic cvec structs Olof hagsand 2020-10-14 10:54:10 +02:00
  • 8d901e1fde * Extended CLI_PROMPT syntax with %W as working path in tree, which more concretely is a path to the current position in a syntax tree in the autocli. * Comments on clixon-config.yang Olof hagsand 2020-10-12 11:19:43 +02:00
  • f9cc26582a minor: strncpy -> strcpy and formatting Olof hagsand 2020-10-10 15:32:19 +02:00
  • f8ac8cc14b typo on list check Olof hagsand 2020-10-08 16:04:31 +02:00
  • 5c67bcd364 validation of list keys rearrangement of code Olof hagsand 2020-10-08 15:30:29 +02:00
  • 469cbe0d64 Fixed: Accepted added subtrees containing lists with duplicate keys Olof hagsand 2020-10-08 15:15:22 +02:00
  • 8ae647c32b * More explanatory validation error messages for when and augments error messages. * Example: error-message: Mandatory variable -> Mandatory variable of edit-config in module ietf-netconf. Olof hagsand 2020-10-07 20:57:49 +02:00
  • 1db43ca45b yang augment sanity checks Olof hagsand 2020-10-05 15:49:22 +02:00
  • b7cb2e2526 tests and docker ports diffs Olof hagsand 2020-10-04 16:06:55 +02:00
  • 4d91bcd810 GET xpath on modstate was broken Olof hagsand 2020-10-01 22:22:36 +02:00
  • 09d33acd45 cli show options. doc and testing Olof hagsand 2020-10-01 11:07:57 +02:00
  • 6f2c4a076d * Configuration directory * A new configuration option CLICON_CONFIGDIR has been added for loading of extra config files * If not given, only the main configfile is loaded. * If given, and if the directory exists, the files in this directory will be loaded alphabetically AFTER the main config file in the following way: * leaf values are overwritten * leaf-list values are appended * You can override file setting with -E <dir> command-line option. * New clixon-config@2020-10-01.yang revision * Added option for configuration directory: CLICON_CONFIGDIR Olof hagsand 2020-10-01 11:04:25 +02:00
  • b3545871c0 * Added stricter check on schema-node identifier checking, such as for augments. * These checks are now made at YANG loading time Olof hagsand 2020-09-29 20:53:24 +02:00
  • 101a8cb6e0 minor fixes Olof hagsand 2020-09-27 17:15:36 +02:00
  • 9984cfa1c8 Fixed: [default state data returned with get-config](https://github.com/clicon/clixon/issues/140) * Generalized default code for both config and state Olof hagsand 2020-09-27 17:14:28 +02:00
  • da54dae396 Added sanity check that a yang module name matches the filename Olof hagsand 2020-09-25 13:39:13 +02:00
  • 21ac47915b More XPath function support * count, name, contains, not, as defined in [xpath 1.0](https://www.w3.org/TR/xpath-10) * deref, derived-from and derived-from-or-self from RFC7950 Section 10. * in particular in augment/when statements * Improved error handling * Verification of XPath functions is done at startup when yang modules are loaded, not when XPaths are evaluated. * Separation of "not found" and "not implemented" XPath functions * Both give a fatal error (backend does not start). Olof hagsand 2020-09-23 15:35:01 +02:00
  • 2994d2f9a9 comments and typos Olof hagsand 2020-09-22 22:41:59 +02:00
  • c616aa1569 Added support for XPATH functions: * contains, * derived-from and derived-from-or-self * in particular in augment/when statements as shown in eg RFC 7950. Olof hagsand 2020-09-22 18:00:15 +02:00
  • 6d7b76550f Merge branch 'shmuelnatan-master' Olof hagsand 2020-09-15 14:23:41 +02:00
  • 9a76899482 Fixed cli show conflicts for https://github.com/clicon/clixon/pull/137 Olof hagsand 2020-09-15 14:22:40 +02:00
  • 41ef682bdd 4.8.0.PRE Olof hagsand 2020-09-15 12:12:26 +02:00
  • bf102ca575 4.7.0 Olof hagsand 2020-09-14 11:48:51 +02:00
  • 70bdaf83bd clixon 4.7.0 Olof hagsand 2020-09-14 11:30:39 +02:00
  • 1d333e39d1 4.7 preparations Olof hagsand 2020-09-14 09:21:54 +02:00
  • 6c22935463 code comments Olof hagsand 2020-09-12 13:04:59 +02:00
  • bc96a86b0f Changed semantics of to "disable NACM if there is no _NACM_ configuration", instead of "disable NACM if there is no _configuration_". Olof hagsand 2020-09-12 12:42:17 +02:00
  • 27bb0a1d2b * Fixed: Restconf failed put/post could leave residue in candidate causing errors in next put/post * Added -v option for backend plugins to generate validation error Olof hagsand 2020-09-10 18:09:17 +02:00
  • a61bdffbab evhtp mem leak, debug 1->2 Olof hagsand 2020-09-10 18:06:44 +02:00
  • 804b329301 rearranged default code to be outside of copying in xml_get inner loop, and that no defaults are computed if no yang binding is made Olof hagsand 2020-09-09 15:52:54 +02:00
  • 8f8b49331f Debug messages * Added cli command debug printf on debug level 1 * Moved all parse debug printfs to level 3 Olof hagsand 2020-09-09 11:12:14 +02:00
  • 5b5dce7e39 Fixed: [clixon_netconf does not respond to hello #136](https://github.com/clicon/clixon/issues/136) * The error showed only when CLICON_MODULE_LIBRARY_RFC7895 was disabled. Olof hagsand 2020-09-08 15:59:12 +02:00
  • 1ef3c0db7a Fixed: Do not check min/max constraints on state data in config validate code Olof hagsand 2020-09-08 13:25:28 +02:00
  • 2c96cf71ea Changed main example: removed translate yang and replaced testcases w table/parameter Olof hagsand 2020-09-08 11:39:55 +02:00
  • 06855f2ea7 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-09-08 10:49:43 +02:00
  • a61da8715d Fixed: [min-elements attribute prevents from deleting list entries #133](https://github.com/clicon/clixon/issues/133) Olof hagsand 2020-09-08 10:46:35 +02:00
  • afe64cbd5e cicd tests Olof Hagsand 2020-09-07 16:15:12 +00:00
  • 1db969d3a7 Main example: remove translate cli line, changed 'startup' to 'copy running startup' Olof hagsand 2020-09-07 15:12:20 +02:00
  • 5ee6283526 Fixed: [xmldb_get0 returns invalid candidate on startup transaction callbacks #126](https://github.com/clicon/clixon/issues/126). Always clear candidate-db before db initialization. Olof hagsand 2020-09-07 15:09:19 +02:00
  • 658fffb931 mem leak in yang filename function Olof hagsand 2020-09-07 10:19:38 +02:00
  • ee057d5244 * Added -r command-line option to restconf daemon to NOT lower privileges to wwwuser if started from root. Olof hagsand 2020-09-04 16:25:49 +02:00
  • f524a89b2d * Fixed: YANG uses statements in sub-modules did not search for grouping statements in other submodules of the module it belongs to. Olof hagsand 2020-09-04 16:23:18 +02:00
  • b8955c81d8 * Changed CLI help strings behaviour on query (?) for long and multi-line help strings. * If multiple strings (eg "\n" in text), indent before each new line * Primarily for auto-cli where long help strings are generated from YANG descriptions, but applies as well for manual long/multi-line help strings * New config option: CLICON_CLI_HELPSTRING_TRUNCATE: Truncate help string on right margin mode * New config option: CLICON_CLI_HELPSTRING_LINES: Limit of number of help strings to show Olof hagsand 2020-09-04 13:15:53 +02:00
  • 81fc7f742b * Netconf as default namespace has been disabled by default. * Only requests on the form: <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><edit-config>... will be accepted * All replies will be on the form: <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">... * Requests such as: <rpc><edit-config>... will not be accepted. * You can revert this behaviour (to clixon pre-4.6 behaviour) by enabling CLICON_NAMESPACE_NETCONF_DEFAULT * This API change is a consequence of: [copy-config's RPC cxobj parameter does not contain namespace #131](https://github.com/clicon/clixon/issues/131) Olof hagsand 2020-09-02 15:40:35 +02:00
  • a01fe04613 Fixed: [CLI crash if error-info is empty #134](https://github.com/clicon/clixon/issues/134) Olof hagsand 2020-09-01 16:19:58 +02:00
  • 41ac192362 Fixed: [Cannot create or modify NACM data node access rule with path using JSON encoding #129](https://github.com/clicon/clixon/issues/129). The evaluation of NACM datanode rule path is assumed to be canonical namespace and cannot be overruled with xmlns rules. Olof hagsand 2020-08-30 17:03:49 +02:00
  • 043acb6a54 Remove default sets in init cache Olof hagsand 2020-08-28 09:51:14 +02:00
  • 558abb1f9b Corrected error message for list min/max-value to comply to RFC 7950: a proper path is now returned, peviously only the list symbol. it is also exposed in the CLI correctly. * Example: <error-path>/c/a1</error-path> Olof hagsand 2020-08-27 15:52:31 +02:00
  • a3e80080e2 added error-app-tag to netconf error textual message Olof hagsand 2020-08-27 13:15:16 +02:00
  • 96a8192cd2 Fixed: [Yang modules skipped if the name is a proper prefix of other module name](https://github.com/clicon/clixon/issues/130) Olof hagsand 2020-08-27 11:55:42 +02:00
  • 576533ed82 Changed singnature of ys_real_module and improved error handling Olof hagsand 2020-08-27 11:01:09 +02:00
  • 1a2e074539 - Added newline after restconf evhtp GET reply Olof hagsand 2020-08-24 22:29:33 +02:00
  • 3e054fedc3 Fixed an error in global default values. Global default values were not written to datastore after startup, but AFTER an edit/commit. Olof hagsand 2020-08-24 22:26:31 +02:00
  • 61bdab7bf0 enabled dropped privileges agaon (disabled by prev commit) Olof hagsand 2020-08-22 18:05:52 +02:00
  • 2e23856676 fixed memory leaks in restconf evhtp module Olof hagsand 2020-08-22 18:02:08 +02:00
  • 6be4b18391 Fixed: [Type / Endianism problem in yang_parse_file #128](https://github.com/clicon/clixon/issues/128) Olof hagsand 2020-08-21 13:33:38 +02:00
  • 0e4df0e8fc Added options for Restconf evhtp setting default bind socket address and ports CLICON_RESTCONF_IPV4_ADDR, CLICON_RESTCONF_IPV6_ADDR, CLICON_RESTCONF_HTTP_PORT, CLICON_RESTCONF_HTTPS_PORT Olof hagsand 2020-08-21 13:10:42 +02:00
  • 25f67d1eb9 Fixed: [(CLI) the description of a used grouping is shown instead of the encapsulating container #124](https://github.com/clicon/clixon/issues/124) Olof hagsand 2020-08-19 15:55:55 +02:00
  • 3c36300e74 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-08-18 17:26:44 +02:00
  • 89fddd4cca variables in docker start Olof hagsand 2020-08-18 17:26:39 +02:00
  • 11d1788370 docker base use evhtp Olof Hagsand 2020-08-18 15:24:50 +00:00
  • cbfc34fa6d wwwuser/wwwdir config doc Olof hagsand 2020-08-17 14:50:31 +02:00
  • adc6edf545 * New clixon-config@2020-08-17.yang revision * Added CLICON_RESTCONF_ADDRESS for setting evhtp bind address Olof hagsand 2020-08-17 14:48:40 +02:00
  • 1011a38385 4.7.0.PRE Olof hagsand 2020-08-14 11:44:37 +02:00
  • e1d86ca3b5 Clixon 4.6 Olof hagsand 2020-08-14 10:47:37 +02:00
  • 959574cf13 Clixon 4.6 Olof hagsand 2020-08-13 17:14:31 +02:00
  • f073c4221d CHANGLEOG 4.6 Olof hagsand 2020-08-13 17:09:38 +02:00
  • 6d38603a79 skip parts of nacm_recovery test when user runs as root Olof hagsand 2020-08-13 15:29:17 +02:00
  • f7e44185a5 recovery still dont work Olof hagsand 2020-08-13 15:06:33 +02:00
  • 3d33335f4b Last minute documentation and testing changes befoire 4.6 Olof hagsand 2020-08-13 14:58:42 +02:00
  • 8f9aa9bc80 tests for changed return values -> Created Olof hagsand 2020-08-11 15:48:25 +02:00
  • dc1ad560f9 * Bundle internal NETCONF on RESTCONF: A RESTCONF operation could produce several (up to four) internal NETCONF messages between RESTCONF server and backend. These have now been bundled into one. * NACM recovery user session is now properly enforced. This means that if CLICON_NACM_CREDENTIALS is except (default), then a specific CLICON_NACM_RECOVERY_USER can make any edits and bypass NACM rules. * If a default value is replaced by an actual value, RESTCONF return values have changed from 204 No Content to 201 Created * clixon-config.yang: Removed default valude of CLICON_NACM_RECOVERY_USER Olof hagsand 2020-08-11 14:46:53 +02:00
  • de85f20415 remove nacm-recovery from test Olof hagsand 2020-08-06 22:55:54 +02:00
  • 8fabc430fd remove nacm-recovery from test Olof hagsand 2020-08-06 22:35:41 +02:00
  • 31e583e24c test nacm-recovery something wrong in docker Olof hagsand 2020-08-06 22:21:24 +02:00
  • d5b6952e56 new test scripts Olof hagsand 2020-08-06 21:51:33 +02:00
  • a7737c283c restricted NACM recovery user Olof hagsand 2020-08-06 21:43:27 +02:00
  • 5c3f18c2da Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-08-06 15:21:33 +02:00
  • 794d51a365 * Top-level default leafs assigned. * Enforcing RFC 7950 Sec 7.6.1 means unassigned top-level leafs (or leafs under non-presence containers) are assigned default values. * NACM default behaviour is read-only (empty configs are dead-lockedd) * This applies if NACM is loaded and CLICON_NACM_MODE is internal * Fixed: [default values don't show up in datastores #111](https://github.com/clicon/clixon/issues/111) Olof hagsand 2020-08-06 15:19:38 +02:00