Commit graph

  • 0d53b40660 Did not check for missing list keys in validate. [Key of a list isn't mandatory](https://github.com/clicon/clixon/issues/73) Olof hagsand 2019-02-13 18:19:33 +01:00
  • d64d433468 * Changed base OS in clixon-system container to Alpine * Moved datastore/text/ code to datastore/ since there is only one type of datastore. * Added "magic script line" to test script for sourced and scriped exits Olof Hagsand 2019-02-13 21:33:40 +01:00
  • 057f4835db Did not check for missing list keys in validate. [Key of a list isn't mandatory](https://github.com/clicon/clixon/issues/73) Olof hagsand 2019-02-13 18:19:33 +01:00
  • 9fc8ac2e8e README changes Olof hagsand 2019-02-13 15:32:39 +01:00
  • 54626aaae4 Documented Clixon CLIgen usage and extensions Olof hagsand 2019-02-13 15:20:42 +01:00
  • ea8c84a372 Added new log function: clicon_log_xml() for logging XML tree Olof hagsand 2019-02-13 11:35:49 +01:00
  • 2ca1c1292c docker system push Olof Hagsand 2019-02-12 13:38:23 +01:00
  • 860c0c042d Added RCLOG for redirecting restconf logs at tests; with-restconf error in example Olof Hagsand 2019-02-12 12:58:27 +01:00
  • f02310dcef More on clixon base container on Alpine Olof Hagsand 2019-02-12 11:11:04 +01:00
  • 973e5d7507 Example makfile honors --without-restconf Olof Hagsand 2019-02-11 21:13:12 +01:00
  • 663088e393 makefile cleanup for docker and example Olof Hagsand 2019-02-11 21:05:24 +01:00
  • f1be029f71 Changed clixon base system container to use Alpine [docker/base](docker/base). Olof Hagsand 2019-02-11 17:55:47 +01:00
  • 9cf4b0139a compile on alpine Olof Hagsand 2019-02-11 17:44:29 +01:00
  • 024ba3439d travis errors Olof Hagsand 2019-02-11 17:21:16 +01:00
  • 9b73d604f5 travis make test Olof Hagsand 2019-02-11 16:46:28 +01:00
  • 49fb8a9929 time vs /usr/bin/time in travis docker test script problems Olof Hagsand 2019-02-11 16:21:07 +01:00
  • b023c6cbed Travis container tests Olof Hagsand 2019-02-11 16:10:43 +01:00
  • 96b7fd7485 travis: only container tests Olof Hagsand 2019-02-11 16:01:12 +01:00
  • dc173e0b4c docker base and system images, and trigger docker test from travis. Olof Hagsand 2019-02-11 15:47:12 +01:00
  • 84d2efdedc travis ./start.sh patch Olof Hagsand 2019-02-11 14:37:07 +01:00
  • faaf1aad35 Merge branch 'master' into develop Olof Hagsand 2019-02-11 14:35:08 +01:00
  • 66d8573c00 Added docker/base as minimal clixon container and docker/system as full clixon system. Olof Hagsand 2019-02-11 14:17:29 +01:00
  • 7e38dc57e3 Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2019-02-08 16:19:22 +01:00
  • 2b596591f1 Added Clixon example full system docker container, see [docker/system]. Olof Hagsand 2019-02-07 22:23:58 +01:00
  • 5b1c3d9a86 * clixon-config YAML file has new revision: 2019-02-06. * Replaced all calls to (obsolete) cli_output with fprintf * Added _experimental_ config option CLICON_CLI_UTF8 default set to 0. * CLIgen UTF8 does not work with scrolling and control editing Olof hagsand 2019-02-06 14:33:04 +01:00
  • ae8d28fae8 Merge branch 'develop' Olof hagsand 2019-02-05 14:40:59 +01:00
  • 3a5a4fde36 Cleaned up changelog and roadmap Olof hagsand 2019-02-05 14:35:35 +01:00
  • 19343c2b21 * Partially corrected: [yang type range statement does not support multiple values](https://github.com/clicon/clixon/issues/59). * Should work for netconf and restconf, but not for CLI. * Fixed again: [Range parsing is not RFC 7950 compliant](https://github.com/clicon/clixon/issues/71) Olof hagsand 2019-02-05 14:03:58 +01:00
  • f718c716b6 revert tests Olof hagsand 2019-02-04 17:40:50 +01:00
  • ba70aee2d9 groupadd socket Olof hagsand 2019-02-04 17:35:18 +01:00
  • 1a2041d451 clicon group Olof hagsand 2019-02-04 17:26:09 +01:00
  • b01f2011a3 travis whoami Olof hagsand 2019-02-04 17:15:59 +01:00
  • 9eeafbc2ac groupadd Olof hagsand 2019-02-04 16:49:28 +01:00
  • d0182e98ca Travis test scripts Olof hagsand 2019-02-04 16:44:15 +01:00
  • 6ff422064b install-include#2 Olof hagsand 2019-02-04 16:00:06 +01:00
  • ec39b43748 ldconfig Olof hagsand 2019-02-04 15:44:54 +01:00
  • 2e46062c29 travis experiments Olof hagsand 2019-02-04 15:35:29 +01:00
  • 89059b0000 travis no example Olof hagsand 2019-02-04 15:07:00 +01:00
  • 27e6511f35 travis build example Olof hagsand 2019-02-04 14:59:07 +01:00
  • 30f322648d added test/Makefile.in Olof hagsand 2019-02-04 14:42:18 +01:00
  • c81419e5e9 travis apt-get install Olof hagsand 2019-02-04 14:38:41 +01:00
  • 2a2785090b travis libfcgi-dev Olof hagsand 2019-02-04 14:31:46 +01:00
  • a13c8abd5f travis x mode Olof hagsand 2019-02-04 14:27:34 +01:00
  • 10d841f4be Added make test and travis experiment Olof hagsand 2019-02-04 14:13:20 +01:00
  • 14343810ca xml_cmp() compares numeric nodes based on string value [https://github.com/clicon/clixon/issues/64] Olof hagsand 2019-02-04 11:49:53 +01:00
  • 4f0e8dc916 Travis yanl file Olof hagsand 2019-02-03 19:26:21 +01:00
  • 02d725b2c0 * xml_cmp() respects 'ordered-by user' for state nodes, which violates RFC 7950 [https://github.com/clicon/clixon/issues/63. (Thanks JDL) Olof hagsand 2019-02-03 16:19:33 +01:00
  • 376b75328c test scripts: added sum.sh Olof hagsand 2019-02-02 13:19:49 +01:00
  • 936ae389e8 Test script change: merged new2+new functions Olof hagsand 2019-02-02 12:20:47 +01:00
  • cf4f626719 Merge branch 'nacm' into develop Olof hagsand 2019-02-02 11:38:02 +01:00
  • 1e4022e73c NACM cleanup, uniform rule function, change of function names, etc. Olof hagsand 2019-02-02 11:35:50 +01:00
  • 8bf5cb0de5 NACM module access control point for edit-config Olof hagsand 2019-02-01 14:56:45 +01:00
  • ef86cda2fe NACM Data node WRITE access module support (RFC8341 3.4.5) Olof hagsand 2019-01-30 10:02:17 +01:00
  • 342b94fb76 nacm refactoring Olof hagsand 2019-01-27 14:45:39 +01:00
  • ffecebf32a * NACM Data node READ access module support (RFC8341 3.4.5) * Access control points added for get and get-config in addition to incoming rpc. * RFC 8341 Example A.2 implemented, see: [test/test_nacm_module.sh] * Added username argument on xmldb_put() datastore function for NACM data-node write checks * Added xml_rootchild_node() lib function as variant of xml_rootchild() Olof hagsand 2019-01-27 13:26:15 +01:00
  • c156832234 fixed segv with unmatched restconf keys in uri Olof hagsand 2019-01-26 18:48:56 +01:00
  • 7113026e17 example client-rpc similar to other example rpc:s Olof hagsand 2019-01-22 18:37:21 +01:00
  • 04bb05c83f Upgrade testcases for nacm Olof hagsand 2019-01-22 13:41:03 +01:00
  • d55787d8ec Merge branch 'develop' into nacm Olof hagsand 2019-01-21 16:45:24 +01:00
  • 0e09996073 verify empty body and/or empty yang input/output Olof hagsand 2019-01-21 14:28:44 +01:00
  • 34d7f60ca4 JSON updates Olof hagsand 2019-01-20 19:13:40 +01:00
  • 19f26e6838 * XML<>JSON conversion problems [https://github.com/clicon/clixon/issues/66] * CDATA sections stripped from XML when converted to JSON Olof hagsand 2019-01-19 21:39:19 +01:00
  • 906b93cae0 Restconf returns error when RPC generates "ok" reply [https://github.com/clicon/clixon/issues/69] Olof hagsand 2019-01-18 20:55:30 +01:00
  • 66f80e9304 * xsd regular expression support for character classes [https://github.com/clicon/clixon/issues/68] * added support for \c, \d, \w, \W, \s, \S Olof hagsand 2019-01-17 16:13:34 +01:00
  • 03ac48ab2b Removing newlines from XML data [https://github.com/clicon/clixon/issues/65] Olof hagsand 2019-01-16 23:17:07 +01:00
  • 26a75a4c50 Merge branch 'loeliger-develop' into develop Olof hagsand 2019-01-14 21:24:18 +01:00
  • 43b89af7f4 formatting Olof hagsand 2019-01-14 21:24:03 +01:00
  • 15cb2385d4 JSON: Fix JSON formatting in the presence of namespaces. Jon Loeliger 2019-01-14 13:32:16 -06:00
  • 795240368e improved previous Changelog Olof hagsand 2019-01-13 23:22:25 +01:00
  • 0267afcb21 * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. * Added -p <dir> command-line option to all programs: backend, cli, netconf, restconf. * Moved and updated all standard ietf and iana yang files from example and yang/ to yang/standard. * Renamed example yang from example.yang -> clixon-example.yang Olof hagsand 2019-01-13 17:30:58 +01:00
  • 90545b05cd nacm testcases for modules and datastore Olof hagsand 2019-01-12 13:52:35 +01:00
  • 9a7ce8e06d Merge branch 'develop' into nacm Olof hagsand 2019-01-12 12:29:34 +01:00
  • f48c8f45c6 * Date-and-time type now properly uses ISO 8601 UTC timezone designators. * Renamed yang file ietf-netconf-notification@2008-07-01.yang to clixon-rfc5277. * Cligen uses posix regex while yang uses XSD. It differs in some aspects. A translator function has been added for \d -> [0-9] translation, there may be more. * [ietf-netconf-notification@2008-07-01.yang validation problem #62](https://github.com/clicon/clixon/issues/62) Olof hagsand 2019-01-11 17:30:08 +01:00
  • 207858e20d * Support of yangmodels supported, see test_yangmodels.sh * Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf. * Ignore CR(\r) in yang files for DOS files Olof hagsand 2019-01-10 20:52:19 +01:00
  • c7e847cd24 Keyword "min" (not only "max") can be used in built-in types "range" and "length" statements. Olof hagsand 2019-01-06 22:11:59 +01:00
  • bd67a2a5f2 Support for empty yang string added, eg default ""; if-feature added in yang parser at several places. Olof hagsand 2019-01-06 16:31:36 +01:00
  • 0502ca4218 Hand-crafted validation messages removed and replaced with generic validations. Olof hagsand 2019-01-05 14:16:56 +01:00
  • 5b6af82e29 Validation of mandatory choice and recursive mandatory containers. Olof hagsand 2019-01-05 11:08:16 +01:00
  • 058a14579f Yang choice functionality improved and stricter validation for CLI generation, mandatory flags, etc. Olof hagsand 2019-01-04 11:37:26 +01:00
  • 7a8f242a09 Added new clixon-lib yang module for internal netconf protocol. Currently only extends the standard with a debug RPC. Olof hagsand 2019-01-02 22:50:03 +01:00
  • 11479f7ec3 add yang-spec as arg to decode clicon msg Olof hagsand 2019-01-02 20:59:57 +01:00
  • b443471e7b Removed CLI generation for yang notifications (and other non-data yang nodes Olof hagsand 2019-01-02 18:44:27 +01:00
  • 6c48165340 three-valued return values for datastore text_modify Olof hagsand 2019-01-02 18:20:50 +01:00
  • 32ea957a52 CLICON_XML_SORT option (in clixon-config.yang) has been removed and set to true permanently since setting it to false is obsolete. Olof hagsand 2019-01-02 17:43:58 +01:00
  • 0103d58994 2019 Olof hagsand 2019-01-02 15:48:30 +01:00
  • 0baebc93fd * Strict namespace setting can be a problem when upgrading existing database files, such as startup-db or persistent running-db, or any other saved XML file. * For backward compatibility, load of startup and running set CLICON_XML_NS_STRICT to false temporarily. * Added three-valued return values for several validate functions where -1 is fatal error, 0 is validation failed and 1 is validation OK. * This includes: xmldb_put, xml_yang_validate_all, xml_yang_validate_add, xml_yang_validate_rpc, api_path2xml, api_path2xpath * Added new xml functions for specific types: xml_child_nr_notype, xml_child_nr_notype, xml_child_i_type, xml_find_type. Olof hagsand 2019-01-02 15:18:29 +01:00
  • 861300d6c0 netconf error handling and test summary script Olof hagsand 2018-12-21 14:44:59 +01:00
  • f872c7e295 * More precise Yang validation and better error messages * For Example, adding bad-, missing-, or unknown-element error messages, etc instead of operation-failed * Removed delete-config support for candidate db since it is not supported in RFC6241. * Switched the order of error-type and error-tag in all netconf and restconf error messages to comply to RFC order. * Added example_rpc RPC to example backend * Renamed xml_namespace[_set]() to xml_prefix[_set]() * Some restconf error messages contained "rpc-reply" or "rpc-error" which have now been removed. * Netconf/Restconf RPC extra input arguments are ignored (https://github.com/clicon/clixon/issues/47) Olof hagsand 2018-12-21 01:33:41 +01:00
  • 03e618b1e5 Merge branch 'nacm' into develop Olof hagsand 2018-12-16 19:53:46 +01:00
  • ae1af8da9e * NACM extension (RFC8341) * NACM module support (RFC8341 A1+A2) * Recovery user "_nacm_recovery" added. * Example use is restconf PUT when NACM edit-config is permitted, then automatic commit and discard are permitted using recovery user. * Example user changed adm1 to andy to comply with RFC8341 example Olof hagsand 2018-12-16 19:46:26 +01:00
  • f071e0b332 prioritized roadmap Olof hagsand 2018-12-08 18:13:27 +01:00
  • e5c0b06cf9 Move NACM files from backend to lib src dir Olof hagsand 2018-12-08 11:22:26 +01:00
  • 66ce941ac4 minor cardinality patch Olof hagsand 2018-12-06 10:06:13 +01:00
  • 7d5bfe5c81 YANG parser cardinality checked (https://github.com/clicon/clixon/issues/48) Olof hagsand 2018-12-05 22:18:28 +01:00
  • 9377986c81 testing of yang load ocnfig options Olof hagsand 2018-12-04 20:04:16 +01:00
  • ac1aa44fc4 * Yang Configure options changed * CLICON_YANG_DIR is changed from a single directory to a path of directories * Note CLIXON_DATADIR (=/usr/local/share/clixon) need to be in the list * CLICON_YANG_MAIN_FILE Provides a filename with a single module filename. * CLICON_YANG_MAIN_DIR Provides a directory where all yang modules should be loaded. * Change all @datamodel:tree to @datamodel in all CLI specification files * If you generate CLI code from the model (CLIXON_CLI_GENMODEL). * For backward compatibility, define CLICON_CLI_MODEL_TREENAME_PATCH in clixon_custom.h * Removed return value ymodp from yang parse functions (eg yang_parse()). * New config option: CLICON_CLI_MODEL_TREENAME defining name of generated syntax tree if CLIXON_CLI_GENMODEL is set. Olof hagsand 2018-12-03 21:16:35 +01:00
  • d09a8c08aa getopt return value changed from char to int (https://github.com/clicon/clixon/issues/58) Olof hagsand 2018-12-01 18:34:52 +01:00
  • 39a5086218 * Yang Support of submodule, include and belongs-to. * Improved unknown handling * Configure option CLICON_YANG_DIR is changed from a single directory to a path of directories * Note CLIXON_DATADIR (=/usr/local/share/clixon) need to be in the list Olof hagsand 2018-12-01 18:17:42 +01:00
  • 56da97cb5b Openconfig yang specs parsed: https://github.com/openconfig/public Olof hagsand 2018-11-25 18:24:13 +01:00
  • 4303406957 clixon_yang_cardinality files added Olof hagsand 2018-11-18 20:58:18 +01:00