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
b8a408808c
default cligen44 off
2020-05-01 00:44:25 +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
5b57e68e2b
remaining exit in test
2020-04-28 22:40:17 +02:00
Olof hagsand
94cf4a88b3
* Optimizations
...
* Reduced memory for attribute and body objects, see `XML_NEW_DIFFERENTIATE` compile-time option.
* Optimized cbuf handling in parsing and xml2cbuf functions.
* Optimized xml scanner to read strings rather than single chars
* Optimized xml_merge for the case of disjunct trees.
2020-04-28 22:31:58 +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
5be5b02a84
NACM write path delete works as well
2020-04-20 22:29: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
8897df202e
NACM RFC8341 datanode write paths
2020-04-18 17:45:47 +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
f401c07c4b
optimized NACM read paths
2020-04-15 22:02:33 +02:00
Olof hagsand
1fb3dcc686
NACM datnode read path implementation revised
2020-04-15 16:55:22 +02:00
Olof hagsand
ba59e22fd7
NACM RFC341 datanode paths, read operation
2020-04-14 11:38:29 +02:00
Olof hagsand
58c36decef
new file: clixon_xml_bind.[ch]
2020-04-07 20:57:50 +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
78089fbfb1
version string
2020-04-05 14:20:27 +02:00
Olof hagsand
9dae9923a8
4.5.0.PRE
2020-04-05 14:15:22 +02:00
Olof hagsand
af50d74d97
4.4.0 release
2020-04-05 14:07:37 +02:00
Olof hagsand
06ec75e14b
test fixes
2020-04-05 13:51:39 +02:00
Olof hagsand
e6178858f0
In the bbuild system, you dont need to do make install-include for installing include files for compiling. This is now included in the actions done by make install.
2020-04-05 12:25:33 +02:00
Olof Hagsand
7998120ef2
Merge pull request #105 from dcornejo/master
...
Install include files within include target
2020-04-05 12:08:44 +02:00
Dave Cornejo
8e01d7c308
Install include files within include target
2020-04-03 21:30:34 -10: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
5535239363
readd namespace cache
2020-03-30 22:07:46 +02:00
Olof hagsand
0fd71ec372
loosen yang check of keys in lists to not do it in rpc declarations
2020-03-27 15:44:05 +01:00
Olof hagsand
8131bd1834
2020 copyright
2020-03-27 15:42:03 +01:00
Olof hagsand
aa191152cb
minor things for clixon.4.4
2020-03-27 11:20:35 +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
c4b0491754
yang omission mistake
2020-03-19 20:11:34 +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
d36ab2e093
merge
2020-03-16 15:27:59 +01:00
Olof hagsand
1882d431f7
Merge branch 'merge-4.3'
2020-03-16 15:27:23 +01:00
Olof hagsand
2034ce87be
Merge tag '4.3.3' into merge-4.3
2020-03-16 14:13:47 +01:00
Olof hagsand
13e9e31dbf
CHANGELOG
2020-03-13 15:30:02 +01:00
Olof hagsand
e537b1f4c0
CHANGELOG edits for 4.4
2020-03-13 15:18:54 +01:00
Olof hagsand
28fad0303a
* Fixed: Datastore read on startup got fixed default values.
...
* Fixed: Default values only worked on leafs, not typedefs.
2020-03-13 14:49:37 +01:00