Commit graph

1591 commits

Author SHA1 Message Date
Olof hagsand
f4076497f1 Merge branch 'master' of https://github.com/clicon/clixon 2020-12-16 11:37:57 +01:00
Olof hagsand
214f9cbd82 Merge branch 'dcornejo-master' 2020-12-16 11:37:28 +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
53cdfebe11
Merge pull request #161 from s-bauer/patch-1
Fixed example_reset function
2020-12-16 10:03:21 +01:00
Olof hagsand
ff8650c748 restconf-rpc tests 2020-12-15 17:22:07 +01:00
Olof hagsand
475e70d773 * 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 16:04:58 +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
Simon Bauer
638658c63d
Update netconf_rpc.c 2020-12-13 18:07:28 +01:00
Simon Bauer
be329dac6d
Fixed filter namespace in netconf_rpc.o
The "filter" node was not detected when an a namespace was used. The fix is similar to d045e8abce and related to bug #154 #143
2020-12-13 18:05:49 +01:00
Simon Bauer
4ea547ac6f
Fixed example_reset function
The `xmldb_put` is failing due to the `x_spec` field not being set on the xml tree (`xt`) due to no yang spec being passed to the `clixon_xml_parse_string` function.
2020-12-13 17:04:43 +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
e1b94d94d2 * Ensure all fopen check for NULL (not -1)
* Improve test-perf cycles
2020-12-07 13:33:21 +01:00
Olof Hagsand
344dcacf6f * Second fix of https://github.com/clicon/clixon/issues/158
* Actually there is an error of duplicate rpc-replies, but it should be detected in the backend not here
2020-12-06 11:22:26 +00: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
a71e8aaceb * minor edits make datastore=nocache pass tests, and ensure generic copy-config works 2020-12-04 14:47:55 +01:00
Olof Hagsand
99c570e278 test/vagrant fixes 2020-12-03 14:23:59 +00: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
4d5c428b79 * Test fixes
* cligen hist file size test
  * clixon-example.yang update
2020-12-01 22:34:24 +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
1cd6d37fa1 test copy yang from /usr/local/share 2020-12-01 14:07:46 +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
26a4b14060 revert travis 2020-11-30 20:12:07 +01:00
Olof hagsand
a337955847 travis set -eux 2020-11-30 16:22:48 +01:00
Olof hagsand
76474ba151 travis nginx sudo 2020-11-30 13:43:36 +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
66e1d81609 travis again 2020-11-30 13:00:13 +01:00
Olof hagsand
7d55e635cc travis makefile build 2020-11-30 12:42:47 +01:00
Olof hagsand
cb10d4b552 travis test wait 2020-11-30 12:06:46 +01:00
Olof hagsand
cdc851e5ce travis again 2020-11-30 11:16:53 +01:00
Olof hagsand
f34b61cf6a travis again 2020-11-30 10:35:47 +01:00
Olof hagsand
0d3321756d travis again 2020-11-30 10:05:15 +01:00
Olof hagsand
1080ef9d20 try native travis test #8 2020-11-29 23:32:50 +01:00
Olof hagsand
632314364b try native travis test #7 2020-11-29 23:26:24 +01:00
Olof hagsand
3bbdc3cac8 try native travis test #6 2020-11-29 23:18:59 +01:00
Olof hagsand
993c5efe87 try native travis test #5 2020-11-29 23:03:13 +01:00
Olof hagsand
9c82bbd853 try native travis test #4 2020-11-29 22:56:26 +01:00
Olof hagsand
731ea9d21f try native travis test #3 2020-11-29 22:51:55 +01:00
Olof hagsand
b8f987e3f3 try native travis test #2 2020-11-29 22:46:16 +01:00
Olof hagsand
bccad164ae try native travis test 2020-11-29 22:33:15 +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
4f5b0178cc fix test sleep/loop problem 2020-11-24 22:29:48 +01:00