Commit graph

291 commits

Author SHA1 Message Date
Olof hagsand
1b51c5d7c4 Merge branch 'master' into develop 2018-02-12 09:17:18 +07:00
Olof hagsand
54826065a9 3.5.0 2018-02-12 09:14:01 +07:00
Olof hagsand
6c2327a0b8 Merge branch 'develop' for 3.5.0 2018-02-12 09:11:40 +07:00
Olof hagsand
7431757e53 Preparing for 3.5.0 2018-02-12 09:05:27 +07:00
Olof hagsand
6b0e0a9d18 preparations for 3.5.0 2018-02-11 16:46:10 +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
3ffe68d124
Merge pull request #13 from rbgarga/fix_config_path2
Make default config to respect sysconfdir
2018-02-07 13:31:20 +01:00
Renato Botelho do Couto
d670b6af8a Make default config to respect sysconfdir
Instead of hardcode default config to /etc/clixon.xml, make it to
respect sysconfdir variable. Since autoconf doesn't expand variables on
header substitution it would end up being defined on clixon_config.h as
"${prefix}/etc/clixon.xml" what makes no sense for the header file.

Use eval to expand ${sysconfdir} and make .h file to be defined with
final directory name.
2018-02-07 02:50:02 -06:00
Olof hagsand
eea8cd7660 xml2cvec: range error (eg 1000 for int8) is not treated as error, just log and skip. 2018-02-03 14:56:27 +07:00
Olof hagsand
2bbf0b8a15 xml2json dont put doublequotes on numbers and bool values in json 2018-02-02 16:35:37 +07:00
Olof hagsand
ffe77c9127 restconf performance test 2018-01-27 14:46:53 +01:00
Olof hagsand
f65187df7f code cleanup 2018-01-27 14:28:57 +01:00
Olof hagsand
7db1de19de Merge branch 'develop' of https://github.com/clicon/clixon into develop 2018-01-27 13:33:16 +01:00
Olof hagsand
9914847d6a GET Single element JSON lists use {list:[element]}, not {list:element}. 2018-01-27 13:32:51 +01:00
Olof Hagsand
ed8c371fce
Merge pull request #8 from mgsmith1000/develop
Augment help text for --with-configfile
2018-01-25 22:32:12 +01:00
Olof hagsand
99abac76a7 Fix for cli expansion of two variables 2018-01-25 22:16:44 +01: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
1ee3f7e67e Gnuplot script for transactions per second 2018-01-20 16:19:56 +01:00
Olof hagsand
ad4127541e explaining test 2018-01-20 12:34:52 +01:00
Olof hagsand
f6284ac933 restconf PUT delta 2018-01-17 22:59:54 +01:00
Matthew Smith
d010937ba6 Augment help text for --with-configfile
Include '=FILE' at the end to make correct usage clearer
2018-01-16 15:42:11 -06:00
Olof hagsand
cd33380368 Fixed empty restconf data segv; error restconf quit; etc 2018-01-16 22:25:55 +01:00
Olof Hagsand
4a57b60935
Merge pull request #7 from mgsmith1000/develop
Use default config file when none is provided
2018-01-16 14:43:25 +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
Matthew Smith
6a9697c2ff Use default config file when none is provided
Add config option to set a default config file path. If
none given, the default config file path is /etc/clixon.xml.
2018-01-15 08:58:11 -06: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
cefaf4717f Making the tests self-contained wrt config file and lib.sh creating test scratch dir. 2018-01-07 17:56:33 +01:00
Olof hagsand
b5b96cde0c test: removed exit:s and printed backend start options 2018-01-06 13:42:53 +01: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
071667102c
Merge pull request #6 from rbgarga/patch-1
Do not remove clixonrc on install-include
2018-01-05 16:26:30 +01:00
Renato Botelho
cc9111c8ee
Update Makefile.in 2018-01-05 09:56:10 -02: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
75848a8e30 3.5.0.PRE 2018-01-01 12:34:45 +01:00
Olof hagsand
43c0a8660c Merge branch 'master' into develop 2018-01-01 12:31:29 +01:00
Olof hagsand
b71e10e701 3.4.0 2018-01-01 12:28:58 +01:00
Olof hagsand
38f0b446fa 2017->2018 2018-01-01 12:25:33 +01:00
Olof hagsand
f10e2a89e8 global variables into handle 2017-12-31 20:18:41 +01:00
Olof hagsand
d3460bfc26 Merge branch 'develop' for 3.4.0 2017-12-31 18:30:36 +01:00
Olof hagsand
19301ae240 sort xml children on parsing 2017-12-31 18:25:53 +01:00
Olof hagsand
9681c91681 experimental insert_pos 2017-12-31 18:18:04 +01:00
Olof hagsand
79767045ad mem leaks 2017-12-31 12:05:21 +01:00
Olof hagsand
d8269eee53 details 2017-12-29 18:25:17 +01:00
Olof hagsand
6911f35ec0 ack 2017-12-29 18:15:05 +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
b743b0a080 minor edits 2017-12-22 19:02:20 +01:00
Olof Hagsand
ca16007b66 Clixon_backend now returns -1/255 on error instead of 0 2017-12-12 22:40:28 +01:00