Olof hagsand
79e3fbdaa9
* Restructure and more generic plugin API (cli,backend,restconf,netconf)
...
* For preparation for authorization RFC8341
* Plugins add clixon_plugin_init() and api struct for function pointers, eg:
```
static const struct clixon_plugin_api api = {
"example",
clixon_plugin_init,
...
}
clixon_plugin_api *clixon_plugin_init(clicon_handle h)
{
return (void*)&api;
}
```
* Moved specific plugin functions from apps/ to generic functions in lib/
* New generic plugin load function: clixon_plugins_load()
* Removed client-local netconf plugins netconf_plugin_callbacks()
* This was code used before generic YANG rpc calls
* Added username to clixon handle:
* clicon_username_get() / clicon_username_set()
* Added authentication plugin callback
* Removed some obscure plugin code that seem not to be used (please report if needed!)
* CLI parse hook
* CLICON_FIND_PLUGIN
* clicon_valcb()
* Removed username to rpc calls (added below)
2018-04-02 10:38:53 +02:00
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
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
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
cd33380368
Fixed empty restconf data segv; error restconf quit; etc
2018-01-16 22:25:55 +01:00
Olof hagsand
38f0b446fa
2017->2018
2018-01-01 12:25:33 +01:00
Olof Hagsand
4742fde1e9
XML creation and parse API changes
2017-12-09 14:14:40 +01:00
Olof hagsand
e169485985
Datastore cache introduced; Added yang to XML API
2017-12-02 14:49:49 +01:00
Olof hagsand
96bc17bfa6
describe startup modes in faq
2017-11-19 18:27:25 +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
4b0c060667
Added option CLICON_CLISPEC_FILE; Replaced cli_ functiuons with cligen_
2017-10-17 19:35:46 +02:00
Olof hagsand
4fb3838021
Example readme
2017-10-12 21:28:06 +02:00
Olof hagsand
5cea5fa768
xml config default; api_path_fmt2api_path cleanup
2017-10-03 22:41:12 +02:00
Olof hagsand
ca7b4d3d9e
Migrated to XML configure file.
2017-10-01 12:33:12 +02:00
Olof hagsand
8494d29d6b
config file has .xml ending, yang/clixon-config.yang is used as
...
model for an xml-based configuration file
2017-09-25 22:05:26 +02:00
Olof hagsand
e45e8da6d7
Added experimental reading of yang and xml-based config file.
2017-09-24 22:01:28 +02:00
Olof hagsand
229ddcf5cc
non-line scrolling mode in getline
2017-09-24 16:58:27 +02:00
Olof hagsand
d8065551b6
cli_copy config bug; allow non-api-path expand_dbvar()
2017-08-03 22:35:02 +02:00
Olof hagsand
e5b625e722
Added support for yang presence and no-presence containers.
2017-07-23 12:59:02 +02:00
Olof hagsand
e56cf607a3
Added YANG RPC support, with example rpc documentation and testcase (test7.sh); Extended example with ietf-routing (not only ietf-ip).
2017-07-20 10:54:31 +02:00
Olof hagsand
96f341d8fc
state doc
2017-07-08 11:11:46 +02:00
Olof hagsand
93eaff60cd
state doc
2017-07-08 10:58:33 +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
43c39160a5
Restricted yang (sub)module file match to match RFC6020 exactly
2017-06-25 17:48:21 +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
b99ce2c499
docs
2017-05-07 18:11:20 +02:00
Olof hagsand
a18f66b6d0
Preparing for 3.3.0
2017-05-07 17:38:43 +02:00
Olof hagsand
69ff0e3891
Refined netconf none semantics in tests and text datastore
2017-05-01 12:46:09 +02:00
Olof hagsand
31c45e5c62
removed cli single callback arg code
2017-04-06 10:26:10 +02:00
Olof hagsand
236b661e43
cleaned up string functions
2017-04-04 17:11:21 +02:00
Olof hagsand
19813a4d9c
restconf post/put/head/patch, memtests
2017-03-26 15:14:37 +02:00
Olof hagsand
eec5896797
internal netconf mods
2017-03-25 18:24:52 +01: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
7f0b9909b3
Library functions in clixon_cli_api.h (e.g cli_commit) is rewritten in new
...
for (eg cli_commitv). See clixon_cli_api.h for new names.
Use restconf format for internal xmldb keys. Eg /a/b=3,4
Changed example to use multiple cli callbacks
2017-01-31 22:36:14 +01:00
Olof hagsand
bc2b606167
dual license
2016-12-30 16:14:48 +01:00
Olof hagsand
ec9502fd66
order lists according to yang order
2016-12-27 17:31:30 +01:00
Olof hagsand
887d43428b
json parser
2016-08-15 09:29:22 +02:00
Olof Hagsand
dfa30aa39c
xml_print
2016-04-17 17:52:48 +02: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
ca18b7f49e
Merge branch 'master' of https://github.com/clicon/clixon
2016-03-02 09:40:37 +01:00
Olof hagsand
cf3cf351c8
xmldb api cleanup
2016-03-02 09:38:52 +01:00
Olof Hagsand
9466bab635
docker
2016-02-28 17:23:55 +01:00
Olof Hagsand
caccfe8f2d
distclean
2016-02-28 16:46:49 +01:00
Olof Hagsand
79b77943f9
renamed .h and libs clicon->clixon
2016-02-28 15:27:36 +01:00
Olof Hagsand
eb93d82caa
docker support
2016-02-26 19:47:30 +01:00