Olof Hagsand
a7af7e7593
memleaks
2019-05-22 18:27:53 +00:00
Olof hagsand
7e109d1d4b
Startup transactions did not mark added tree with XML_FLAG_ADD as it should
2019-05-21 10:55:16 +02:00
Olof hagsand
9085432aa7
clixon_util_regexp compile error
2019-05-20 16:50:50 +02:00
Olof hagsand
bc54f2d04c
* Regexp improvements
...
* Added check for libxml in configure';
* Added clixon_util_regexp utility function
* Yang state get improvements
* Integrated state and config into same tree on retrieval, not separate trees
* Added cli functions `cli_show_config_state()` and `cli_show_auto_state()` for showing combined config and state info.
* Added integrated state in the main example: `interface/oper-state`.
* Added performance tests for getting state, see [test/test_perf_state.sh].
2019-05-20 16:03:29 +02:00
Olof hagsand
c17784cfe9
Removed O(n^2) in cli expand/completion code
2019-05-16 20:08:25 +02:00
Olof hagsand
47889a9b0a
Check restconf PUT different keys for leaf-list
2019-05-15 18:35:28 +02:00
Olof hagsand
712d8a6ff1
Restconf PUT different keys detected (thanks @dcornejo) and fixed
2019-05-15 17:38:52 +02:00
Olof hagsand
b4f860b5ef
Merge branch 'master' of https://github.com/clicon/clixon
2019-05-15 11:16:43 +02:00
Olof hagsand
6f294fe67a
Yang Enumeration including space did not generate working CLIgen code, see [Choice with space is not working in CLIgen code]( https://github.com/olofhagsand/cligen/issues/24 )
2019-05-15 11:12:23 +02:00
Olof hagsand
0b0fef12cc
Merge branch 'master' of https://github.com/clicon/clixon
2019-05-14 14:11:43 +02:00
Olof hagsand
d775eb5374
* Improved submodule implementation, as part of [Yang submodule import prefix restrictions #60 ]( https://github.com/clicon/clixon/issues/60 ).
2019-05-14 14:09:02 +02:00
Olof hagsand
f8850990d4
Merge branch 'master' of https://github.com/clicon/clixon
2019-05-10 16:56:07 +02:00
Olof hagsand
e68a5ffa97
cli history file long string test
2019-05-10 16:49:00 +02:00
Olof Hagsand
c38a648ca4
wrong fread -1 check
2019-05-10 14:44:21 +00:00
Olof hagsand
b103599a1a
* Clixon transaction mechanism has changed which may affect your backend plugin callbacks:
...
* Validate-only transactions are terminated by an `end` or `abort` callback.
* If a commit user callback fails, a new `revert` callback will be made to plugins that have made a succesful commit.
2019-05-10 14:45:23 +02:00
Olof hagsand
99b7a1fe5b
Clixon config option CLICON_XMLDB_CACHE renamed to CLICON_DATASTORE_CACHE and changed type from boolean to datastore_cache
2019-05-09 14:25:16 +02:00
Olof hagsand
70221742f7
Merge branch 'master' of https://github.com/clicon/clixon
2019-05-08 13:05:51 +02:00
Olof hagsand
06e6ef80d1
Non-key list now not accepted in edit-config (before only on validation)
2019-05-08 12:51:10 +02:00
Olof hagsand
1cfb190ea9
* Changed return values in internal functions: netconf_trymerge, startup_module_state, yang_modules_state_get
2019-05-07 13:26:34 +02:00
Olof hagsand
c529847790
* Yang "min-element" and "max-element" feature supported
...
* New Clixon Yang RPC: ping. To check if backup is running.
* Fixed support for multiple datanodes in a choice/case statement.
2019-05-07 11:47:30 +02:00
Olof hagsand
2fc37d2470
Yang "unique" feature supported according to RFC 7950 7.8.3
2019-05-03 14:03:10 +02:00
Olof hagsand
a5e955c95f
Fixed an ordering problem showing up in validate/commit callbacks. If two new items following each order (yang-wise), only the first showed up in the new-list. Thanks achernavin!
2019-04-30 15:46:40 +02:00
Olof hagsand
220a872188
Fixed a problem caused by recent sorting patches that made "ordered-by user" lists fail in some cases, causing multiple list entries with same keys. NACM being one example. Thanks vratnikov!
2019-04-29 16:31:38 +02:00
Olof hagsand
4e23864acd
Merge branch 'master' of https://github.com/clicon/clixon
2019-04-26 13:41:14 +02:00
Olof hagsand
76f8a5e9e1
exponential add strategy for XML childvec
2019-04-26 13:40:16 +02:00
Olof hagsand
50ca7b7845
New XMLDB_FORMAT added: tree. An experimental record-based tree database for direct access of records.
2019-04-26 13:38:55 +02:00
Olof hagsand
6bf2a74e24
* Restconf with startup feature will now copy all edit changes to startup db (as it should according to RFC 8040)
...
* See [Restconf does not handle startup datastore according to the RFC](https://github.com/clicon/clixon/issues/74 )
* Netconf Startup feature is no longer hardcoded, you need to explicitly enable it (See RFC 6241, Section 8.7)
* Enable in config file with: `<CLICON_FEATURE>ietf-netconf:startup</CLICON_FEATURE>`, or use `*:*`
2019-04-26 12:12:55 +02:00
Olof hagsand
161ef9c7b0
yang access unctions
2019-04-25 13:50:02 +02:00
Olof hagsand
e9aa7bc98e
Merge branch 'master' of https://github.com/clicon/clixon
2019-04-25 13:47:19 +02:00
Olof hagsand
e4239496a8
Yang access function. Mem leak in USE_XML_INSERT
2019-04-25 13:46:23 +02:00
Olof Hagsand
99c0108d4f
Merge pull request #84 from 008agent/yand_order_null_stmt
...
Add yang_stmt NULL check in yang_order to prevent SEGFAULT
2019-04-25 12:40:22 +02:00
Vladimir Ratnikov
2f997b169a
Add yang_stmt NULL check in yang_order to prevent SEGFAULT
2019-04-25 06:20:15 -04:00
Olof hagsand
16de5f47ba
Merge branch 'master' of https://github.com/clicon/clixon
2019-04-24 15:35:57 +02:00
Olof hagsand
65c809b1c3
Removed external direct access to the yang_stmt struct.
2019-04-24 15:13:19 +02:00
Olof hagsand
7847e74c5e
yang_cvec_set(y, cvv) added
2019-04-24 09:56:07 +02:00
Olof hagsand
1e1eabbc06
Non linear str2int
2019-04-23 12:53:29 +02:00
Olof hagsand
77ad42f1ce
startup measurements: test, plot and report
2019-04-23 11:57:18 +02:00
Olof hagsand
6a0628141a
More performance tweaks
2019-04-21 17:29:11 +02:00
Olof hagsand
8c36083e16
* A yang type regex cache added, this helps the performance by avoiding re-running the regcomp command on every iteration.
...
* An XML namespace cache added (see `xml2ns()`)
* Better performance of XML whitespace parsing/scanning.
2019-04-19 16:01:39 +02:00
Olof hagsand
728c97ab6d
Failure in startup - modified to handle memory exhaustion when loading file
2019-04-18 15:38:15 +02:00
Olof hagsand
b714eff077
Failure in startup with -m startup or running left running_db cleared.
2019-04-18 12:20:31 +02:00
Olof hagsand
6c2e880ab9
Scaling doc update
2019-04-17 17:53:40 +02:00
Olof hagsand
c4a8f98512
scaling doc update
2019-04-17 17:41:51 +02:00
Olof hagsand
c3d9b392dd
Scaling large lists report
2019-04-17 15:50:38 +02:00
Olof hagsand
14d319dd9b
* A new "hello world" example is added
...
* The directory `docker/system` has been moved to `docker/main`
2019-04-17 11:26:05 +02:00
Olof hagsand
d46ca41c8b
Further optimizions and bugfixing of that
2019-04-16 12:09:21 +02:00
Olof hagsand
71da2ac6cb
Merge branch 'master' of https://github.com/clicon/clixon
2019-04-14 14:43:20 +02:00
Olof hagsand
c79baf1b1f
* Optimized validation of large lists
...
* New xmldb_get1() returning actual cache - not a copy. This has lead to some householding instead of just deleting the copy
* xml_diff rewritten to work linearly instead of O(2)
* New xml_insert function using tree search. The new code uses this in insertion xmldb_put and defaults. (Note previous xml_insert renamed to xml_wrap_all)
2019-04-14 14:36:41 +02:00
Olof hagsand
cef0dc5a22
* Added yang access functions
...
* Change all y->ys_parent to yang_parent_get(y)
* Change all y->ys_keyword to yang_keyword_get(y)
* Change all y->ys_argument to yang_argument_get(y)
* Change all y->ys_cv to yang_cv_get(y)
* Change all y->ys_cvec to yang_cvec_get(y)
2019-04-11 15:53:25 +02:00
Olof hagsand
0a951899c8
test_type run twice with/without dbcache
2019-04-11 13:22:37 +02:00