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
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
278f3de840
Adding username to all restconf backend calls
2018-02-13 09:17:32 +07:00
Olof hagsand
83cb696d0e
Corrected "No yang spec" printed on tty on leafref CLI usage
2018-01-06 13:40:14 +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
4b0c060667
Added option CLICON_CLISPEC_FILE; Replaced cli_ functiuons with cligen_
2017-10-17 19:35:46 +02:00
Olof hagsand
becddfab41
Added format string to clicon_rpc_generate_error() and used that to make better backend error messages
2017-09-27 18:10:13 +02:00
Olof hagsand
2d65fdbe93
Changed top-level netconf get-config and get to return <data>..</data> instead of <data><config>...</config></data> to comply to the RFC.
2017-07-23 14:45: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
540cd96e74
datastore handles
2017-04-15 19:42:35 +02:00
Olof hagsand
f6b3e95100
Created xmldb plugin api
2017-04-09 22:53:48 +02:00
Olof hagsand
31c45e5c62
removed cli single callback arg code
2017-04-06 10:26:10 +02:00
Olof Hagsand
18093441a8
revert xsl for . and ..
2017-04-03 15:21:13 +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
319e7707d8
Empty yang type. Relaxed yang types for unions, eg two strings with different length.
2017-01-09 21:26:50 +01:00
Olof hagsand
bc2b606167
dual license
2016-12-30 16:14:48 +01:00
Olof hagsand
b744a4ad8a
restconf; xmlput extended with api_path; xmldb_put_tree
2016-09-20 21:51:08 +02:00
Olof Hagsand
8bf95cab31
log debug
2016-07-18 16:14:16 +02:00
Olof hagsand
741fb97a9f
double predicates in xpath; leaks; grideye debug
2016-03-26 10:47:58 +01:00
Olof hagsand
c1c1670a74
getting legacy grideye application to work on clixon
2016-03-20 22:25:42 +01:00
Olof hagsand
6169ea6bed
incremental debuggung
2016-03-14 21:22:37 +01:00
Olof hagsand
6d8acdea9f
truncate helptext
2016-03-09 21:01:57 +01:00
Olof hagsand
0a812696c2
xmldb
2016-03-07 20:55:55 +01:00
Olof Hagsand
79b77943f9
renamed .h and libs clicon->clixon
2016-02-28 15:27:36 +01:00