Olof hagsand
8c1372d26a
libhttp compile
2020-05-28 17:19:15 +02:00
Olof hagsand
ebaedfd482
cligen parsetree hidden
2020-05-21 16:48:32 +02:00
Olof hagsand
1a1aa58249
CLIgen pt_expand API change and mem problems
2020-05-20 12:00:52 +02:00
Olof hagsand
7d0b245174
Adapt to CLIgen 4.6 API changes
2020-05-19 22:26:29 +02:00
Olof hagsand
132122c937
enabled and removed USE_CLIGEN44
2020-05-12 14:02:25 +02:00
Olof hagsand
ac1f36009f
Makefile copyright
2020-05-12 13:59:45 +02:00
Olof hagsand
29235d5547
Removed and enabled code for compile options: RESTART_PLUGIN_RPC, XML_NEW_DIFFERENTIATE, OPTIMIZE_45_BIND and OPTIMIZE_45_SORT
2020-05-11 15:29:58 +02:00
Olof hagsand
bf04131e54
Added decriptive error message when plugins produce invalid state XML.
2020-05-10 17:10:07 +02:00
Olof hagsand
266e5581e4
Changed output of clixon_cli -G option to show generated CLI spec original text instead of resulting parse-tree, which gives better detail from a debugging perspective.
2020-05-09 16:20:50 +02:00
Olof hagsand
f9e1fe5de7
removed state path kludge
2020-05-05 17:13:38 +02:00
Olof hagsand
bc0eb921d0
Added functionality to restart an individual plugin.: New clixon-lib:restart-plugin RPC
2020-05-04 15:04:02 +02:00
Olof hagsand
3ab1f50a19
undef state path bypass
2020-05-04 13:35:04 +02:00
Olof hagsand
592c513b83
Fix up state bypass get code
2020-05-04 13:10:43 +02:00
Olof hagsand
dafc6d10e0
Added option to treat unknown XML (wrt YANG) as anydata.
2020-05-03 22:03:33 +02:00
Olof hagsand
861f78f588
fix state path kludge
2020-05-02 17:08:54 +02:00
Olof hagsand
703d1a2b08
Added CLICON_STATE_PATH_KLUDGE
2020-05-01 21:39:18 +02:00
Olof hagsand
442e96bdf0
Merge branch 'master' of https://github.com/clicon/clixon
2020-05-01 17:09:56 +02:00
Olof hagsand
82529a2f16
* Experimental optimzations of yang-bind and sort for large lists
...
* Enabled by compile-time options: `OPTIMIZE_45_BIND` and `OPTIMIZE_45_SORT`
2020-05-01 17:08:32 +02:00
Olof hagsand
772759e42f
* Compile-time option: USE_CLIGEN44 for running clixon-45 with cligen-44.
...
* Temporary fix since cligen-45 have some non-backward compatible behaviour.
2020-05-01 00:42:54 +02:00
Olof hagsand
b8ec6a4957
* Optimized prefix checks at xml parse time: using many prefixes slowed down parsing considerably
...
* Cleared startup-db cache after restart
2020-04-29 23:11:48 +02:00
Olof hagsand
9a8c6cf3e6
* New clixon-lib@2020-04-23.yang revision
...
* Added: stats RPC for clixon XML and memory statistics.
* Added: restart-plugin RPC for restarting individual plugins without restarting backend.
* xml-stats moved from clixon-config.yang as state data to an rpc `datastats` in clixon-lib.yang
* Experimental: restart_plugin
* Two new plugin callbacks added
* ca_daemon: Called just after a server has "daemonized", ie put in background.
* ca_trans_commit_done: Called when all plugin commits have been done.
* Note: If you have used "end" callback and usign transaction data, you should probably use this instead.
2020-04-28 22:10:06 +02:00
Olof hagsand
1c99bd6a9b
* xml-stats moved from clixon-config.yang as state data to an rpc datastatsin clixon-lib.yang
...
* Two new plugin callbacks added
* ca_daemon: Called just after a server has "daemonized", ie put in background.
* ca_trans_commit_done: Called when all plugin commits have been done.
2020-04-23 22:58:57 +02:00
Olof hagsand
65806f1ef2
Copyright change: LLC -> LLC(Netgate)
2020-04-23 16:55:56 +02:00
Olof hagsand
476f1d84d3
Fix a bind rpc assert on unknown namespace
2020-04-23 11:06:25 +02:00
Olof hagsand
dc36282874
* Fixed instance-id multiple results
...
* Fixed last NACM write paths
2020-04-22 14:00:40 +02:00
Olof hagsand
04017c97ba
Length of xml vector in many structs changed from to since it is a vector size, not byte size. This includes transaction_data_t
2020-04-21 10:17:09 +02:00
Olof hagsand
1dff0e681b
Adapted to CLIgen 4.5 API changes, eg: and
2020-04-20 13:14:40 +02:00
Olof hagsand
0d4263e324
* xml_merge() changed to use 3-value return: 1:OK, 0:Yang failed, -1: Error
...
* `clixon_netconf_error(category, xerr, msg, arg)` removed first argument -> `clixon_netconf_error(xerr, msg, arg)`
* Renamed utility function `clixon_util_insert()` to `clixon_util_xml_mod()` and added merge functionality.
* Fixed: Insertion of subtree leaf nodes were not made in the crrect place, always ended up last regardless of yang spec (if ordered-by system).
2020-04-17 15:47:37 +02:00
Olof hagsand
ba59e22fd7
NACM RFC341 datanode paths, read operation
2020-04-14 11:38:29 +02:00
Olof hagsand
ac5637a46a
Stricter incoming RPC sanity checking, error messages may have changed
2020-04-07 20:54:24 +02:00
Olof hagsand
f9998c441c
Merge branch 'clixon-4.5'
...
C-API changes for CLIgen code:
* `clicon_parse()`: Changed signature due to new cligen error and result handling:
* Removed: `cli_nomatch()`
2020-04-07 18:21:10 +02:00
Olof hagsand
d2531421f2
remove move end transaction
2020-04-03 08:47:48 +02:00
Olof hagsand
662d6b0a3f
Clixon 4.4 three compile-time options: MOVE_TRANS_END for changing transaction-end callbacks; STATE_ORDERED_BY_SYSTEM to make state data system ordered; XML_MERGE_TWO_ROUNDS to improve xml_merge performance.
2020-04-02 14:28:58 +02:00
Olof hagsand
6e2cb1b97d
Adjust to cligen 4.5 update
2020-04-01 09:56:50 +02:00
Olof hagsand
8131bd1834
2020 copyright
2020-03-27 15:42:03 +01:00
Olof hagsand
916c1aabd7
NULL->/ for state callbacks. Clarified socket close error
2020-03-26 20:42:42 +01:00
Olof hagsand
1079fcad47
Added / to api-path to xpath conversion
2020-03-25 22:11:07 +01:00
Olof hagsand
4e578b77ee
exit typo in test
2020-03-24 20:57:41 +01:00
Olof hagsand
a7e0a30938
Fixes for 4.4 release
2020-03-24 16:41:30 +01:00
Olof hagsand
09a2e09848
* New XML parsing API:
...
* `clixon_xml_parse_string()`
* `clixon_xml_parse_file()`
* New JSON parsing API, with same signature as XML parsing:
* `clixon_json_parse_string()`
* `clixon_xml_parse_file()`
* XML YANG binding API have been rearranged as follows:
* `xml_bind_yang_rpc()`
* `xml_bind_yang_rpc_reply()`
* `xml_bind_yang()`
* `xml_bind_yang0()`
2020-03-19 21:32:27 +01:00
Olof hagsand
b726c5008e
renamed xml_spec_populate*() to xml_bind_yang*()
2020-03-17 16:11:58 +01:00
Olof hagsand
c5e2039cac
Removed prefix parameter to xml_new
...
Added xml_new_body() by mgsmith
2020-03-17 11:18:22 +01:00
Olof hagsand
7425a3b520
* C-API change: xml_new() changed from xml_new(name, xp, ys) to xml_new(name, prefix, xp, type)
...
* If you have used, `ys`, add `xml_spec_set(x, ys)` after the statement
* If you have `xml_type_set(x, TYPE)` or `xml_prefix_set(x, PREFIX)` immediately after the statement, you can remove those and set them directly as: `xml_new(name, PREFIX, xp, TYPE)`
2020-03-12 22:29:28 +01:00
Olof hagsand
71efe18f94
NACM datanode write rules have been changed from looking at datastore being chekend (eg running/candidate/startup) to *only* look at running.
...
Fixed: NACM datanode write problem: read/write/exec default rules did not work.
2020-03-12 14:58:30 +01:00
Olof hagsand
adbb683329
C-API:
...
* All uses of `api_path2xpath_cvv()` should be replaced by `api_path2xpath()`
* `api_path2xpath()` added an `xerr` argument.
2020-03-10 22:37:16 +01:00
Olof hagsand
3855508622
stricter xml populate made some cornercase errors appear
2020-03-05 11:56:13 +01:00
Olof hagsand
bab3b5ad56
* Added yang population of data in clicon_rpc_get[_config]
2020-03-04 17:31:52 +01:00
Olof hagsand
cdcffa768f
* Replaced compile option VALIDATE_STATE_XML with runtime option CLICON_VALIDATE_STATE_XML.
...
* XML childvec Compile error
2020-03-04 11:46:30 +01:00
Olof hagsand
0f54899ae4
* Added option: CLICON_CLI_BUF_START and CLICON_CLI_BUF_THRESHOLD so you can change the start and
...
threshold of quadratic and linear growth of CLIgen buffers (cbuf:s)
* Memory footprint
* Do not autopopulate namespace cache, instead use on-demand, see `xml2ns()`.
* Set CBUF start level to 256 (`CLICON_CLI_BUF_START` option)
* Reduced xml child vector default size from 4 to 1 with quadratic growoth to 64K then linear
2020-03-04 11:27:43 +01:00
Olof hagsand
2d521d52c8
* Added clixon-stats in clixon-config.yang for clixon XML and memory statistics.
2020-03-01 10:59:24 +01:00