Commit graph

  • d82df5b707 SNMP MIB->YANG translation file handling. Added configure option --with-mib-generated-yang-dir=DIR with default value /usr/share/mibyang where generated YANGs from MIBs should be placed so that SNMP tests know where to find the YANGs. Olof hagsand 2022-05-02 17:20:22 +02:00
  • 2a98ae5d93 SNMP: replaced testhandler code to use only NET-SNMP-EXAMPLES-MIB for scalar and table Olof hagsand 2022-05-02 14:36:24 +02:00
  • 0ada609d2f Fix for snmpd in Alpine, snmpd crashes with the default configuration. Kristofer Hallin 2022-05-01 12:34:34 -07:00
  • 168598168f Fixed minor typo in comment. Kristofer Hallin 2022-05-01 12:34:00 -07:00
  • 964fbfd3bc Tests for SNMP tables. Kristofer Hallin 2022-05-01 12:18:37 -07:00
  • 1894de66a6 Added example for tables. Kristofer Hallin 2022-05-01 12:18:13 -07:00
  • bc459a8229 Workaround for crashing snmpd in Alpine. Kristofer Hallin 2022-04-27 21:47:09 +02:00
  • 3d84a48b45 Valgrind tests for clixon_snmp. Kristofer Hallin 2022-04-27 21:03:47 +02:00
  • 625cc76bde Clixon SNMP frontend update Olof hagsand 2022-04-27 15:18:25 +02:00
  • 1e05207fd5 Check if we have Net-SNMP support enabled before trying to run SNMP tests. Kristofer Hallin 2022-04-27 02:04:13 -07:00
  • e106fa4e5c Add SNMP tools. Kristofer Hallin 2022-04-27 01:28:25 -07:00
  • b4b00bffaf Set proper paths to SNMP utils. Kristofer Hallin 2022-04-27 01:27:45 -07:00
  • 498394695c Changed paths for SNMP tools used in test. Kristofer Hallin 2022-04-27 00:37:35 -07:00
  • 68b99dc1ad Initial SNMP tests. Kristofer Hallin 2022-04-27 00:23:21 -07:00
  • e74bee7a3d Tell the agent to use a Unix socket for communication. Kristofer Hallin 2022-04-25 06:58:36 -07:00
  • b7e991dca9 Clixon SNMP frontend update Olof hagsand 2022-04-25 10:59:18 +02:00
  • ce326b0238 Move include of signal.h Kristofer Hallin 2022-04-24 00:24:53 -07:00
  • cd77c11109 Install net-snmp-dev and build Clixon with Net-SNMP support. Kristofer Hallin 2022-04-23 13:57:26 -07:00
  • b24082c683 Include signal.h Kristofer Hallin 2022-04-23 13:50:22 -07:00
  • 451cbef23d Initial Net-snmp frontend commit Olof hagsand 2022-04-23 21:12:41 +02:00
  • cca8c88ec1 5.7.0 release Olof hagsand 2022-05-17 10:04:24 +02:00
  • 0adeae64df Clixon 5.7.0 Olof hagsand 2022-05-16 19:44:32 +02:00
  • 50fcedafac Make socket read (SSL_read) error handling more resilient: log and continue instead of exit Olof hagsand 2022-05-16 19:34:00 +02:00
  • 3a336838f7 Fixed a cornercase of RFC 7950 Sec 7.9, a choice witout case with sub-containers Olof hagsand 2022-05-16 13:12:59 +02:00
  • 5bd64712c7 Tests: disabled: valgrind and pagination, restconf notification Olof Hagsand 2022-05-13 15:02:20 +00:00
  • 7b099a5685 Fixed Restconf nghttp2 client EPIPE crash Olof hagsand 2022-05-13 13:34:06 +02:00
  • c3b120b364 Test: netconf -H flag replaced with -1 caused valgrind fails Olof hagsand 2022-05-12 21:49:34 +02:00
  • d153bfcd0c Test: restconf notification parallel disabled. start script -l removed Olof hagsand 2022-05-12 16:17:26 +02:00
  • 9cbe313712 * Fixed: [Keywords containing '-' hyphen are missing from the auto-completion list](https://github.com/clicon/clixon/issues/330) * Fixed by disabling cligen_preference_mode. This may have other side effects. Olof hagsand 2022-05-12 14:54:53 +02:00
  • 0c81b66ef3 Fixed: [Returning a string while Querying leaf-list for single entry](https://github.com/clicon/clixon/issues/326) Olof hagsand 2022-05-12 12:04:13 +02:00
  • 7065d6f760 Test: restconf CN variable, strip curl newline Fixed a few compile warnings Olof hagsand 2022-05-11 09:20:40 +02:00
  • c27ecf0923 Test: added test of CLI rest variables with delimiters Olof hagsand 2022-05-10 17:37:55 +02:00
  • a49cf41d1e * CLI expansion of leafrefs default behavior changed * In the autocli and handcrafted CLI:s using expand_dbvar() the CLI expansion followed the leafrefs to the sources, ie the origin of the leafrefs * Instead leafref expansion now only looks at the leafrefs Olof hagsand 2022-05-10 10:06:43 +02:00
  • 614c927343 * Added nsc parameter to xml2xpath() and ensured the xpath uses prefixes. * Old code: add NULL as second parameter Olof hagsand 2022-05-09 13:26:42 +02:00
  • 82a0670031 Docker test: copy clixon.png for http-data test Olof hagsand 2022-05-05 18:22:34 +02:00
  • 7452813da7 Http data server Fixed binary data retrieval Olof hagsand 2022-05-05 18:06:42 +02:00
  • 90474d1523 Fixed: A long TLS+HTTP/2 request such as by a browser causing block of other requests. Test: Disabled privileges test if clixon_restconf started with -r Olof hagsand 2022-05-02 10:31:53 +02:00
  • 463aa15544 Restconf compile warnings and docs Olof hagsand 2022-05-02 10:28:24 +02:00
  • 5551d753ef Logging fixes * Fixed: [Error message seen twice in some cases](https://github.com/clicon/clixon/issues/325) * Extended -l command-line option to all clixon commands with a none option, eg -l n directs logging to dev/null Olof hagsand 2022-04-30 11:28:56 +02:00
  • ef302f0c05 Fixed: [if choice is declared with multiple elements or leaf-list with in a case scope , addition or updation is not happening as expected](https://github.com/clicon/clixon/issues/327) * This includes several choice/case adjustments to follow RFC 7950 Sec 7.9 better Olof hagsand 2022-04-29 19:16:56 +02:00
  • 28bd146e5c Added clixon_netconf command-line option -0and changed -H to -1 * -0 means dont send hello, but fix netconf base version to 0 and use EOM framing * -1 means dont send hello, but fix netconf base version to 1 and use chunked framing Olof hagsand 2022-04-29 19:07:12 +02:00
  • f11e4bad6c Http data server changes Olof hagsand 2022-04-28 16:07:26 +02:00
  • 84d88c8ad8 Restconf http-data server updates Olof hagsand 2022-04-24 09:44:27 +02:00
  • 0ed8b836b1 Test: Ensured HVER/RCPROTO work as envvars to test and documented it Olof hagsand 2022-04-20 15:16:17 +02:00
  • e0100a6e3c Fixed: YANG if-feature in config file did not work, was always on Test: unset test variables Olof hagsand 2022-04-22 16:12:34 +02:00
  • 404d05950a HTTP data server updates Olof hagsand 2022-04-21 16:45:18 +02:00
  • 2a8cedf0c3 Limited http-data static server * Renamed from www-data to http-data * New clixon-restconf@2022-03-21.yang revision * Added option: * enable-http-data * Added feature: http-data * Added new str2str mapper * Test: new test_http_data.sh, added CI github action testing Olof hagsand 2022-04-21 15:37:58 +02:00
  • 76213057b6 * Extended the Restconf implementation with a limited www-data * This is an experimental implementation * Added www-data feature and two new config options to clixon-config.yang: * CLICON_WWW_DATA_PATH * CLICON_WWW_DATA_ROOT * The limited implemtation is as follows: * path: Local files within CLICON_WWW_DATA_ROOT * operation GET, HEAD, or OPTIONS * query parameters not supported * indata should be NULL (no write operations) * Limited media: text/html, JavaScript, image, and css * Authentication as restconf Generic changes: * Uniform path selection across fcgi, native http/1 + http/2 Olof hagsand 2022-04-19 09:24:40 +02:00
  • e1bec5f6dd Test: Ensured HVER/RCPROTO work as envvars to test and documented it Olof hagsand 2022-04-20 15:16:17 +02:00
  • fa077839f0 Misc sanity checks and documentation Olof hagsand 2022-04-19 09:24:40 +02:00
  • 6418e030ce RESTCONF FCGI notifications: minor timing adjustments, mostly for testcases Olof hagsand 2022-04-18 12:15:26 +02:00
  • 600f0616f6 Memory leak/err in notification when closing down test: restconf notification chunked framing update Olof hagsand 2022-04-17 13:21:05 +02:00
  • feec3a21d9 YANG key list and unique fixes Olof hagsand 2022-04-17 10:34:55 +02:00
  • 580396d32f - Misc documentation - Test: move pid file from tmp to global storage to prevent multiple instances Olof hagsand 2022-04-14 15:20:31 +02:00
  • 8c60d81ed2 - Disabled xpath optimization for hierarchical list - Made cli show xpath command more capable Olof hagsand 2022-04-14 14:17:20 +02:00
  • 6c3771e604 Fixed: Removed warning at startup: No YANG spec for module-set Olof hagsand 2022-04-12 16:51:01 +02:00
  • ecac027d18 CLI argument to shell example callback Save state of netconf chunked framing between inputs Treat EBADF in internal protocol (triggered by freebsd+notifications) Test: chunked encoding: use printf instead of echo Olof hagsand 2022-04-10 10:31:03 +02:00
  • ac7673bc35 Fixed static build typo Test: grep --null -Eo not supported on ubunti 20 Enable IPv6 for ubuntu Vagrant: enable insecure downloads Olof Hagsand 2022-04-09 15:12:13 +00:00
  • a51abd0063 * XPath parser: fixing lexical issues cornercases * Some complexities in Section 3.7 Lexical Structure of XPath 1.0 spec * There used to be some cornercases where function-names could not be used as nodes * For example, node() is a nodetest, so /node/ caused an error. * In the grammar these include: axisnames, nodetests, functionnames * The NCNames vs functionnames is now impölemented according to the lexical structure section Olof hagsand 2022-04-05 12:11:16 +02:00
  • f1300d7a12 * [Adding feature to top level container doesn't work](https://github.com/clicon/clixon/issues/322) * Instead of removing YANG which is disabled by if-feature, replace it with an yang anydata node. * This means XML specified by such YANG is ignored, and it is not an error to access it * Note the similarity with CLICON_YANG_UNKNOWN_ANYDATA Olof hagsand 2022-04-06 14:04:11 +02:00
  • 4dd71c671f example typo Olof hagsand 2022-04-03 13:48:41 +02:00
  • 59f03b50fb Test: type in example Olof hagsand 2022-04-03 13:39:30 +02:00
  • aaf8dee44f * autotools: removed warning of HAVE_HTTP1 by adding doc-string * NETCONF 1.1 capability: removed extra, redundant conditional Olof hagsand 2022-04-03 12:43:54 +02:00
  • 1a9def2f6e [provide support for load config of cli format along with json and xml format as save config is supported for all 3 formats](https://github.com/clicon/clixon/issues/320) Olof hagsand 2022-04-01 18:05:19 +02:00
  • 3d648bc08f * [prevent clixon-restconf@2021-05-20.yang module from loading](https://github.com/clicon/clixon/issues/318) * Instead of always loading it, load it to datastore YANGs only if CLICON_BACKEND_RESTCONF_PROCESS is true * Olof hagsand 2022-03-29 17:24:03 +02:00
  • 8ce1917020 Updated autotool aux scripts Olof hagsand 2022-03-29 15:46:52 +02:00
  • 451562ca77 Removed unnecessary libclixon_netconf, functions moved to libclixon Olof hagsand 2022-03-29 15:46:38 +02:00
  • 9690e0d8f2 * Fixed: HTTP/1 multiple write requests in single session appended data between writes, eg PUT+PUT. Olof hagsand 2022-03-28 22:55:43 +02:00
  • 3d59077894 vagrant test: patch yangmodels, changed to main Olof hagsand 2022-03-28 19:20:30 +02:00
  • 8d5694cc1c test yangmodels, filter mpls-ldp yang models due to bug(again) Olof hagsand 2022-03-28 15:33:14 +02:00
  • fb86285984 YangModels master branch renamed to main - Test: skipped standard/ietf/RFC/ietf-mpls-ldp@2022-03-14.yang due to xpath bug Olof hagsand 2022-03-28 13:04:20 +02:00
  • 2b323cbcf8 update config aux scripts Olof hagsand 2022-03-28 12:53:13 +02:00
  • c038c9a27f * Implementation of "chunked framing" according to RFC6242 for Netconf 1.1. * First hello is 1.0 EOM framing, then successing rpc is chunked framing * See * [Netconf framing](https://github.com/clicon/clixon/issues/50), and * [Clixon does not switch to chunked framing after NETCONF 1.1 is negotiated](https://github.com/clicon/clixon/issues/314) * C: * Moved netconf framing code from netconf application to clixon lib * Test: * New expecteof_netconf and adjusted other expect scripts to handle NETCONF 1.1 framing Olof hagsand 2022-03-27 17:39:24 +02:00
  • bf983d7ca4 * New clixon-config@2022-03-21.yang revision * Added option: * CLICON_NETCONF_BASE_CAPABILITY * Removed NETCONF_1_1_ANNOUNCE compile option Olof hagsand 2022-03-21 11:02:49 +01:00
  • cee735e586 netconf 1.1 capability remove tests Olof hagsand 2022-03-17 22:18:12 +01:00
  • 85c6c11970 * Netconf: Disabled default announcing of Netconf 1.1, instead only announce 1.0 * See [Clixon does not switch to chunked framing after NETCONF 1.1 is negotiated](https://github.com/clicon/clixon/issues/314) * To enable Netconf 1.1, set NETCONF_1_1_ANNOUNCE Olof hagsand 2022-03-17 20:29:41 +01:00
  • 23b466a854 * YANG unique: added single descendant node ids as special case * This means that two variants are supported: * unique "a b c", ie multiple direct chidlren * unique "a/b/c", ie single descendants * RFC 7950 Sec 7.8.3 is somewhat unclear * The combination is not supported * Netconf data-not-unique info changed to return schema nodes instead of XML for RFC7950 compliance Olof hagsand 2022-03-08 09:18:10 +01:00
  • dfeb7cef75 * CLI reconnects to backend if backend restarts with a warning * Note that edits to the candidate database or locks will be lost * To force the CLI to exit if backend restarts, undef PROTO_RESTART_RECONNECT * This is an effect of the fix of [Broken pipe error seen in client (cli) when backend restarts and CLICON_SOCK is recreated](https://github.com/clicon/clixon/issues/312), the CLI behavior on backend restart is changed. * Added eof parameter to clicon_rpc() and clicon_rpc1() and error handling modified Olof hagsand 2022-03-16 18:30:21 +01:00
  • 03f667e2ea Fix part 2 for [Xpath API do not support filter data by wildcard](https://github.com/clicon/clixon/issues/313) Olof hagsand 2022-03-15 19:59:54 +01:00
  • a973eaaeef Fixed: [Xpath API do not support filter data by wildcard](https://github.com/clicon/clixon/issues/313) Olof hagsand 2022-03-15 16:03:48 +01:00
  • 159ac0a2d7 Test: Added expect to Dockerfile and made sure pagination test worked in docker Olof hagsand 2022-03-14 14:17:32 +01:00
  • e0f5472161 Tests: added expect script for pagination stdio Olof hagsand 2022-03-14 14:02:21 +01:00
  • 927d6f2d9c * Documentation: plugin start function doc Olof hagsand 2022-03-14 12:14:55 +01:00
  • 9a88cb5f0d * Bumped version to 5.7.0_PRE * Fixed: SEGV in cli show yang Olof hagsand 2022-03-14 12:13:45 +01:00
  • 60e6477be2 Clixon 5.6.0 Release Olof hagsand 2022-03-08 10:40:34 +01:00
  • 72025bfc5e CHANGELOG for 5.6.0; removed wwwdir Olof hagsand 2022-03-07 20:08:33 +01:00
  • ff37ce808c * Rename demon -> daemon Olof hagsand 2022-03-07 11:17:34 +01:00
  • dd2ac56af8 Module state upgrade: RFC7895 to RFC 8525 Olof hagsand 2022-03-07 10:56:54 +01:00
  • dd4e2be25c Deleted obsolete fields in clixon-config.yang Olof hagsand 2022-03-05 12:48:37 +01:00
  • 0a593cd513 * [Strict auto completion for CLI argument expansion #163](https://github.com/clicon/clixon/issues/163) * Fixed a bug with the extension API: different unknown statements were treated as same Olof hagsand 2022-03-01 09:24:29 +01:00
  • cf2de375f7 - Moved backend start message to after the clixon socket ops: create/bind/listen Olof hagsand 2022-02-26 10:23:10 +01:00
  • 86ebe9f2fb
    Merge pull request #310 from lukon89/master Olof Hagsand 2022-02-26 10:13:31 +01:00
  • 905cbc4b82 Convert int64, uint64 and decimal64 to string in xml to json convertion (regarding to RFC7951) Łukasz Konera 2022-02-25 12:50:24 +01:00
  • add797ed31 * Fixed: [Validate error when appending module B grouping to module A item use augment statement #308](https://github.com/clicon/clixon/issues/308) Olof hagsand 2022-02-23 13:21:10 +01:00
  • 2291275fae Fixed: [Restconf PATCH method request failed on item defined by submodule #306](https://github.com/clicon/clixon/issues/306) Olof hagsand 2022-02-23 11:20:52 +01:00
  • 97316e0bfa * Follow-up on [restconf GET json response does not encode top level node with namespace as per rfc #303](https://github.com/clicon/clixon/issues/303) * Load/save JSON config file did not work * Added rfc7951 parameter to clixon_json_parse_string() and clixon_json_parse_file() * If set, honor RFC 7951: JSON Encoding of Data Modeled with YANG, eg it requires module name prefixes * If not set, parse as regular JSON * Test: added test_db.sh for datastore format tests Olof hagsand 2022-02-22 13:14:30 +01:00
  • 31719b5ef4 Test: yang models added patches to counter https://github.com/YangModels/yang/issues/1165 Olof hagsand 2022-02-20 11:48:52 +01:00
  • 503c4f8754 * Fix: http1 parser termination with EOF required on freebsd flex * Test: sed -i does not seem to work on all platforms Olof hagsand 2022-02-17 20:54:37 +01:00
  • bf00fdf2c1 * Fixed: [restconf GET json response does not encode top level node with namespace as per rfc #303](https://github.com/clicon/clixon/issues/303) Olof hagsand 2022-02-17 18:42:37 +01:00
  • 4631b02e00 * Removed docker warning: set master default branch * Test: check commit for cli union Olof hagsand 2022-02-17 12:37:38 +01:00