Olof hagsand
a5f32fbedf
* Restconf evhtp using network namespaces implemented
2021-01-26 17:33:24 +01:00
Olof hagsand
3fe218da2e
New clixon_client API for external access
2021-01-22 14:50:07 +01:00
Olof hagsand
94c6bd9c49
Added proc socket and text proto rpc
2021-01-22 14:41:47 +01:00
Olof hagsand
68371d4fc5
upgrade copyright, aux tools, etc
2021-01-21 12:23:46 +01:00
Olof hagsand
f1449a2542
test error
2021-01-15 14:21:06 +01:00
Olof hagsand
f0325d989e
Fixed: [Behaviour of Empty LIST Input in RESTCONF JSON #166 ]( https://github.com/clicon/clixon/issues/166 )
2021-01-15 13:50:05 +01:00
Olof hagsand
96b50b88e8
Copyright 2021
2021-01-13 14:40:34 +01:00
Olof hagsand
5337619af8
Merge branch 'fix-netconf-startup-validate' of https://github.com/baruchsiach/clixon into baruchsiach-fix-netconf-startup-validate
2021-01-13 11:15:10 +01:00
Olof hagsand
d914495ab4
Fixed a bug where clicon_debug_init interfered with clicon_log_file
2021-01-13 11:11:50 +01:00
Olof hagsand
c269d094e4
* Experimental IPC API, clixon_client, to support a loose integration model
...
* Many systems using other tools employ such a model, and this API is an effort to make a usage of clixon easier
* see https://clixon-docs.readthedocs.io/en/latest/overview.html#loose-integration
* This is work-in-progress and is expected to change
2021-01-12 14:08:35 +01:00
Olof hagsand
2a392ca0e9
* rpc msg C API rearranged to separate socket/connect from connect
2021-01-12 14:03:07 +01:00
Olof hagsand
8cde7a4ded
* Handling empty netconf XML messages "]]>]]>" is changed from being accepted to return an error.
...
* Netconf split lines input (input fragments) fixed
* Netconf input split on several lines, eg using stdin: "<a>\nfoo</a>]]>]]>" could under some circumstances be split so that only "</a>]]>]]>" be properly processed. This could also happen to a socket receiving a sub-string and then after a delay receive the rest.
* Fixed by storing residue and add that to the input string if later input is received on the same socket.
* Use [https://github.com/clicon/libevhtp ](https://github.com/clicon/libevhtp ) instead of [https://github.com/criticalstack/libevhtp ](https://github.com/criticalstack/libevhtp ) as a source of the evhtp source
2021-01-07 16:57:47 +01:00
Olof hagsand
cf63d0f761
* New clixon-config@2020-12-30.yang revision
...
* New clixon-lib@2020-12-30.yang revision
* Added callback to process-control RPC feature in clixon-lib.yang to manage processes
* Changed behavior of starting restconf internally using `CLICON_BACKEND_RESTCONF_PROCESS` monitoring changes in enable flag, not only the RPC.
* Changed: RPC process-control output parameter status to pid
2021-01-02 17:27:44 +01:00
Olof hagsand
7459925bd0
Limited fuzz by AFL committed, see [fuzz/README.md](fuzz/README.md) for details
2020-12-29 18:29:06 +01:00
Olof hagsand
7f49c13eba
test restconf bugfix, added xml_nsctx_cbuf
2020-12-29 15:57:21 +01:00
Olof hagsand
96ab7292b9
* Added cvv_i output parameter to api_path_fmt2api_path() to see how many cvv entries were used
...
* CLIspec dbxml API: Ability to specify deletion of _any_ vs _specific_ entry.
2020-12-29 11:14:34 +01:00
Baruch Siach
0289569586
datastore_read: bind yang when reading from cache
...
The cached xml version might be missing the yang information. This
breaks netconf validation of the running database:
yangcli admin@192.168.0.1> validate source=startup
RPC Error Reply 3 for session 3:
rpc-reply {
rpc-error {
error-type application
error-tag operation-failed
error-severity error
error-message 'No spec found radio-dn'
}
}
Make sure that the cached database respects the yb parameter.
2020-12-28 17:23:16 +02:00
Olof hagsand
906d8bc63c
[Presence container configs not displayed in 'show config set' #164 ]( https://github.com/clicon/clixon/issues/164 )
2020-12-28 14:52:56 +01:00
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
aefc84892b
Merge branch 'fix-xpath-select' of https://github.com/baruchsiach/clixon into baruchsiach-fix-xpath-select
2020-12-16 11:43:45 +01:00
Olof hagsand
07f96934b3
need to check grand-parent exists
2020-12-16 11:37:02 +01:00
Olof hagsand
0e1ae1deab
Merge branch 'master' of https://github.com/dcornejo/clixon into dcornejo-master
2020-12-16 10:18:37 +01:00
Olof hagsand
ff8650c748
restconf-rpc tests
2020-12-15 17:22:07 +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
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
e1b94d94d2
* Ensure all fopen check for NULL (not -1)
...
* Improve test-perf cycles
2020-12-07 13:33:21 +01:00
Olof hagsand
a71e8aaceb
* minor edits make datastore=nocache pass tests, and ensure generic copy-config works
2020-12-04 14:47:55 +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
2b9f19a19f
test rpc keyless wrong order
2020-12-02 09:53:33 +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
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
Baruch Siach
1a60d581c9
Encode xpath select values with yang
...
Search key values might contain xml meta-characters. These break
clixon_xml_parse_string() unless properly encoded.
2020-11-30 14:34:58 +02:00
Olof hagsand
7d55e635cc
travis makefile build
2020-11-30 12:42:47 +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
f69daf773e
more test and vagrant for nginx checks
2020-11-25 19:48:42 +01:00
Olof hagsand
0b948248e4
* Reworked evhtp restconf config to only use clixon-restconf.yang and marked local restconf options as obsolete
...
* Extended clicon-config with clixon-restconf for local config
* Removed obsolete CLICON_TRANSACTION_MOD
2020-11-21 13:16:29 +01:00
Olof hagsand
3d10c3bfcb
evhtp debugging: memleaks, test errors, etc
2020-11-19 18:06:20 +01:00
Olof hagsand
daaf3f17df
revert clixon-err on XML
...
restconf backend config
2020-11-18 13:57:25 +01:00
Olof Hagsand
a2bef12ce0
strncpy warnings fixed: stringop-truncation and stringop-overflow
2020-11-17 07:35:50 -06:00
Olof hagsand
4eee00101c
Disabling IPv6 per default due to failing docker tests
2020-11-15 18:16:06 +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
707685f5ff
minor alignment
2020-11-15 05:13:05 -06:00
Dave Cornejo
1af53a32ce
make xml2xpath1() less picky
...
this function would never traverse up an XML tree from a node that
was not bound to a YANG model. this prevents the function from
working in some cases where it could.
2020-11-13 11:41:31 -05:00
Olof hagsand
6ecb0d5232
tests for restconf backend configure
...
rm client-cert-ca
2020-11-06 11:41:59 +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