Clixon 6.4.0
6.4.0
30 September 2023
This release is mainly for bugfixes and improvements of existing functionality, such as CLI output pipes.
Minor features
- New
clixon-autocli@2023-09-01.yang
revision- Added argument to alias extension
- CLI show compare example function:
- Improved diff algorithm for XML and TEXT/curly, replaced UNIX diff with structural in-mem algorithm
- JSON: Added unicode BMP support for unicode strings as part of fixing (#453)
- Example cli pipe grep command quotes vertical bar for OR function
- Added: Feature request: node's alias for CLI
- Note: "Skip" is for all nodes, but "Alias" is only for leafs
- New command-line option for dumping configuration options for all clixon applications after load
- Syntax is
-C <format>
- Example:
clixon_backend -1C json
- Syntax is
- Removed sending restconf config inline using -R when CLICON_BACKEND_RESTCONF_PROCESS=true
- Define RESTCONF_INLINE to revert
- Clarified clixon_cli command-line:
clixon_cli [options] [commands] [-- extra-options]
C/CLI-API changes on existing features
Developers may need to change their code
-
Renamed
clixon_txt2file()
toclixon_text2file()
-
Changed parameters of example clispec function
compare_dbs()
- New parameters are:
db1
,db2
,format
- New parameters are:
-
Add
fromroot
parameter tocli_show_common()
cli_show_common(...xpath...)
-->cli_show_common(...xpath,0...)
-
Low-level message functions added
descr
argument for better logging- In this way, message debugs in level 2 are more descriptive
- The descr argument can be set to NULL for backward-compability, see the following translations:
clicon_rpc(s, ...)
-->clicon_rpc(s, NULL, ...)
clicon_rpc1(s, ...)
-->clicon_rpc1(s, NULL, ...)
clicon_msg_send(s, ...)
-->clicon_msg_send(s, NULL, ...)
clicon_msg_send1(s, ...)
-->clicon_msg_send1(s, NULL, ...)
clicon_msg_rcv(s, ...)
-->clicon_msg_rcv(s, NULL, ...)
clicon_msg_rcv1(s, ...)
--> `clicon_msg_rcv1(s, NULL, ...)clicon_msg_notify_xml(h, s, ...)
-->clicon_msg_notify_xml(h, s, NULL, ...)
send_msg_reply(s, ...)
-->send_msg_reply(s, NULL, ...)
clixon_client_lock(s, ...)
-->clixon_client_lock(s, NULL, ...)
clixon_client_hello(s, ...)
-->clixon_client_hello(s, NULL, ...)
-
CLI pipe function: added arg to
pipe_tail_fn()
Corrected Bugs
- Fixed: "show compare" and "show compare | display cli" differs #23
- Fixed: JSON backslash string decoding/encoding not correct
- Fixed: CLI show config | display exits over mountpoints with large YANGs
- JSON string fixed according to RFC 8259: encoding/decoding of escape as defined in Section 8
- No need to bind for xml and json, only cli and text
- Fixed several issues with including multiple configure-files in a config-directory, including overwriting of structured sub-configs.
- Fixed: YANG error when poking on EOS configuration
- Fixed: CLICON_CONFIGDIR with external subsystems causes endless looping
- Fixed: "show configuration devices" and "show configuration devices | display cli" differs
- Fixed: Configuring Juniper PTX produces CLI errors
- Fixed: CLI output pipes: Add
CLICON_PIPETREE
to any cli files, not just the first