Olof hagsand
8f55b8490d
Refactored Makefile for static linking, removed netconf soap encoding
2021-10-04 20:06:11 +02:00
Olof hagsand
42e61f461c
- Memleaks in xpath parse error
...
- Static linkage cli fix (worked in 5.3.0 but restructuring broke it)
- Renamed all cligen_ph_active_get to cligen_pt_active_get
- Added AFL deferred init
- test_install.sh for static .a suffix
2021-10-03 18:49:25 +02:00
Olof hagsand
d175720b7e
Cleaned up Makefiles, especially LINKAGE=static vs dynamic
...
Added LIBSTATIC_SUFFIX instead of hardcoded .a
Changed building of build.c not to be triggered by install
2021-09-30 21:40:46 +02:00
Olof hagsand
648b3f41f2
Make ready for clixon 5.4.0 development
2021-09-30 16:16:00 +02:00
Olof hagsand
51278d5901
Fixed static linking for coverage and fuzzing
...
Preparations for Clixon 5.3 release
2021-09-27 12:26:53 +02:00
Olof hagsand
5a875e3152
Fix some LINKAGE=static compile issues:
...
- Makefile circularity by fixing .so suffix
- simplify example/main Makefile
2021-09-26 11:22:48 +02:00
Olof hagsand
c00162aec1
- Modified linkage constant in makefile to test for dynamic only
...
- CLIXON_STATIC_PLUGIN to support statically linked plugins
- Added -H option to clixon_netconf: Do not require hello before request
2021-09-25 16:36:37 +02:00
Olof hagsand
b70e22096e
- Pagination: enabled LIST_PAGINATION and remobved constant
...
- Changed logic on how to find clixon_restconf in pseudo plugin
- Removed ==== in constants to avoid conflict with git merge
- Remove assert
- Added fuzzing for netconf
2021-09-23 13:33:26 +02:00
Olof hagsand
60193cca0d
- Add remaining argument to state callback
2021-09-21 11:27:58 +02:00
Olof hagsand
caabfd464e
* New state callback signature (ca_statedata2)
...
* The new callback contains parameters for paging
* Goal is to replace ca_statedata callback
* New plugin callback when lock/unlock occurs
* Add `ca_lockdb` tro plugin init to use it.
* Fixed: Typing 'q' in CLI more paging did not properly quit output
* Output continued but was not shown, for a very large file this could cause considerable delay
* Fixed: Lock was broken in first get get access
* if the first netconf operation to a backend was lock;get;unlock, the lock was broken in the first get access.
2021-09-21 11:27:58 +02:00
Olof hagsand
aaf9a89183
- Added an extended state plugin callback: ca_statedata2 with offset and limit parameters
...
- Fixed memory errors
2021-09-21 11:26:28 +02:00
Olof hagsand
28f58fb7d6
- Fixed list pagination for CLI
2021-09-21 11:24:53 +02:00
Olof hagsand
a046306270
- New netconf-specific uint32 parse functions
...
- Added failure handling to xpath traverse_canonical
- Started pagination cli code
2021-09-21 11:24:53 +02:00
Olof hagsand
fb0b9409f3
- Moved restrconf code from pageing rpc to get
2021-09-21 11:24:53 +02:00
Olof hagsand
0c7f2043f3
* Pagination according to new draft
...
* count/skip -> limit/offset
* ietf-yang-metadata RFC 7952 support, placeholder parsing and extension
2021-09-21 11:22:41 +02:00
Olof hagsand
77bacc93bb
- Updated code to clixon 5.2 status
...
- Added LIST_PAGINATION clixon_custom constant
- Fix: leafs added as augments on rpc input/output lacked cv:s
2021-09-21 11:22:40 +02:00
Olof hagsand
ba835346a5
cli-pagination
2021-09-21 11:22:40 +02:00
Olof hagsand
2b5dceb82c
cli pagination
2021-09-21 11:22:40 +02:00
Olof hagsand
392e6679c5
* JSON errors are now labelled with JSON and not XML
...
* Fixed: [Performance issue when parsing large JSON param](https://github.com/clicon/clixon/issues/266 )
* Moved strlen() from for end condition
* Fixed debugging of xpath parser
2021-09-20 21:35:01 +02:00
Olof hagsand
ca14879e8c
- Fixed: [Duplicate lines emitted by cli_show_config (cli output style) when yang list element has composite key]( https://github.com/clicon/clixon/issues/258 )
2021-09-09 13:33:51 +02:00
Olof hagsand
980718178a
* YANG Leafref feature update
...
* Closer adherence to RFC 7950. Some of this is changed behavior, some is new feature.
* Essentially instead of looking at the referring leaf, context is referred(target) node
* Validation uses referred node
* Validation changed to use type of referred node, instead of just "string"
* Auto-cli
* Changed to use type of referred node for typecheck
* Completion uses referred node
* Required instance / less strict validation
* New: Leafrefs must refer to existing data leaf ONLY IF YANG `required-instance` is true
* Previous: All leafrefs must refer to existing data leaf node
* Fixed: [Autocli does not offer completions for leafref to identityref #254 ](https://github.com/clicon/clixon/issues/254 )
2021-08-16 17:14:27 +02:00
Dmitry Kozlyuk
56bfd9c36f
Remove hardcoded path to diff binary
...
Like other programs, diff can and should be located using PATH.
This fixes compare_dbs() on non-FHS systems, like NixOS.
2021-08-13 22:21:28 +03:00
Olof hagsand
4d265d63bd
Fixed: The auto-cli identityref did not expand identities in grouping/usecases properly.
2021-08-03 11:15:45 +02:00
Olof hagsand
c1c4e5b3f3
- cli set debug vars
...
- fixed: restconf native evhtp appended indata to old data
2021-07-26 10:46:00 +02:00
Olof hagsand
1925ac68cd
* Fixed: [RESTConf GET for a specific list instance retrieves data from other submodules that have same list name and key value #244 ]( https://github.com/clicon/clixon/issues/244 )
...
* Fixed: Double clixon error messages in yang2cli code
* Sanity checks for submodule belongs-to
2021-07-08 16:26:39 +02:00
Olof hagsand
85e2945ec9
* Netconf message-id attribute changed from optional to mandatory
...
* Made NETCONF message handling more strict according to RFC 6241
* Set `CLICON_NETCONF_MESSAGE_ID_OPTIONAL` to true to accept omission of message-id attribute
* Fixed: [need make sure message-id exist in rpc validate #240 ](https://github.com/clicon/clixon/issues/240 )
2021-06-30 10:59:10 +02:00
Olof hagsand
5baf8642ea
* Fixed union in XPATH [XPATH issues #219 ]( https://github.com/clicon/clixon/issues/219 )
2021-05-15 22:28:10 +02:00
Olof hagsand
1c7e52f829
Merge branch 'autocli' of https://github.com/shmuelnatan/clixon into shmuelnatan-autocli
2021-04-22 20:56:04 +02:00
shmuels
5d18c02dfe
completing the function of hide for autocli-op in the yang files
2021-04-22 19:22:31 +03:00
shmuels
bfb7edece4
completing the function of hide for autocli-op in the yang files
2021-04-22 19:17:32 +03:00
shmuels
0ffff7844e
completing the function of hide for autocli-op in the yang files
2021-04-21 15:25:11 +03:00
shmuels
b0c5e43d50
completing the function of hide for autocli-op in the yang files
2021-04-21 15:15:35 +03:00
shmuels
33ad428854
completing the function of hide for autocli-op in the yang files
2021-04-21 15:09:40 +03:00
Olof hagsand
b88722fa25
- Restructure plugin module using a "module struct" rather than global variables.
...
This include plugin module init and exit functions
New type: clixon_plugin_t exposed via public API while struct clixon_plugin is private
- Makefile changes for static linkage using "LINKAGE=static"
- Moved nacm external init to later stage in backend_main
2021-04-19 11:06:40 +02:00
shmuels
cede620a2a
completing the function of hide for autocli-op in the yang files
2021-04-19 10:27:44 +03:00
shmuels
c370ac8706
completing the function of hide for autocli-op in the yang files
2021-04-18 16:58:18 +03:00
Olof hagsand
7ebb538ebf
- Changed master to 5.2.0.PRE
...
- Modified Makefiles for static linkage and coverage
- test namespace abstractions
2021-04-17 15:23:10 +02:00
Olof Hagsand
418f8f4c6f
Merge pull request #200 from nowaits/master
...
yang container add support for cl:autocli-op
2021-04-15 10:17:08 +02:00
Olof hagsand
c43e216d67
- Restconf bind: continue with other sockets if bind fails, print address on log
...
- Multi-yang: Look in CLICON_YANG_MAIN_DIR, not only CLICON_MAIN_DIRs for old yangs
- Backend -q quit option enhanced for multi-yang case
2021-04-13 18:00:27 +02:00
jxm
b938c0c40c
yang container add support for cl:autocli-op
2021-04-09 15:27:37 +08:00
Olof hagsand
692dc12c03
* Fixed ["aux" folder issue with Windows. #198 ]( https://github.com/clicon/clixon/issues/198 )
...
* Updated config scripts
* removed unused expand_dir util cli function
* Fixed again [making cli_show_options's output more human readable #199 ](https://github.com/clicon/clixon/issues/199 )
2021-04-07 09:44:18 +02:00
Olof hagsand
7412bb7b3d
Fixed [changing interface name not support with openconfig module #195 ]( https://github.com/clicon/clixon/issues/195 )
2021-04-06 22:36:46 +02:00
Olof hagsand
d8be601606
* To configure native mode use: configure --with-restconf=native, changed from: configure --with-restconf=evhtp
2021-04-06 08:48:45 +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
477059f33d
Fixed again: [backend start resconf failed due to path string truncated #192 ]( https://github.com/clicon/clixon/issues/192 )
2021-03-24 12:23:00 +01:00
Olof hagsand
709459304f
* Removed cli_debug(). Use cli_debug_backend() or cli_debug_restconf() instead.
...
* Created restconf debug rpc stub function and documented restconf debugging
2021-03-22 14:56:05 +01:00
Olof hagsand
43db8dd5c5
Fixed: [state showing error in cli with CLICON_STREAM_DISCOVERY_RFC8040 #191 ]( https://github.com/clicon/clixon/issues/191 )
2021-03-18 10:41:08 +01:00
Olof hagsand
fb9917e81e
* Removed endtag parameter of clixon_xml_parse_file()
2021-03-15 13:24:27 +01:00
Olof hagsand
f536b1dc67
Added: CLICON_CLI_AUTOCLI_EXCLUDE
...
Added openconfig interfaces tests
2021-03-15 13:08:42 +01:00
Olof hagsand
f01efaf02a
fixed fcgi notification, genmodel
2021-03-10 14:45:18 +01:00