Olof hagsand
eaedb14918
Prepare for 4.9.0 release
2020-12-18 13:54:00 +01:00
Olof hagsand
b8f5d1dcae
* Added CLICON_BACKEND_RESTCONF_PROCESS to clixon-config.yang
2020-12-17 12:13:06 +01:00
Olof hagsand
2b820e153a
* [Delete and show config are oblivious to the leaf value #157 ]( https://github.com/clicon/clixon/issues/157 )
...
* Added equality of values necessary condition in edit-config delete/remove of leafs
2020-12-16 16:03:57 +01:00
Olof hagsand
22adc58187
* New process-control RPC feature in clixon-lib.yang to manage processes
...
* This is an alternative to manage a clixon daemon via sudtemd, containerd or other
* One important special case is starting the clixon-restconf daemon internally
* This is how it works:
* Register a process via `clixon_process_register(h, name, namespace, argv, argc)`
* Use process-control RPC defined in clixon-lib.yang to start/stop/restart or query status on that process
* Example code in the main example
2020-12-15 15:48:42 +01:00
Olof hagsand
8540820698
* New clixon-lib@2020-12-08.yang revision
...
* Added: autocli-op extension (see new features)
* Added: rpc process-control for process/daemon management
* Added enable flag and removed presence in clixon-restconf
2020-12-13 22:19:25 +01:00
Olof hagsand
d6db28c47a
Fixed memory error in RESTCONF PATCH/PUT when accessing top-level data node.
2020-12-09 13:39:38 +01:00
Olof hagsand
b8641f30bd
* More YANG extension functionality,
...
* See [Augment auto-cli for hiding/modifying cli syntax #156 ](https://github.com/clicon/clixon/issues/156 ) and [hiding auto-generated CLI entries #153 ](https://github.com/clicon/clixon/issues/153 )
* Extensions can be used in augmentations
* Extension `autocli-op` has been added to add "hidden" commands in the autocli
* Documentation: https://clixon-docs.readthedocs.io/en/latest/misc.html#extensions
2020-12-08 17:21:37 +01:00
Olof hagsand
3c014184f7
* Fixed: [ Calling copy-config RPC from restconf #158 ]( https://github.com/clicon/clixon/issues/158 )
2020-12-05 17:36:21 +01:00
Olof hagsand
d045e8abce
* Fixed: [namespace prefix nc is not supported in full #154 ]( https://github.com/clicon/clixon/issues/154 )
...
* edit-config "config" parameter did not work with prefix other than null
2020-12-02 14:21:17 +01:00
Olof hagsand
e46f6f4a36
* Error-type changed from protocol to application for data-not-unique netconf/restconf errors
...
* Added new revision of main example yang: `clixon-example@2020-12-01.yang`
* Fixed [YANG: key statement in rpc/notification list #148 ](https://github.com/clicon/clixon/issues/148 )
* Do not check uniqueness among lists without keys
2020-12-01 18:58:20 +01:00
Olof hagsand
6810472a42
* Fixed typo: [False Header Content_type in restconf error #152 ]( https://github.com/clicon/clixon/issues/152 )
2020-12-01 12:58:07 +01:00
Olof hagsand
c32950c8a9
* Added message-id attributes in error and hello replies
...
* See [namespace prefix nc is not supported in full #154 ](https://github.com/clicon/clixon/issues/154 )
* Removed mandatory loading of clixon_restconf.yang
2020-12-01 12:14:30 +01:00
Olof hagsand
19fb063f82
Support for building static lib:
2020-11-29 17:00:35 +01:00
Olof hagsand
542c0495b3
autocli sub fixes
2020-11-28 18:17:32 +01:00
Olof hagsand
75f85e0253
revert yang2cli sub code, use existing yang2cli solution
2020-11-27 15:31:27 +01:00
Olof hagsand
dda3244252
* Auto-cli changed singature of yang2cli()
...
* Auto-cli: create generated CLI for sub-parts of a YANG spec
2020-11-26 17:32:09 +01:00
Olof hagsand
ae8e287dd9
test / restconf /vagrant fixes
2020-11-21 16:10:38 +01:00
Olof hagsand
6eb18da5e9
* Multi-socket feature (eg IPv4/IPv6 http/https) to restconf evhtp
...
* Added by-ref parameter to `ys_cv_validate()` returning which sub-yang spec was validated in a union.
2020-11-15 12:34:40 +01:00
Olof hagsand
c31b1c471b
* Changed first parameter from int fd to FILE *f in the following functions:
...
* clixon_xml_parse_file(), clixon_json_parse_file(), yang_parse_file()
* See [Bytewise read() of files is slow #146 ](https://github.com/clicon/clixon/issues/146 )
2020-11-04 22:21:42 +01:00
Olof hagsand
7a0838da3a
* Restconf configuration has a new configure model: clixon-restconf.yang enabling restconf daemon configuration from datastore instead of from config file.
2020-11-03 21:26:34 +01:00
Olof hagsand
5c5e45d10a
Added new backend plugin: ca_pre-demon called if backend is daemonized just prior to forking.
2020-10-31 17:08:59 +01:00
Olof hagsand
1df420255e
Fixed [Clixon backend generates wrong XML on empty string value #144 ]( https://github.com/clicon/clixon/issues/144 )
2020-10-28 14:28:34 +01:00
Olof hagsand
fab261cb53
* Added XPATH functions position
2020-10-27 09:40:45 +01:00
Olof hagsand
1614bcd19c
Cleanup master for 4.9.0.PRE
2020-10-19 20:06:20 +02:00
Olof hagsand
e176330a74
* Removed string limit on cli prompt and cli mode name
2020-10-18 16:24:11 +02:00
Olof hagsand
a77cd27abb
* Fixed: [namespace prefix nc is not supported]( https://github.com/clicon/clixon/issues/143 )
...
* Added more sanity checks on incoming top-level rpc and hello messages, including verifying top-level namespace
2020-10-17 18:04:46 +02:00
Olof hagsand
46bee9e358
Crash seen with startup mode as running with the XML_DB format being set to JSON. [clixon : 4.7.0] #138
2020-10-17 10:01:04 +02:00
Olof hagsand
3d1ac2692d
Fixed: Performance enhancement of unique list check (of duplicate keys)
2020-10-16 12:48:51 +02:00
Olof hagsand
0b3391836f
* Fixed: Validate/commit error with false positive yang choice changes detected in validation found in ietf-ipfix-psamp.yang.
2020-10-15 21:35:14 +02:00
Olof hagsand
2d56c9674a
* New YANG generated auto-cli feature with syntax modes
...
* The existing autocli does not support modes, complete paths must be given, eg: `set a b c d 42`.
* In the new auto-cli, automatic modes are present at each YANG syntax node level, eg the above can be given as: `edit a b c; set d 4; top`
* The existing CLI API remains, the new API is as follows: `cli_auto_edit()`, `cli_auto_up()`, `cli_auto_top()`, `cli_auto_show()`, `cli_auto_set()`, `cli_auto_merge()`, `cli_auto_create()`, `cli_auto_del()`.
* See `test/test_cli_auto.sh` for an example of the new API, and `apps/cli/cli_auto.c` for the source code of the new callback API.
* Documentation will be appear and full integration with the main example.
* Added inline state field to clixon-example.yang
* Added new clicon_data_cvec_*() API for generic cvec structs
2020-10-14 10:54:10 +02:00
Olof hagsand
469cbe0d64
Fixed: Accepted added subtrees containing lists with duplicate keys
2020-10-08 15:15:22 +02:00
Olof hagsand
8ae647c32b
* More explanatory validation error messages for when and augments error messages.
...
* Example: error-message: `Mandatory variable` -> `Mandatory variable of edit-config in module ietf-netconf`.
2020-10-07 20:57:49 +02:00
Olof hagsand
6f2c4a076d
* Configuration directory
...
* A new configuration option `CLICON_CONFIGDIR` has been added for loading of extra config files
* If not given, only the main configfile is loaded.
* If given, and if the directory exists, the files in this directory will be loaded alphabetically AFTER the main config file in the following way:
* leaf values are overwritten
* leaf-list values are appended
* You can override file setting with `-E <dir>` command-line option.
* New clixon-config@2020-10-01.yang revision
* Added option for configuration directory: `CLICON_CONFIGDIR`
2020-10-01 11:04:25 +02:00
Olof hagsand
b3545871c0
* Added stricter check on schema-node identifier checking, such as for augments.
...
* These checks are now made at YANG loading time
2020-09-29 20:53:24 +02:00
Olof hagsand
9984cfa1c8
Fixed: [default state data returned with get-config]( https://github.com/clicon/clixon/issues/140 )
...
* Generalized default code for both config and state
2020-09-27 17:14:28 +02:00
Olof hagsand
da54dae396
Added sanity check that a yang module name matches the filename
2020-09-25 13:39:13 +02:00
Olof hagsand
21ac47915b
More XPath function support
...
* `count`, `name`, `contains`, `not`, as defined in [xpath 1.0](https://www.w3.org/TR/xpath-10 )
* `deref`, `derived-from` and `derived-from-or-self` from RFC7950 Section 10.
* in particular in augment/when statements
* Improved error handling
* Verification of XPath functions is done at startup when yang modules are loaded, not when XPaths are evaluated.
* Separation of "not found" and "not implemented" XPath functions
* Both give a fatal error (backend does not start).
2020-09-25 11:52:06 +02:00
Olof hagsand
c616aa1569
Added support for XPATH functions:
...
* `contains`,
* `derived-from` and `derived-from-or-self`
* in particular in augment/when statements as shown in eg RFC 7950.
2020-09-22 22:40:42 +02:00
Olof hagsand
41ef682bdd
4.8.0.PRE
2020-09-15 12:12:26 +02:00
Olof hagsand
bf102ca575
4.7.0
2020-09-14 11:48:51 +02:00
Olof hagsand
1d333e39d1
4.7 preparations
2020-09-14 09:21:54 +02:00
Olof hagsand
6c22935463
code comments
2020-09-12 13:04:59 +02:00
Olof hagsand
27bb0a1d2b
* Fixed: Restconf failed put/post could leave residue in candidate causing errors in next put/post
...
* Added -v option for backend plugins to generate validation error
2020-09-10 18:09:17 +02:00
Olof hagsand
a61bdffbab
evhtp mem leak, debug 1->2
2020-09-10 18:06:44 +02:00
Olof hagsand
8f8b49331f
Debug messages
...
* Added cli command debug printf on debug level 1
* Moved all parse debug printfs to level 3
2020-09-09 11:12:14 +02:00
Olof hagsand
5b5dce7e39
Fixed: [clixon_netconf does not respond to hello #136 ]( https://github.com/clicon/clixon/issues/136 )
...
* The error showed only when CLICON_MODULE_LIBRARY_RFC7895 was disabled.
2020-09-08 15:59:12 +02:00
Olof hagsand
1ef3c0db7a
Fixed: Do not check min/max constraints on state data in config validate code
2020-09-08 13:25:28 +02:00
Olof hagsand
a61da8715d
Fixed: [min-elements attribute prevents from deleting list entries #133 ]( https://github.com/clicon/clixon/issues/133 )
2020-09-08 10:47:43 +02:00
Olof hagsand
5ee6283526
Fixed: [xmldb_get0 returns invalid candidate on startup transaction callbacks #126 ]( https://github.com/clicon/clixon/issues/126 ). Always clear candidate-db before db initialization.
2020-09-07 15:09:19 +02:00
Olof hagsand
ee057d5244
* Added -r command-line option to restconf daemon to NOT lower privileges to wwwuser if started from root.
2020-09-04 16:25:49 +02:00