Olof hagsand
69eaf98913
Remove extra lines
2024-12-05 17:35:05 +01:00
Olof hagsand
62348fc9c7
C-style update: Unified comment, retvals in order, remove trailing spaces
...
Changed function name for `clicon_debug` functions
2023-10-23 09:58:13 +02:00
Olof hagsand
d84c529ff1
[Code formatting: Change indentation style to space]( https://github.com/clicon/clixon/issues/379 )
...
* Applies to all c/h/y/l/sh files and .editorconfig
2022-10-27 14:21:17 +02:00
Olof hagsand
9d65fb81d7
* Break-out RFC 7950 Section 6.1 tokenization
...
* This enables full string lexical parsing of some rules previously not fully compliant, including:
* refine
* user-augment
* if-feature
* Also solves previous tokenization issues
2022-07-25 09:25:11 +02:00
Olof hagsand
dadf4a778a
* HTTP/1 native parser as part of the RESTCONF client
...
* Fixed memory error in opendir/readdir in clicon_file_dirent
* Remove MAXPATH in parsers
* New string-del function
2022-02-08 16:59:08 +01:00
Olof hagsand
0ed34b4fab
- test: IEEE yang models directory structure changed, ietf+ieee tests modified
...
- yang parse minor lex edits: added comments and \r in some rules
2022-02-08 12:03:47 +01:00
Olof hagsand
77b4468eb3
Updated copyright statements to 2022
2022-01-18 16:36:00 +01:00
Olof hagsand
6b357dc038
* Partly Fixed: [String concatenation in YANG model leads to syntax error]( https://github.com/clicon/clixon/issues/265 )
...
* In this case, eg "uses", single quotes can now be used, but not `qstring + qstring` in this case
2021-09-20 22:54:14 +02:00
Olof hagsand
1c5c5a71f2
- Fixed deviate keywords as strings: https://github.com/clicon/clixon/issues/211
2021-05-06 14:44:22 +02:00
Olof hagsand
d48b8a8fad
-Yang Deviation/deviate : added yacc/lex syntax
2021-04-24 12:31:40 +02:00
Olof hagsand
2def5d2367
* Fixed Yang parsing of comments in (extension) unknown statements, to allow multiple white space
...
* Fixed cli_start_shell: comments and cli_error
* Fixed [making cli_show_options's output more human readable #199 ](https://github.com/clicon/clixon/issues/199 )
* Fixed SSL/evhtp limited read buffer problem
2021-04-01 15:56:56 +02:00
Olof hagsand
ab18946880
* Fixed extension/unknown problem shown in latest openconfig where other than a single space was used between the unknown identifier and string
...
* Removed skiplist of openconfig/yangmodels tests to inside the test
2021-02-23 13:47:17 +01:00
Olof hagsand
96b50b88e8
Copyright 2021
2021-01-13 14:40:34 +01:00
Olof hagsand
65806f1ef2
Copyright change: LLC -> LLC(Netgate)
2020-04-23 16:55:56 +02:00
Olof hagsand
83b22e7c2b
2020 copyright statement
2020-02-22 15:54:15 +01:00
Olof hagsand
3b26b22391
internal type/var/prefix name changes for yacc parsing
2020-02-22 11:15:51 +01:00
Olof hagsand
7350ec1624
warnings in travis
2020-02-02 17:07:46 +01:00
Olof hagsand
e7b60619da
* Pushed tag to 4.0.1.PRE
...
* Restconf RFC 8040 increased feature compliance
* Cache-Control: no-cache added in HTTP responses (RFC Section 5.5)
* Restconf monitoring capabilities (RFC Section 9.1)
* Added support for Yang extensions
* New plugin callback: ca_extension
* Main backend example includes example code on how to implement a Yang extension in a plugin.
* JSON changes
* Non-pretty-print output removed all extra spaces.
* Example: `{"nacm-example:x": 42}` --> {"nacm-example:x":42}`
* Empty JSON container changed from `null` to `{}`.
* Empty list and leafs remain as `null`
* Removed unnecessary configure dependencies
* libnsl, libcrypt, libm, if_vlan,...
* pseudo-plugin added, to enable callbacks also for main programs. Useful for extensions
* Yang Unique statements with multiple schema identifiers did not work on some platforms due to memory error.
2019-07-23 22:11:14 +02:00
Olof hagsand
67b8685bab
The Clixon API has been extended with namespaces, or namespace contexts in the following cases:
...
* CLIspec functions have added namespace parameter:
* `cli_show_config <db> <format> <xpath>` --> `cli_show_config <db> <format> <xpath> <namespace>`
* `cli_copy_config <db> <xpath> ...` --> `cli_copy_config <db> <xpath> <namespace> ...`
* Xpath API
* `xpath_first(x, format, ...)` --> `xpath_first(x, nsc, format, ...)`
* `xpath_vec(x, format, vec, veclen, ...)` --> `xpath_vec(x, nsc, format, vec, veclen, ...)`
* `xpath_vec_flag(x, format, flags, vec, veclen, ...)` --> `xpath_vec_flag(x, format, flags, vec, veclen, ...)`
* `xpath_vec_bool(x, format, ...)` --> `xpath_vec_bool(x, nsc, format, ...)`
* `xpath_vec_ctx(x, xpath, xp)` --> `xpath_vec_ctx(x, nsc, xpath, xp)`
* xmldb_get0 has an added `nsc` parameter:
* `xmldb_get0(h, db, xpath, copy, xret, msd)` --> `xmldb_get0(h, db, nsc, xpath, copy, xret, msd)`
* The plugin statedata callback (ca_statedata) has been extended with an nsc parameter:
* `int example_statedata(clicon_handle h, cvec *nsc, char *xpath, cxobj *xstate);`
* rpc get and get-config api function has an added namespace argument:
* `clicon_rpc_get_config(clicon_handle h, char *db, char *xpath, char *namespace, cxobj **xt);`
* `int clicon_rpc_get(clicon_handle h, char *xpath, char *namespace, cxobj **xt);`
2019-07-08 10:36:37 +02:00
Olof hagsand
0ef704563b
empty unquoted string; unknown in anydata/xml
2019-05-29 19:36:23 +02:00
Olof hagsand
2fe185d683
* Support for multiple patterns as described in RFC7950 Section 9.4.7
...
* Added regex cache to type resolution
* Added compiled regexp parameter as part of internal yang type resolution functions
* All internal `ys_populate_*()` functions (except ys_populate()) have switched parameters: `clicon_handle, yang_stmt *)`
2019-05-29 11:39:09 +02:00
Olof hagsand
f7771d86c2
* Better compliance with XSD regexps (when transforming to Posix regexps)
...
* Added `\p{L}` and `\p{N}`
* Added escaping of `$`
* Added regexp [test/test_pattern.sh]
2019-05-22 20:21:48 +02:00
Olof hagsand
a20865846e
new try: optimized yang string parsing
2019-02-20 17:36:40 +01:00
Olof hagsand
8279c015d8
Revert "optimized string lex parsing"
...
This reverts commit 5b6bdbfd3a .
2019-02-20 16:26:01 +01:00
Olof hagsand
5b6bdbfd3a
optimized string lex parsing
2019-02-20 15:37:10 +01:00
Olof Hagsand
66d8573c00
Added docker/base as minimal clixon container and docker/system as full clixon system.
2019-02-11 14:17:29 +01:00
Olof hagsand
207858e20d
* Support of yangmodels supported, see test_yangmodels.sh
...
* Added -o "<option>=<value>" command-line option to all programs: backend, cli, netconf, restconf.
* Ignore CR(\r) in yang files for DOS files
2019-01-10 20:52:19 +01:00
Olof hagsand
bd67a2a5f2
Support for empty yang string added, eg default "";
...
if-feature added in yang parser at several places.
2019-01-06 16:31:36 +01:00
Olof hagsand
0103d58994
2019
2019-01-02 15:48:30 +01:00
Olof hagsand
56da97cb5b
Openconfig yang specs parsed: https://github.com/openconfig/public
2018-11-25 18:24:13 +01:00
Olof hagsand
a8f0aad411
* Yang parser is stricter (see cardinality below) which may break parsing of slack yang specs.
...
* YANG parser cardinality checked (only modules level yet)
* See https://github.com/clicon/clixon/issues/48
2018-11-18 20:55:57 +01:00
Olof hagsand
507e03742d
Yang 1.1 action syntax added (but function is not supported)
2018-10-10 22:27:46 +02:00
Olof hagsand
1913407e52
Replacing remaining badrequest() with proper restconf error msg.
2018-04-22 20:13:54 +02: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
38f0b446fa
2017->2018
2018-01-01 12:25:33 +01: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
f5d2473618
Yang anyxml and extensions; yang dir with ietf-netconf and clixon-config yang specs
2017-07-02 10:52:24 +02:00
Olof hagsand
7880b5d498
mem leak in lex for flex 2.6
2017-04-07 10:59:30 +02:00
Olof hagsand
319e7707d8
Empty yang type. Relaxed yang types for unions, eg two strings with different length.
2017-01-09 21:26:50 +01:00
Olof hagsand
bc2b606167
dual license
2016-12-30 16:14:48 +01:00
Olof hagsand
887d43428b
json parser
2016-08-15 09:29:22 +02:00
Olof Hagsand
79b77943f9
renamed .h and libs clicon->clixon
2016-02-28 15:27:36 +01:00