Olof hagsand
bfce20c760
* Added Clixon Restconf library
...
* Builds and installs a new restconf library: libclixon_restconf.so and clixon_restconf.h
* The restconf library can be included by a restconf plugin.
* Example code in example/Makefile.in and example/restconf_lib.c
* Authorization
* Example extended with authorization
* Test added with http basic authorization (test/test_auth.sh)
* Documentation in FAQ.md
* README.md extended with new yang, netconf, restconf, datastore, and auth sections.
2018-03-25 15:47:27 +02:00
Olof hagsand
835674bbe0
\r\n in restconf code and tests
2018-03-22 21:33:41 +01:00
Olof hagsand
efa72e9e6f
* Proper RFC 6241 Netconf error handling
...
* New functions added in clixon_netconf_lib.[ch]
* Datastore code modified for RFC 6241
* Remaining: validate, generic restconf and netconf code
2018-03-18 18:06:02 +00:00
Olof hagsand
9b951b5ce6
restconf json err return: too many {}
2018-03-13 23:17:36 +00:00
Olof hagsand
03be9c0567
Restconf error handling
2018-03-11 22:49:10 +01:00
Olof hagsand
859d424ea3
(Work in progress) Restconf error handling for get and edit operations
2018-03-11 20:17:11 +01:00
Olof hagsand
0a11445963
cprintf sanity checks
2018-03-10 12:35:11 +01:00
Olof hagsand
11e2b91a05
Experimental: Added CLICON_TRANSACTION_MOD configurqation option. If set,
...
modifications in validation and commit callbacks are written back
into the datastore.
2018-03-07 22:33:47 +01:00
Olof Hagsand
ac7480b9f5
* Invalid key to api_path2xml gives warning instead of error and quit.
2018-03-05 20:00:10 +00:00
Olof hagsand
990700b68d
https://github.com/clicon/clixon/issues/16
...
Added restconf/operations get, see RFC8040 Sec 3.3.2:
2018-03-04 21:24:38 +01:00
Olof hagsand
35b142cf4d
* Added Yang "extension" statement. This includes parsing unknown
...
statements and identifying them as extensions or not. However,
semantics for specific extensions must still be added.
* Renamed ytype_id and ytype_prefix to yarg_id and yarg_prefix, respectively
* Added cli_show_version()
2018-02-25 20:01:53 +01:00
Olof hagsand
2acacbf087
Use <config> instead of <data> when save/load configuration
2018-02-15 09:29:10 +07:00
Olof hagsand
278f3de840
Adding username to all restconf backend calls
2018-02-13 09:17:32 +07:00
Olof hagsand
7431757e53
Preparing for 3.5.0
2018-02-12 09:05:27 +07:00
Olof hagsand
55010e7541
restconf credentials plugin
2018-02-09 12:18:39 +07:00
Olof hagsand
e40d785d5c
* Added a "user" parameter to plugin_credentials() restconf callback.
...
To enable authentication and in preparation for access control a la RFC 6536.
* yang string length "max" keyword set to MAXPATHLEN
2018-02-08 15:24:05 +07:00
Olof hagsand
6c7554de25
RESTCONF -Candidate Roll Back #
2018-01-23 22:09:15 +01:00
Olof hagsand
26667b2c2f
Restconf: get well-known, top-level resource, yang library version, put whole datastore,
...
check for different keys in put lists.
2018-01-21 14:31:53 +01:00
Olof hagsand
f6284ac933
restconf PUT delta
2018-01-17 22:59:54 +01:00
Olof hagsand
cd33380368
Fixed empty restconf data segv; error restconf quit; etc
2018-01-16 22:25:55 +01:00
Olof hagsand
e3fd1f2873
syntax error
2018-01-15 22:49:44 +01:00
Olof Hagsand
73074bf7a8
json vector
2018-01-15 21:36:42 +00:00
Olof hagsand
363bd5d19d
New configuration option: CLICON_RESTCONF_PRETTY
...
Changed RESTCONF GET to return object referenced. ie, GET /restconf/data/X returns X.
2018-01-07 18:01:42 +01:00
Olof hagsand
3758c8dab4
* The following backward compatible options to configure have been obsoleted. If you havent already migrated this code you must do this now.
...
* Backend startup modes prior to 3.3.3. As enabled with `configure --with-startup-compat`. Configure option CLICON_USE_STARTUP_CONFIG is also obsoleted.
* Configuration files (non-XML) prior to 3.3.3. As enabled with `configure --with-config-compat`. The template clicon.conf.cpp files are also removed.
* Clixon XML C-lib prior to 3.4.0. As enabled with `configure --with-xml-compat`
2018-01-01 14:48:57 +01:00
Olof hagsand
38f0b446fa
2017->2018
2018-01-01 12:25:33 +01:00
Olof hagsand
19301ae240
sort xml children on parsing
2017-12-31 18:25:53 +01:00
Olof hagsand
79767045ad
mem leaks
2017-12-31 12:05:21 +01:00
Olof hagsand
174cfc02c6
Added CLICON_XMLDB_PRETTY option. If set to false, XML database files will be more compact.
...
Added CLICON_XMLDB_FORMAT option. Default is "xml". If set to "json", XML database files uses JSON format.
Escape " in JSON names and strings and values
Optimized search performance for large lists by sorting and binary search.
2017-12-29 18:09:26 +01:00
Olof hagsand
4b92dbdc10
Optimized search performance for large lists by sorting and binary search
2017-12-27 11:34:47 +01:00
Olof Hagsand
ca16007b66
Clixon_backend now returns -1/255 on error instead of 0
2017-12-12 22:40:28 +01:00
Olof Hagsand
dd7f790193
Fixed bug that deletes running on startup if backup started with -m running
2017-12-10 15:29:22 +01:00
Olof Hagsand
0076a8b838
leafref bug
2017-12-09 20:48:29 +01:00
Olof Hagsand
4742fde1e9
XML creation and parse API changes
2017-12-09 14:14:40 +01:00
Olof hagsand
056b5c97dd
experimental netconf yang spec
2017-12-08 19:37:09 +01:00
Olof hagsand
4cb00bedfa
optimization
2017-12-03 20:22:05 +01:00
Olof hagsand
e169485985
Datastore cache introduced; Added yang to XML API
2017-12-02 14:49:49 +01:00
Olof hagsand
2ebd89d636
Added --with-config-compat and --with-startup-compat to configure
2017-11-23 20:51:33 +01:00
Olof hagsand
96a7ec86f0
Fixed DESTDIR make install/uninstall and break immediately on errors
2017-11-22 22:21:12 +01:00
Olof Hagsand
3d3ecd4e4d
startup_mode: did not clear running
2017-11-20 22:25:55 +01:00
Olof hagsand
013a0dba14
editt changelog
2017-11-19 19:11:34 +01:00
Olof hagsand
548ffd2da6
Disabled key-value datastore; Removed mandatory requirements for BACKEND, NETCONF, RESTCONF and CLI dirs
2017-11-19 18:04:23 +01:00
Olof hagsand
8b6bb6ff50
restconf bugs and increased restconf testing
2017-11-19 12:40:32 +01:00
Olof hagsand
496d676ad3
Backend daemon startup modes
2017-11-19 11:52:30 +01:00
Olof hagsand
61551b07d6
When user callbacks p_statedata() clixon_backend nolonger silently exit
2017-11-14 23:14:51 +01:00
Olof Hagsand
3c41a79102
hen user callbacks such as statedata() call returns -1, clixon_backend no
...
longer silently exits. Instead a log is printed and an RPC error is returned.
2017-11-12 15:50:22 +00:00
Olof hagsand
d9c126eed0
en user callbacks such as statedata() call returns -1, clixon_backend no
...
longer silently exits. Instead a log is printed and an RPC error is returned.
2017-11-12 16:48:48 +01:00
Olof Hagsand
145f6acd2e
More than one restconf input arg
2017-10-29 17:03:09 +01:00
Olof Hagsand
e8a8d6e871
Restconf: http cookie sent as attribute in rpc restconf_post operations to backend.
2017-10-25 21:09:04 +02:00
Olof Hagsand
178a09cf3b
Removed unused functions: cli_exec, cli_ptpush, cli_ptpop
2017-10-21 19:15:24 +02:00
Olof hagsand
4b0c060667
Added option CLICON_CLISPEC_FILE; Replaced cli_ functiuons with cligen_
2017-10-17 19:35:46 +02:00