Commit graph

1413 commits

Author SHA1 Message Date
Olof hagsand
de85f20415 remove nacm-recovery from test 2020-08-06 22:55:54 +02:00
Olof hagsand
8fabc430fd remove nacm-recovery from test 2020-08-06 22:35:41 +02:00
Olof hagsand
31e583e24c test nacm-recovery something wrong in docker 2020-08-06 22:21:24 +02:00
Olof hagsand
d5b6952e56 new test scripts 2020-08-06 21:51:33 +02:00
Olof hagsand
a7737c283c restricted NACM recovery user 2020-08-06 21:43:27 +02:00
Olof hagsand
5c3f18c2da Merge branch 'master' of https://github.com/clicon/clixon 2020-08-06 15:21:33 +02:00
Olof hagsand
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)
2020-08-06 15:20:57 +02:00
Olof hagsand
fe8724723d -q: print and quit after upgrade: even if sort/bind errors, print the XML 2020-08-06 09:02:11 +02:00
Olof Hagsand
df095daa50
Merge pull request #125 from dcornejo/master
sort the XML before dumping when using -q switch
2020-08-06 08:53:31 +02:00
Dave Cornejo
4aa0b745da sort the XML before dumping when using -q switch 2020-08-05 09:58:48 -10:00
Olof hagsand
65733ffe69 * Added yang-binding yb parameter to xmldb_get0() and all xmldb get functions. 2020-08-03 13:57:04 +02:00
Olof hagsand
5911d23efc patch quit startup upgrading 2020-08-03 13:08:43 +02:00
Olof hagsand
5b81c43d96 New backend switch: -q : Quit startup directly after upgrading and print result on stdout 2020-08-03 12:49:33 +02:00
Olof hagsand
daeab85446 removed obsolete example yang, mod cli_dbxml to only append leaf in cli_set 2020-07-30 22:52:42 +02:00
Olof hagsand
6fa8bb71d8 fix to error in instance-id-bind patch 2020-07-28 17:58:40 +02:00
Olof hagsand
d2ccee4eab Added nsctx argument to cli_dbxml() and exposed it as a public function
Added function clixon_instance_id_bind()
2020-07-28 16:15:02 +02:00
Olof hagsand
3ecc259ec7 misc documentation 2020-07-28 16:15:02 +02:00
Olof hagsand
23bcee8185 * Netconf lock/unlock behaviour changed to adhere to RFC 6241
* Changed commit lock error tag from "lock denied" to "in-use".
  * Changed unlock error message from "lock is already held" to #lock not active" or "lock held by other session".
  * Fixed [lock candidate succeeded even though it is modified #110](https://github.com/clicon/clixon/issues/110)
2020-07-28 16:13:34 +02:00
Olof Hagsand
6bd9306423
Merge pull request #123 from 008agent/no_upgrade_no_revision_defined
Don't call upgrade callbacks for module with no revision defined
2020-07-28 12:41:19 +02:00
Vladimir Ratnikov
f5d57ae50f fix clauses 2020-07-28 06:03:22 -04:00
Vladimir Ratnikov
8b5c77838b Don't call upgrade callbacks for module with no revision defined 2020-07-28 05:52:07 -04:00
Olof hagsand
9d2102cebf Fixed: [Need to add the possibility to use anchors around patterns #51](https://github.com/clicon/cligen/issues/51):
* Dont escape `$` if it is last in a regexp in translation from XML to POSIX.
2020-07-27 20:03:52 +02:00
Olof hagsand
918bf6223b added CR delimiters to if-feature 2020-07-27 13:00:56 +02:00
Olof hagsand
f7b640810b * Enhanced Clixon if-feature handling:
* If-feature now supports and/or lists, such as: `if-feature "a and b"` and `if-feature "a or b or c"`. However, full if-feature-expr including `not` and nested boolean experessions is still not supported.
  * Sanity check: if an `if-feature` statement exists, a corresponding `feature` statement must exists that declares that feature.
2020-07-27 12:06:36 +02:00
Olof hagsand
cb58b2bb12 log warning, error doc 2020-07-26 16:16:32 +02:00
Olof hagsand
864e2d1692 Instance-id yang validation checks corrected 2020-07-26 16:14:39 +02:00
Olof hagsand
ab2f7cbbb4 Merge branch 'master' of https://github.com/clicon/clixon 2020-07-25 16:14:42 +02:00
Olof hagsand
57b104bc25 * Checked yang binding validity which lead to:
* Changed and enhanced several `bad-element` error replies to `unknown-element` with more detailed error-message.
2020-07-25 16:09:24 +02:00
Olof Hagsand
4572d94ab1
Merge pull request #121 from VVIsaev/master
Added error message for each CLICON_YANG_UNKNOWN_ANYDATA occasion
2020-07-25 13:15:51 +02:00
Vladimir Isaev
cc8e727f85 Added error message for each CLICON_YANG_UNKNOWN_ANYDATA occasion 2020-07-24 15:46:38 +03:00
Olof hagsand
b56c0220c9 Merge branch 'master' of https://github.com/clicon/clixon 2020-07-23 20:42:17 +02:00
Olof hagsand
83203623cd Optimized get config xpath of large lists, such as a[x=1000] in a list of 100000s a:s. 2020-07-23 20:41:32 +02:00
Olof Hagsand
7b7bb82e0d Merge branch 'master' of https://github.com/clicon/clixon 2020-07-23 17:23:26 +00:00
Olof Hagsand
57d7587d9a vagrant, docker and remote test small changes 2020-07-23 17:23:08 +00:00
Olof hagsand
36576143b5 Revised CLICON_YANG_UNKNOWN_ANYDATA patch: dont allow new nodes after initial startup 2020-07-23 17:04:12 +02:00
Olof hagsand
9e2bdb8c8e split test_perf into test_perf_netconf, _restconf and _cli 2020-07-18 15:52:12 +02:00
Olof hagsand
316cad35ff Another CLICON_YANG_UNKNOWN_ANYDATA issue: top-level unknown namespace caused segv in backend 2020-07-17 19:03:40 +02:00
Olof hagsand
490f7d8023 Two CLICON_YANG_UNKNOWN_ANYDATA issues: segv when exiting cli and diff errors on commit 2020-07-17 14:18:09 +02:00
Olof hagsand
62446db752 Fixed CLICON_YANG_UNKNOWN_ANYDATA for config and state data. This feature introduced in 4.5 didnt really work. 2020-07-14 19:56:42 +02:00
Olof hagsand
863ebd3f93 small changes in error messages and code documentation 2020-07-14 19:46:12 +02:00
Olof hagsand
94ad44a2ea Merge branch 'master' of https://github.com/clicon/clixon 2020-07-12 10:59:23 +02:00
Olof hagsand
25245a12d2 code documentation 2020-07-12 10:59:12 +02:00
Olof Hagsand
94bf490a79 made c-compiler configurable, and added /usr/local as include path for cc and c++ tests 2020-07-10 13:22:45 +00:00
Olof Hagsand
53deedc242 vagrant tests eg with evhtp 2020-07-10 12:33:30 +00:00
Olof Hagsand
efc0228f99 test time function exists 2020-07-09 10:15:45 +00:00
Olof Hagsand
2d97c1e2c6 handle sanity check removed that triggered c++ linkage errors 2020-07-09 08:07:41 +00:00
Olof hagsand
b655d56fb4 new travis 2020-07-07 22:59:56 +02:00
Olof hagsand
9470caa1c0 new travis 2020-07-07 22:57:21 +02:00
Olof hagsand
931988763b new travis 2020-07-07 22:55:11 +02:00
Olof hagsand
f11e9f7388 new travis 2020-07-07 22:50:41 +02:00