Olof hagsand
85c4782e36
Dedicated xml,json,yang and xsl parser utility programs added
...
Sanity check of stdarg (...) added
Cleanup of error messages.
2018-06-17 19:40:06 +02:00
Olof hagsand
9eff879458
CDATA Encode and decode (parsing) support
2018-06-13 22:55:46 +02:00
Olof hagsand
7e4e1d6deb
* Support for YANG identity and identityref according to RFC 7950 Sec 7.18 and 9.10
...
* Previous support did no validation of values.
* Validation of types and CLI expansion
* Example extended with inclusion of iana-if-type RFC 7224 interface identities
2018-06-03 15:36:05 +02:00
Olof Hagsand
82351afde3
header docs
2018-05-08 21:53:46 +02:00
Olof Hagsand
3df4a8a190
Added keyword arg to find schemanode functions
2018-04-27 19:15:11 +02:00
Olof hagsand
3ed1c98556
* Fixed issue https://github.com/clicon/clixon/issues/18 RPC response issues reported by Stephen Jones at Netgate
2018-04-22 16:53:12 +02:00
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
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
7431757e53
Preparing for 3.5.0
2018-02-12 09:05:27 +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
4b92dbdc10
Optimized search performance for large lists by sorting and binary search
2017-12-27 11:34:47 +01:00
Olof hagsand
056b5c97dd
experimental netconf yang spec
2017-12-08 19:37:09 +01:00
Olof hagsand
e169485985
Datastore cache introduced; Added yang to XML API
2017-12-02 14:49:49 +01:00
Olof Hagsand
2d9e4666eb
restconf dbg
2017-10-08 19:44:00 +02:00
Olof hagsand
ca7b4d3d9e
Migrated to XML configure file.
2017-10-01 12:33:12 +02:00
Olof hagsand
ed1c1e1495
merge from develop
2017-08-01 20:07:51 +02:00
Olof hagsand
fd91bb2933
restconf RPC
2017-07-30 16:16:10 +02:00
Olof hagsand
d0660bf611
Added xpath support for predicate: current(); added by-reference return for schema_nodeid functions; prototype enum2int function
2017-07-30 11:00:02 +02:00
Olof Hagsand
6d401cb9d1
(sub)modules to schema nodeid:s
2017-07-29 11:26:34 +02:00
Olof hagsand
0c065dc026
yang resolve union
2017-07-28 12:38:41 +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
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
1b6c9aacbe
Added validation for leafref forward and nackward references.
2017-07-18 19:56:54 +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
3bd6c1bf32
yang type resolution fix
2017-06-24 21:40:05 +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
c2f52845f8
rm xml index; added xml util functions; further xmldb development
2017-04-23 22:32:53 +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
f6b3e95100
Created xmldb plugin api
2017-04-09 22:53:48 +02:00
Olof hagsand
236b661e43
cleaned up string functions
2017-04-04 17:11:21 +02:00
Olof hagsand
09cbea65c7
replace chunk code
2017-04-03 15:53:57 +02: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
b744a4ad8a
restconf; xmlput extended with api_path; xmldb_put_tree
2016-09-20 21:51:08 +02:00
Olof Hagsand
e3b51c3d32
Merge branch 'master' of https://github.com/clicon/clixon
2016-04-10 20:47:29 +02:00
Olof Hagsand
84e27cc471
yang fn args
2016-04-10 20:46:18 +02:00
Olof hagsand
ee98869137
xml cv
2016-04-06 17:10:45 -07:00
Olof hagsand
741fb97a9f
double predicates in xpath; leaks; grideye debug
2016-03-26 10:47:58 +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
79b77943f9
renamed .h and libs clicon->clixon
2016-02-28 15:27:36 +01:00