Olof hagsand
4d419aab54
backend_notify backward compatible
2018-09-30 15:12:36 +02:00
Olof hagsand
98f3cd0e32
* Major rewrite of event streams
...
* If you used old event callbacks API, you need to switch to the streams API
* See clixon_stream.[ch]
* Old streams API which needs to be removed include:
* clicon_log_register_callback()
* subscription_add() --> stream_register()
* backend_notify() and backend_notify_xml() - use stream_notify() instead
* Example uses "NETCONF" stream instead of "ROUTING"
* Added timeout option -t for clixon_netconf - quit after max time.
2018-09-30 14:51:30 +02:00
Olof hagsand
d7fbe75c9e
added clixon_stream.[ch]
2018-09-23 17:50:19 +02:00
Olof hagsand
07542269ec
Event stream discovery support
...
Added config options CLICON_MODULE_LIBRARY_RFC7895, CLICON_STREAM_DISCOVERY_RFC5277, LICON_STREAM_DISCOVERY_RFC804
2018-09-23 17:45:22 +02:00
Olof hagsand
74fc0800ae
* Limited support of RFC 7895 YANG Module Library to list modules:
...
* That is, limited support of: ietf-yang-library.yang
* For example: `<module><name>example</name><revision/></module><module><name>ietf-restconf-monitoring</name><revision>2017-01-26</revision></module>...`
* Comply to RFC 8040 3.5.3.1 rule: api-identifier = [module-name ":"] identifier
* The "module-name" was a no-op before.
* This means that there was no difference between eg: GET /restconf/data/ietf-yang-library:modules-state and GET /restconf/data/XXXX:modules-state
2018-09-22 16:30:58 +02:00
Olof hagsand
0631be19cb
* Notification event streams enhancements
...
* Yang 1.1 notification support
* Event stream discovery support according to RFC 5277 Sec 3.2.5.1 (netconf) and RFC 8040 (restconf)
2018-09-18 22:49:29 +02:00
Olof Hagsand
f37fdb954f
ECONNRESET
2018-08-27 20:20:43 +00:00
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
c1b790e0a5
freebsd
2018-07-23 21:52:48 +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