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
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
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
2034ce87be
Merge tag '4.3.3' into merge-4.3
2020-03-16 14:13:47 +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
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
78aac85b18
Fixed [Makefile syntax error *** mixed implicit and normal rules #104 ]( https://github.com/clicon/clixon/issues/104 ). Make operator seems not to work on GNU make version < 4.
2020-03-11 13:16:04 +01:00
Olof hagsand
d7972ff311
Moved hello example to [clixon-examples]( https://github.com/clicon/clixon-examples )
2020-03-11 11:41:24 +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
0e94937ccf
Sanity check of mandatory key statement for Yang LISTs.
...
* If fails, exit with error message, eg: `Yang error: Sanity check failed: LIST vsDataContainer lacks key statement which MUST be present (See RFC 7950 Sec 7.8.2)`
* Can be disabled by setting `CLICON_CLICON_YANG_LIST_CHECK` to `false`
2020-03-09 15:48:33 +01:00
Olof hagsand
3febc00a71
Empty values in JSON has changed to comply to RFC 7951
...
* empty values of yang type `empty` are encoded as: `{"x":[null]}`
* empty string values are encoded as: `{"x":""}` (changed from `null` in 4.0 and `[null]` in 4.3)
* empty containers are encoded as: `{"x":{}}`
* empty elements in unknown/anydata/anyxml encoded as: `{"x":{}}` (changed from `{"x":null}`)
2020-03-07 17:15:59 +01:00
Olof hagsand
fdfeec96ec
Recursive (erroneous) Yang specs with recursive grouping/use statement is now fixed: instead of stack overflow, you get an error message and an exit
2020-03-05 20:13:24 +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
250ead517c
CHanged back xvec API to use cxobj ** instead if clixon_xvec since it may be easier for the an end-user.
2020-03-02 10:59:46 +01:00
Olof hagsand
75b20936d3
Moved code from clixon_xml.c to namespace and io functions to reduce size of core xml file
2020-03-02 09:43:57 +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
Olof hagsand
f1ceec689a
Refactoring search code using clixon_xvec data structures
2020-02-28 18:08:10 +01:00
Olof hagsand
760cdda49a
Fixed: Search function checked only own not for config false statement, should have checked all ancestors.
2020-02-28 14:05:56 +01:00
Olof hagsand
451adfaf1f
* Explicit search indexes
...
* Added object-based `clixon_xvec` as a new programming construct for contiguous XML object vectors.
2020-02-28 12:16:16 +01:00
Olof hagsand
a71c256898
* New clixon-config@2020-02-22.yang revision
...
* C-code changes:
- Replaced stream uri:s w constants
- Replaced large debug print code with single clicon_log_xml
- Restconf put and post handling refactored using new parse API
2020-02-24 15:25:06 +01:00
Olof hagsand
83b22e7c2b
2020 copyright statement
2020-02-22 15:54:15 +01:00
Olof hagsand
3b26b22391
internal type/var/prefix name changes for yacc parsing
2020-02-22 11:15:51 +01:00
Olof hagsand
e1bccfa2a7
Sorting error cornercase with invalid two choices, and also sort attributes first.
2020-02-21 16:40:35 +01:00
Olof hagsand
b31297cb21
memory leaks
2020-02-21 10:23:42 +01:00