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
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
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
Olof hagsand
ccadd3f9ea
test: sleep 0.5s; vagrant centos: ipv6 enable
2020-11-24 18:29:04 +01:00
Olof hagsand
8d8a37d18e
test and vagrant fixes
2020-11-24 10:38:58 +01:00
Olof hagsand
ae8e287dd9
test / restconf /vagrant fixes
2020-11-21 16:10:38 +01:00
Olof hagsand
87d9b7776e
test_restconf IPv6 typo
2020-11-21 14:21:59 +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
c0ad6d3f8f
remove global ssl-enable in clixon-restconf.yang
2020-11-18 21:52:47 +01:00
Olof hagsand
9016dde319
Modify tests so they all work with evhtp and backend config, eg that CLICON_RESTCONF_CONFIG is default true.
...
Note that some tests are forced to CLICON_RESTCONF_CONFIG is false due to test complexities.
2020-11-18 13:57:25 +01:00
Olof hagsand
daaf3f17df
revert clixon-err on XML
...
restconf backend config
2020-11-18 13:57:25 +01:00
Olof Hagsand
eb549b4c21
Merge pull request #150 from benavrhm/topic_benavrhm_fixups_20201112
...
Topic benavrhm fixups 20201112
2020-11-17 15:45:08 +01:00
Olof Hagsand
a2bef12ce0
strncpy warnings fixed: stringop-truncation and stringop-overflow
2020-11-17 07:35:50 -06:00