Olof hagsand
6be4b18391
Fixed: [Type / Endianism problem in yang_parse_file #128 ]( https://github.com/clicon/clixon/issues/128 )
2020-08-21 13:33:38 +02:00
Olof hagsand
0e4df0e8fc
Added options for Restconf evhtp setting default bind socket address and ports CLICON_RESTCONF_IPV4_ADDR, CLICON_RESTCONF_IPV6_ADDR, CLICON_RESTCONF_HTTP_PORT, CLICON_RESTCONF_HTTPS_PORT
2020-08-21 13:13:20 +02:00
Olof hagsand
25f67d1eb9
Fixed: [(CLI) the description of a used grouping is shown instead of the encapsulating container #124 ]( https://github.com/clicon/clixon/issues/124 )
2020-08-19 15:55:55 +02:00
Olof hagsand
adc6edf545
* New clixon-config@2020-08-17.yang revision
...
* Added `CLICON_RESTCONF_ADDRESS` for setting evhtp bind address
2020-08-17 14:48:40 +02:00
Olof hagsand
e1d86ca3b5
Clixon 4.6
2020-08-14 10:47:37 +02:00
Olof hagsand
959574cf13
Clixon 4.6
2020-08-13 17:14:31 +02:00
Olof hagsand
f073c4221d
CHANGLEOG 4.6
2020-08-13 17:09:38 +02:00
Olof hagsand
dc1ad560f9
* Bundle internal NETCONF on RESTCONF: A RESTCONF operation could produce several (up to four) internal NETCONF messages between RESTCONF server and backend. These have now been bundled into one.
...
* NACM recovery user session is now properly enforced. This means that if `CLICON_NACM_CREDENTIALS` is `except` (default), then a specific `CLICON_NACM_RECOVERY_USER` can make any edits and bypass NACM rules.
* If a default value is replaced by an actual value, RESTCONF return values have changed from `204 No Content` to `201 Created`
* clixon-config.yang: Removed default valude of CLICON_NACM_RECOVERY_USER
2020-08-11 14:49:30 +02:00
Olof hagsand
31e583e24c
test nacm-recovery something wrong in docker
2020-08-06 22:21:24 +02:00
Olof hagsand
a7737c283c
restricted NACM recovery user
2020-08-06 21:43:27 +02:00
Olof hagsand
794d51a365
* Top-level default leafs assigned.
...
* Enforcing RFC 7950 Sec 7.6.1 means unassigned top-level leafs (or leafs under non-presence containers) are assigned default values.
* NACM default behaviour is read-only (empty configs are dead-lockedd)
* This applies if NACM is loaded and `CLICON_NACM_MODE` is `internal`
* Fixed: [default values don't show up in datastores #111 ](https://github.com/clicon/clixon/issues/111 )
2020-08-06 15:20:57 +02:00
Olof hagsand
65733ffe69
* Added yang-binding yb parameter to xmldb_get0() and all xmldb get functions.
2020-08-03 13:57:04 +02:00
Olof hagsand
5b81c43d96
New backend switch: -q : Quit startup directly after upgrading and print result on stdout
2020-08-03 12:49:33 +02:00
Olof hagsand
3ecc259ec7
misc documentation
2020-07-28 16:15:02 +02:00
Vladimir Ratnikov
8b5c77838b
Don't call upgrade callbacks for module with no revision defined
2020-07-28 05:52:07 -04:00
Olof hagsand
9d2102cebf
Fixed: [Need to add the possibility to use anchors around patterns #51 ]( https://github.com/clicon/cligen/issues/51 ):
...
* Dont escape `$` if it is last in a regexp in translation from XML to POSIX.
2020-07-27 20:03:52 +02:00
Olof hagsand
f7b640810b
* Enhanced Clixon if-feature handling:
...
* If-feature now supports and/or lists, such as: `if-feature "a and b"` and `if-feature "a or b or c"`. However, full if-feature-expr including `not` and nested boolean experessions is still not supported.
* Sanity check: if an `if-feature` statement exists, a corresponding `feature` statement must exists that declares that feature.
2020-07-27 12:06:36 +02:00
Olof hagsand
57b104bc25
* Checked yang binding validity which lead to:
...
* Changed and enhanced several `bad-element` error replies to `unknown-element` with more detailed error-message.
2020-07-25 16:09:24 +02:00
Olof hagsand
83203623cd
Optimized get config xpath of large lists, such as a[x=1000] in a list of 100000s a:s.
2020-07-23 20:41:32 +02:00
Olof hagsand
62446db752
Fixed CLICON_YANG_UNKNOWN_ANYDATA for config and state data. This feature introduced in 4.5 didnt really work.
2020-07-14 19:56:42 +02:00
Olof hagsand
863ebd3f93
small changes in error messages and code documentation
2020-07-14 19:46:12 +02:00
Olof hagsand
5464eec540
Added docker support for three restconf modes: nginx/fcgi(default); evhtp ; and none.
2020-07-07 13:26:38 +02:00
Olof hagsand
99b01040a7
* Fixed: [Double free when using libxml2 as regex engine #117 ]( https://github.com/clicon/clixon/issues/117 )
...
* added libxml2 support in test_pattern.sh when libxml2 is configured
2020-07-02 13:26:15 +02:00
Olof hagsand
c049a397b0
Fixed ssl client certs for evhtp.
...
* Added SSL cert info as options: CLICON_SSL_SERVER_CERT, CLICON_SSL_SERVER_KEY, CLICON_SSL_CA_CERT
Added config.sh for testing for autotools
2020-07-01 15:11:22 +02:00
Olof hagsand
8f1de15ad3
Changed module-specific upgrade API, not backward compatible. The API has been simplified which means more has to be done by the programmer.
...
* In summary, a user registers an upgrade callback per module. The callback is called at startup if the module is added, has been removed or if the revision on file is different from the one in the system.
* The register function has removed `from` and `rev` parameters: `upgrade_callback_register(h, cb, namespace, arg)`
* The callback function has a new `op` parameter with possible values: `XML_FLAG_ADD`, `XML_FLAG_CHANGE` or `XML_FLAG_CHANGE`: `clicon_upgrade_cb(h, xn, ns, op, from, to, arg, cbret)`
2020-06-26 14:39:04 +02:00
Olof hagsand
ee29452d24
* New clixon-config@2020-06-17.yang revision
...
* Added CLICON_CLI_LINES_DEFAULT for setting window row size of raw terminals
* Added enum HIDE to CLICON_CLI_GENMODEL for auto-cli
2020-06-18 11:28:47 +02:00
Olof hagsand
fade9dcfd5
Fixed: Reading in a yang-spec file exactly the same size as the buffer (1024/2048/4096/...) could leave the buffer not terminated with a 0 byte
2020-06-18 09:54:51 +02:00
Olof hagsand
0adcd94f3f
* Added new cli show functions to work with cligen_output for cligen pageing to work. To acheive this, add a callback function as follows:
...
* xml2txt(...) --> xml2txt_cb(..., cligen_output)
* xml2cli(...) --> xml2cli_cb(..., cligen_output)
* clicon_xml2file(...) --> clicon_xml2file_cb(..., cligen_output)
* xml2json(...) --> xml2json_cb(..., cligen_output)
* yang_print(...) --> yang_print_cb(..., cligen_output)
2020-06-17 14:04:19 +02:00
Olof hagsand
6e714beea5
* Restconf FCGI (eg via nginx) have changed reply message syntax slightly
...
* native http: new restconf_err files, generic data input, restconf_methods generalized.
* test: expecteq removed.
2020-06-16 21:51:00 +02:00
Olof hagsand
5120409a56
Auto-cli updates and sync with clixon-docs
2020-06-15 16:07:04 +02:00
Olof hagsand
cea5746597
Fixed: The module clixon-rfc5277 was always enabled, but should only be enabled when CLICON_STREAM_DISCOVERY_RFC5277 is enabled.
2020-06-14 18:01:31 +02:00
Olof hagsand
e898dda016
* Auto-CLI enhancements
...
* A generated clispec including state (default @datanodestate) also generated along with the config clispec tree (default @datanode)
* New mode `GT_HIDE` set by option `CLICON_CLI_GENMODEL_TYPE` to collapse non-presence containers that only contain a single list
* Added a prfix for cli_show_config/cli_show_auto so that it can produce parseable output
* Thanks dcornejo@netgate.com for trying it out and suggestions
2020-06-13 12:05:26 +02:00
Olof hagsand
ff5462ecac
Replaced the global variable debug with access function: clicon_debug_get().
2020-06-09 16:04:49 +02:00
Olof Hagsand
ab73794292
* Added [Vagrant tests](test/vagrant/README.md)
...
* Fixed memleak in restconf-fcgi
2020-06-08 08:16:42 +00:00
Olof hagsand
7ffa2920a4
* Removed printfs in xpath-equal code
2020-06-06 12:34:48 +02:00
Olof hagsand
14b03f63a3
all clixon event functions prepended with clixon_
...
Replaced fcgi getparam code with clixon-data parameters
2020-06-05 16:19:03 +02:00
Olof hagsand
fdf335fb2f
new function ; Added valgrind mem check in leak tests; pattern CDATA tests
2020-05-29 12:39:07 +02:00
Olof hagsand
6629f3d780
* Added new function xml_child_index_each() to iterate over the children of an XML node according to the order defined by an explicit index variable.
2020-05-20 15:21:59 +02:00
Olof hagsand
48dfc1201f
Bumped version to 4.6.0.PRE
2020-05-14 14:14:14 +02:00
Olof hagsand
70ead3364a
changelog
2020-05-12 20:48:18 +02:00
Olof hagsand
dee7a8e268
Clixon release 4.5.0
2020-05-12 20:45:10 +02:00
Olof hagsand
29235d5547
Removed and enabled code for compile options: RESTART_PLUGIN_RPC, XML_NEW_DIFFERENTIATE, OPTIMIZE_45_BIND and OPTIMIZE_45_SORT
2020-05-11 15:29:58 +02:00
Olof hagsand
a3b6ea9e10
New clixon-config@2020-04-23.yang revision
...
* Removed xml-stats non-config data (replaced by rpc `stats` in clixon-lib.yang)
* Added option `CLICON_YANG_UNKNOWN_ANYDATA` to treat unknown XML (wrt YANG) as anydata.
2020-05-11 14:38:38 +02:00
Olof hagsand
bf04131e54
Added decriptive error message when plugins produce invalid state XML.
2020-05-10 17:10:07 +02:00
Olof hagsand
266e5581e4
Changed output of clixon_cli -G option to show generated CLI spec original text instead of resulting parse-tree, which gives better detail from a debugging perspective.
2020-05-09 16:20:50 +02:00
Olof hagsand
f9e1fe5de7
removed state path kludge
2020-05-05 17:13:38 +02:00
Olof hagsand
bc0eb921d0
Added functionality to restart an individual plugin.: New clixon-lib:restart-plugin RPC
2020-05-04 15:04:02 +02:00
Olof hagsand
dafc6d10e0
Added option to treat unknown XML (wrt YANG) as anydata.
2020-05-03 22:03:33 +02:00
Olof hagsand
12d1b67250
* Stricter validation detecting duplicate container or leaf in XML.
...
* Eg `<x><a/><a/></x>` is invalid if `a` is anything else than leaf or leaf-list
2020-05-02 17:30:02 +02:00
Olof hagsand
442e96bdf0
Merge branch 'master' of https://github.com/clicon/clixon
2020-05-01 17:09:56 +02:00