Commit graph

437 commits

Author SHA1 Message Date
Olof Hagsand
2cadfa167e EPEER 2018-08-27 20:14:27 +00:00
Olof Hagsand
de2d5be6dd export populate 2018-08-27 19:07:52 +00:00
Olof Hagsand
bb6d043d6c deprecated readdir_r with readdir 2018-08-05 16:34:45 +02:00
Olof Hagsand
7564bcd9b2 docker improvement 2018-08-05 12:20:37 +02:00
Olof Hagsand
7c94991fe9 * clixon_restconf and clixon_netconf now take -D <level> as command-line option\
instead of just -D
  * This aligns to clixon_cli and clixon_backend
2018-08-03 13:24:41 +02:00
Olof Hagsand
10ada483e5 Memory error in backend transaction revert 2018-08-01 18:34:44 +02:00
Olof Hagsand
656800cdd3 order backend cmd options; open syslog only if syslog is enabled 2018-08-01 07:13:33 +00:00
Olof Hagsand
0355942740 flush log file 2018-07-30 18:08:34 +00:00
Olof Hagsand
c53f3f2fe3 Added file logging (-l f or -l f<file>) for cases where neither syslog nor stderr is useful\
.
2018-07-30 17:35:45 +00:00
Olof Hagsand
ef9bb742d1 axismap not used 2018-07-30 13:32:45 +00:00
Olof Hagsand
66e232beba moved xpath debug level from 1 to 2 2018-07-30 11:56:48 +00:00
Olof hagsand
e497238b8b restconf dual getopt 2018-07-29 20:54:58 +02:00
Olof hagsand
f9a97c57ca set /www-data access only if sudo 2018-07-29 20:22:20 +02:00
Olof Hagsand
e48f8dd00e clixon_netconf -S is obsolete. Use clixon_netconf -l s instead.
* Unified log handling for all clicon applications using -l e|o|s|f.
  * The options stand for e:stderr, o:stdout, s: syslog, f:file
2018-07-29 19:41:10 +02:00
Olof Hagsand
5164db3603 Added clicon_log_init(.., CLICON_LOG_FILE) option and clicon_log_file() for c\
ases where neither syslog or stderr is useful.
2018-07-26 20:13:02 +02:00
Olof Hagsand
156660419e * Set dir /www-data with www-data as owner, see https://github.com/clicon/clixo\
n/issues/37
2018-07-26 12:54:14 +02:00
Olof Hagsand
968435ec5e internal backend socket family 2018-07-25 12:45:00 +02:00
Olof Hagsand
539a60d613 backend socket options -a -u 2018-07-25 11:40:06 +02:00
Olof hagsand
c6a62b96de sock ipv4 2018-07-24 22:27:52 +02:00
Olof Hagsand
b7eb89962d clixon-sock not mandatory since family may be inet 2018-07-24 18:57:10 +00: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
f1f0dafcbc Merge branch 'develop' of https://github.com/clicon/clixon into develop 2018-07-24 17:44:37 +02:00
Olof Hagsand
4daafd1650
Merge pull request #36 from dcornejo/master
Makefile in util directory didn't use LDFLAGS when building binaries
2018-07-23 17:52:55 +02:00
Dave Cornejo
ea4a5ceda1 Makefile in util directory didn't use LDFLAGS when building binaries
This affects installations where the libraries are installed outside
the normal library search paths (e.g. FreeBSD puts ports libraries
in /usr/local/lib by default, which is not on the default lib path)
2018-07-22 14:21:46 -10:00
Olof hagsand
56e51f1a8d 3.8.0.PRE preparations and
* Obsoleted COMPAT_CLIV and COMPAT_XSL that were optional in 3.7
2018-07-22 21:29:21 +02:00
Olof hagsand
728671944f Merge branch 'develop' for 3.7.0 2018-07-22 20:52:02 +02:00
Olof hagsand
f2d2b0a8c0 readme start nginx 2018-07-22 20:49:16 +02:00
Olof hagsand
9776ee864f * Makefile change: Removed the make include file: clixon.mk and clixon.mk.in
* These generated the Makefile variables: clixon_DBSPECDIR, clixon_SYSCONFDIR, clixon_LOCALSTATEDIR, clixon_LIBDIR, clixon_DATADIR which have been replaced by generic autoconf variables instead.
2018-07-22 18:33:13 +02:00
Olof hagsand
faea537d25 3.7.0 2018-07-22 16:44:58 +02:00
Olof Hagsand
524e7e38f0 docker_example 2018-07-21 17:08:50 +00:00
Olof Hagsand
3a39b0361a docker update 2018-07-21 17:01:56 +00:00
Olof Hagsand
c7aed5e7a7 er image build and changed it to build a single clixon docker\
image which can be found at olofhagsand/clixon
2018-07-21 13:55:21 +00:00
Olof hagsand
deb89600ed memleaks 2018-07-20 23:16:26 +02:00
Olof Hagsand
b894c30bfb obsoleted xpath_each 2018-07-20 15:52:32 +00:00
Olof Hagsand
e79e48b46f xpath unitialized vecs 2018-07-20 10:02:35 +00:00
Olof hagsand
912d1df853 Merge branch 'develop' of https://github.com/clicon/clixon into develop 2018-07-20 10:54:07 +02:00
Olof hagsand
226c59f25a Backward compatible XPATH via symbols, not macros 2018-07-20 10:51:12 +02:00
Olof Hagsand
9245ef222a util warnings 2018-07-19 08:03:07 +00:00
Olof hagsand
c71791f168 Added util directory containing test applications 2018-07-19 09:57:38 +02:00
Olof hagsand
cc6c7ae7a4 started min/max-element 2018-07-18 21:45:13 +02:00
Olof hagsand
0eb9e6c8b2 * Support for YANG conditionals "must" and "when" according to RFC 7950 Sec 7.5.3 and 7.21.5
* XPATH checked at validation time
2018-07-18 09:51:33 +02:00
Olof hagsand
ba7f84afee * Much better support for XPATH 1.0 according to https://www.w3.org/TR/xpath-10 using yacc/lex
* NOTE: Due to an error in the previous implementation, all XPATH calls on the form `x[a=str]` where `str` is a string (not a number or XML symbol), must be changed to: `x[a='str'] or x[a="str"]`
    * This includes all calls to `xpath_vec, xpath_first`, etc.
    * All calls to cli_copy_config in CLI spec files must replace 2nd argument from `x[%s=%s]` to `x[%s='%s']`
  * The old API is stillenabled. To define the new, define XPATH_USE_NEW in include/clixon_custom.h and recompile
2018-07-17 16:59:32 +02:00
Olof hagsand
5d7c4a8d18 Merge branch 'develop' of https://github.com/clicon/clixon into develop 2018-07-16 16:18:36 +02:00
Olof hagsand
bf728b37b8 * Full support of XPATH 1.0 according to https://www.w3.org/TR/xpath-10 using yacc/lex
* The previous XPATH imlementation was very restricted.
  * The only function implemented is the Yang extension "current()". No other functions are implemented (eg last(), count()).
2018-07-16 16:13:31 +02:00
Olof hagsand
0c5ef826d2 clicon group in example clarification 2018-07-13 16:58:19 +02:00
Olof hagsand
d61f86c1e0 restconf www-data group membership clarification 2018-07-13 16:51:51 +02:00
Olof hagsand
719ea93398 Conformance to RFC-8040 operations where prefix was used instead of module name.
* Proper specification for an operation is POST /restconf/operations/<module_name>:<rpc_procedure> HTTP/1.1
  * See https://github.com/clicon/clixon/issues/31, https://github.com/clicon/clixon/pull/32 and https://github.com/clicon/clixon/issues/30
  * Thanks David Cornejo and Dmitry Vakhrushev of Netgate for pointing this out
2018-07-13 16:31:39 +02:00
Olof hagsand
fd19640579 Added systemd example files under example/systemd 2018-07-13 13:13:11 +02:00
Olof hagsand
ee946a00f5 Changed plugin_init() backend return semantics: If returns NULL, _without_ calling clicon_err(), the module is disabled.
Also, example documentation corrected according to:
https://github.com/clicon/clixon/issues/33
2018-07-13 12:44:59 +02:00
Olof hagsand
60ce7b12bd * Prefix of rpc was ignored
* https://github.com/clicon/clixon/issues/30
2018-06-20 20:53:34 +02:00