Olof Hagsand
968435ec5e
internal backend socket family
2018-07-25 12:45:00 +02:00
Olof Hagsand
666d74bf1b
Added -l option for clixon_backend for directing syslog to stderr or stdout i\
...
f running in foreground
2018-07-24 17:59:17 +02:00
Olof hagsand
5cabc11bfb
* Added -U <user> command line to clixon_cli and clixon_netconf for NACM pseudo-user tests
2018-06-07 21:34:52 +02:00
Olof hagsand
602f5034b4
NACM external file support. CLICON_NACM_FILE config option, if CLICON_NACM_MODE is external
2018-04-23 23:09:55 +02:00
Olof hagsand
7650803475
* Experimental NACM RFC8341 Network Configuration Access Control Model.
...
* CLICON_NACM_MODE config option, default is disabled.
* Added username attribute to all rpc:s from frontend to backend
* Added NACM backend module in example
2018-04-19 22:44:15 +02:00
Olof hagsand
d541c49c6f
Plugin RPC callback interface have been unified between backend, netconf and restconf.
...
* Backend RPC register callback function (Netconf RPC or restconf operation POST) has been changed from: `backend_rpc_cb_register()` to `rpc_callback_register()`
* Backend RPC callback signature has been changed from: `int cb(clicon_handle h, cxobj *xe, struct client_entry *ce, cbuf *cbret, void *arg)` has been changed to : `int cb(clicon_handle h, cxobj *xe, struct client_entry *ce, cbuf *cbret, void *arg)`
* Frontend netconf and restconf plugins can register callbacks as well with same API as backends.
2018-04-07 18:20:33 +02:00
Olof hagsand
b9a54f07f3
Restructure and more generic plugin API for backend
2018-04-02 19:27:57 +02: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
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
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
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
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
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
496d676ad3
Backend daemon startup modes
2017-11-19 11:52:30 +01:00
Olof hagsand
4b0c060667
Added option CLICON_CLISPEC_FILE; Replaced cli_ functiuons with cligen_
2017-10-17 19:35:46 +02:00
Olof hagsand
5ae1aeb427
Added support for YANG anyxml; Yang union CLI generation and validation; Removed yang string escaping
2017-07-27 11:54:28 +02:00
Olof hagsand
4e986d6660
Added new backend plugin callback: plugin_statedata() for getting state data; Added generic xml_merge() function.
2017-07-05 12:30:42 +02:00
Olof hagsand
abd3eee17d
Generic map_str2int generic mapping tables; Removed vector return values from xmldb_get()
2017-06-21 21:02:09 +02:00
Olof hagsand
3453dae0db
- removed api_path extension from internal netconf
...
- Strings in xmldb_put not properly encoded, eg eth/0 became eth.00000
2017-05-30 21:57:06 +02:00
Olof hagsand
4bcb966dac
xmldb_init -> xmldb_create
2017-05-02 22:29:56 +02:00
Olof hagsand
ee9b74d735
formalizing xmldb api
2017-04-16 19:06:19 +02:00
Olof hagsand
540cd96e74
datastore handles
2017-04-15 19:42:35 +02:00
Olof hagsand
d26a801bc0
Added connect/disconnect/getopt/setopt and handle to xmldb API; Added datastore 'text'; Moved apps/dbctrl to datastore/
2017-04-15 13:53:58 +02:00
Olof hagsand
2758a30bb7
Configure (autoconf) changes: Removed libcurl dependency, Disable restconf and disable restconf options. Added empty text datastore
2017-04-11 20:15:43 +02:00
Olof hagsand
f6b3e95100
Created xmldb plugin api
2017-04-09 22:53:48 +02:00
Olof hagsand
4169bd8d30
Ongoing: xmldb datastore plugin framework
2017-04-08 20:39:04 +02:00
Olof hagsand
c59869a44e
Alternative yang spec option -y added to all applications
2017-04-04 21:37:42 +02:00
Olof hagsand
236b661e43
cleaned up string functions
2017-04-04 17:11:21 +02:00
Olof hagsand
2fcefda831
Change internal protocol from clicon_proto.h to netconf.
2017-03-25 11:10:50 +01:00
Olof hagsand
4461cc9598
Netconf startup configuration support. Set CLICON_USE_STARTUP_CONFIG to 1 to
...
enable. Eg, if backend_main is started with -CIr startup will be copied to
running.
Added .. as valid step in xpath
2017-02-10 11:54:34 +01:00
Olof hagsand
2db346abc8
Added cli multiple callback and expand support.
2017-01-15 20:22:51 +01:00
Olof hagsand
bc2b606167
dual license
2016-12-30 16:14:48 +01:00
Olof Hagsand
5c938febf4
xpath multiple match, int main, etc
2016-11-17 21:25:49 +01:00
Olof hagsand
6169ea6bed
incremental debuggung
2016-03-14 21:22:37 +01:00
Olof hagsand
0a812696c2
xmldb
2016-03-07 20:55:55 +01:00
Olof hagsand
cf3cf351c8
xmldb api cleanup
2016-03-02 09:38:52 +01:00
Olof Hagsand
79b77943f9
renamed .h and libs clicon->clixon
2016-02-28 15:27:36 +01:00
Olof hagsand
5a45eca301
file rearrangement
2016-02-26 16:05:34 +01:00
Olof hagsand
d6e393ea58
Inital commit
2016-02-22 22:17:30 +01:00