Commit graph

1513 commits

Author SHA1 Message Date
Olof Hagsand
024ba3439d travis errors 2019-02-11 17:21:16 +01:00
Olof Hagsand
49fb8a9929 time vs /usr/bin/time in travis docker test script problems 2019-02-11 16:21:07 +01:00
Olof Hagsand
b023c6cbed Travis container tests 2019-02-11 16:10:43 +01:00
Olof Hagsand
96b7fd7485 travis: only container tests 2019-02-11 16:01:12 +01:00
Olof Hagsand
dc173e0b4c docker base and system images, and trigger docker test from travis. 2019-02-11 15:47:12 +01:00
Olof Hagsand
84d2efdedc travis ./start.sh patch 2019-02-11 14:37:07 +01:00
Olof Hagsand
66d8573c00 Added docker/base as minimal clixon container and docker/system as full clixon system. 2019-02-11 14:17:29 +01:00
Olof Hagsand
7e38dc57e3 Merge branch 'master' of https://github.com/clicon/clixon 2019-02-08 16:19:22 +01:00
Olof Hagsand
2b596591f1 Added Clixon example full system docker container, see [docker/system]. 2019-02-07 22:23:58 +01:00
Olof hagsand
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
2019-02-06 14:33:04 +01:00
Olof hagsand
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)
2019-02-05 14:03:58 +01:00
Olof hagsand
f718c716b6 revert tests 2019-02-04 17:40:50 +01:00
Olof hagsand
ba70aee2d9 groupadd socket 2019-02-04 17:35:18 +01:00
Olof hagsand
1a2041d451 clicon group 2019-02-04 17:26:09 +01:00
Olof hagsand
b01f2011a3 travis whoami 2019-02-04 17:15:59 +01:00
Olof hagsand
9eeafbc2ac groupadd 2019-02-04 16:49:28 +01:00
Olof hagsand
d0182e98ca Travis test scripts 2019-02-04 16:44:15 +01:00
Olof hagsand
6ff422064b install-include#2 2019-02-04 16:00:06 +01:00
Olof hagsand
ec39b43748 ldconfig 2019-02-04 15:44:54 +01:00
Olof hagsand
2e46062c29 travis experiments 2019-02-04 15:35:29 +01:00
Olof hagsand
89059b0000 travis no example 2019-02-04 15:09:37 +01:00
Olof hagsand
27e6511f35 travis build example 2019-02-04 14:59:07 +01:00
Olof hagsand
30f322648d added test/Makefile.in 2019-02-04 14:42:18 +01:00
Olof hagsand
c81419e5e9 travis apt-get install 2019-02-04 14:38:41 +01:00
Olof hagsand
2a2785090b travis libfcgi-dev 2019-02-04 14:31:46 +01:00
Olof hagsand
a13c8abd5f travis x mode 2019-02-04 14:27:34 +01:00
Olof hagsand
10d841f4be Added make test and travis experiment 2019-02-04 14:13:20 +01:00
Olof hagsand
14343810ca xml_cmp() compares numeric nodes based on string value [https://github.com/clicon/clixon/issues/64] 2019-02-04 11:49:53 +01:00
Olof hagsand
02d725b2c0 * xml_cmp() respects 'ordered-by user' for state nodes, which violates RFC 7950 [https://github.com/clicon/clixon/issues/63. (Thanks JDL) 2019-02-03 16:19:33 +01:00
Olof hagsand
376b75328c test scripts: added sum.sh 2019-02-02 13:19:49 +01:00
Olof hagsand
936ae389e8 Test script change: merged new2+new functions 2019-02-02 12:20:47 +01:00
Olof hagsand
cf4f626719 Merge branch 'nacm' into develop 2019-02-02 11:38:02 +01:00
Olof hagsand
1e4022e73c NACM cleanup, uniform rule function, change of function names, etc. 2019-02-02 11:35:50 +01:00
Olof hagsand
8bf5cb0de5 NACM module access control point for edit-config 2019-02-01 14:56:45 +01:00
Olof hagsand
ef86cda2fe NACM Data node WRITE access module support (RFC8341 3.4.5) 2019-01-30 10:02:17 +01:00
Olof hagsand
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()`
2019-01-27 13:26:15 +01:00
Olof hagsand
7113026e17 example client-rpc similar to other example rpc:s 2019-01-22 18:37:21 +01:00
Olof hagsand
04bb05c83f Upgrade testcases for nacm 2019-01-22 13:41:03 +01:00
Olof hagsand
d55787d8ec Merge branch 'develop' into nacm 2019-01-21 16:45:24 +01:00
Olof hagsand
0e09996073 verify empty body and/or empty yang input/output 2019-01-21 14:28:44 +01:00
Olof hagsand
34d7f60ca4 JSON updates 2019-01-20 19:13:40 +01:00
Olof hagsand
19f26e6838 * XML<>JSON conversion problems [https://github.com/clicon/clixon/issues/66]
* CDATA sections stripped from XML when converted to JSON
2019-01-19 21:39:19 +01:00
Olof hagsand
66f80e9304 * xsd regular expression support for character classes [https://github.com/clicon/clixon/issues/68]
* added support for \c, \d, \w, \W, \s, \S
2019-01-17 16:13:34 +01:00
Olof hagsand
03ac48ab2b Removing newlines from XML data [https://github.com/clicon/clixon/issues/65] 2019-01-16 23:17:07 +01:00
Olof hagsand
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
2019-01-13 17:34:15 +01:00
Olof hagsand
90545b05cd nacm testcases for modules and datastore 2019-01-12 13:52:35 +01:00
Olof hagsand
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)
2019-01-11 17:30:08 +01:00
Olof hagsand
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
2019-01-10 20:52:19 +01:00
Olof hagsand
c7e847cd24 Keyword "min" (not only "max") can be used in built-in types "range" and "length" statements. 2019-01-06 22:11:59 +01:00
Olof hagsand
bd67a2a5f2 Support for empty yang string added, eg default "";
if-feature added in yang parser at several places.
2019-01-06 16:31:36 +01:00