Commit graph

  • fe8724723d -q: print and quit after upgrade: even if sort/bind errors, print the XML Olof hagsand 2020-08-06 09:02:11 +02:00
  • df095daa50
    Merge pull request #125 from dcornejo/master Olof Hagsand 2020-08-06 08:53:31 +02:00
  • 4aa0b745da sort the XML before dumping when using -q switch Dave Cornejo 2020-08-05 09:58:48 -10:00
  • 65733ffe69 * Added yang-binding yb parameter to xmldb_get0() and all xmldb get functions. Olof hagsand 2020-08-03 13:57:04 +02:00
  • 5911d23efc patch quit startup upgrading Olof hagsand 2020-08-03 13:08:43 +02:00
  • 5b81c43d96 New backend switch: -q : Quit startup directly after upgrading and print result on stdout Olof hagsand 2020-08-03 12:47:48 +02:00
  • daeab85446 removed obsolete example yang, mod cli_dbxml to only append leaf in cli_set Olof hagsand 2020-07-30 22:52:42 +02:00
  • 6fa8bb71d8 fix to error in instance-id-bind patch Olof hagsand 2020-07-28 17:58:40 +02:00
  • d2ccee4eab Added nsctx argument to cli_dbxml() and exposed it as a public function Added function clixon_instance_id_bind() Olof hagsand 2020-07-28 16:11:30 +02:00
  • 3ecc259ec7 misc documentation Olof hagsand 2020-07-28 14:00:09 +02:00
  • 23bcee8185 * Netconf lock/unlock behaviour changed to adhere to RFC 6241 * Changed commit lock error tag from "lock denied" to "in-use". * Changed unlock error message from "lock is already held" to #lock not active" or "lock held by other session". * Fixed [lock candidate succeeded even though it is modified #110](https://github.com/clicon/clixon/issues/110) Olof hagsand 2020-07-28 13:56:44 +02:00
  • 6bd9306423
    Merge pull request #123 from 008agent/no_upgrade_no_revision_defined Olof Hagsand 2020-07-28 12:41:19 +02:00
  • f5d57ae50f fix clauses Vladimir Ratnikov 2020-07-28 06:03:22 -04:00
  • 8b5c77838b Don't call upgrade callbacks for module with no revision defined Vladimir Ratnikov 2020-07-28 05:52:07 -04:00
  • 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. Olof hagsand 2020-07-27 20:03:52 +02:00
  • 918bf6223b added CR delimiters to if-feature Olof hagsand 2020-07-27 13:00:56 +02:00
  • 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. Olof hagsand 2020-07-27 12:06:36 +02:00
  • cb58b2bb12 log warning, error doc Olof hagsand 2020-07-26 16:16:32 +02:00
  • 864e2d1692 Instance-id yang validation checks corrected Olof hagsand 2020-07-26 16:14:39 +02:00
  • ab2f7cbbb4 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-07-25 16:14:42 +02:00
  • 57b104bc25 * Checked yang binding validity which lead to: * Changed and enhanced several bad-element error replies to unknown-element with more detailed error-message. Olof hagsand 2020-07-25 16:09:24 +02:00
  • 4572d94ab1
    Merge pull request #121 from VVIsaev/master Olof Hagsand 2020-07-25 13:15:51 +02:00
  • cc8e727f85 Added error message for each CLICON_YANG_UNKNOWN_ANYDATA occasion Vladimir Isaev 2020-07-20 12:54:37 +03:00
  • b56c0220c9 Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-07-23 20:42:17 +02:00
  • 83203623cd Optimized get config xpath of large lists, such as a[x=1000] in a list of 100000s a:s. Olof hagsand 2020-07-23 20:41:32 +02:00
  • 7b7bb82e0d Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2020-07-23 17:23:26 +00:00
  • 57d7587d9a vagrant, docker and remote test small changes Olof Hagsand 2020-07-23 17:23:08 +00:00
  • 36576143b5 Revised CLICON_YANG_UNKNOWN_ANYDATA patch: dont allow new nodes after initial startup Olof hagsand 2020-07-23 17:04:12 +02:00
  • 9e2bdb8c8e split test_perf into test_perf_netconf, _restconf and _cli Olof hagsand 2020-07-18 15:52:12 +02:00
  • 316cad35ff Another CLICON_YANG_UNKNOWN_ANYDATA issue: top-level unknown namespace caused segv in backend Olof hagsand 2020-07-17 19:03:40 +02:00
  • 490f7d8023 Two CLICON_YANG_UNKNOWN_ANYDATA issues: segv when exiting cli and diff errors on commit Olof hagsand 2020-07-17 14:18:09 +02:00
  • 62446db752 Fixed CLICON_YANG_UNKNOWN_ANYDATA for config and state data. This feature introduced in 4.5 didnt really work. Olof hagsand 2020-07-14 19:56:42 +02:00
  • 863ebd3f93 small changes in error messages and code documentation Olof hagsand 2020-07-14 19:46:12 +02:00
  • 94ad44a2ea Merge branch 'master' of https://github.com/clicon/clixon Olof hagsand 2020-07-12 10:59:23 +02:00
  • 25245a12d2 code documentation Olof hagsand 2020-07-12 10:59:12 +02:00
  • 94bf490a79 made c-compiler configurable, and added /usr/local as include path for cc and c++ tests Olof Hagsand 2020-07-10 13:21:49 +00:00
  • 53deedc242 vagrant tests eg with evhtp Olof Hagsand 2020-07-10 12:33:30 +00:00
  • efc0228f99 test time function exists Olof Hagsand 2020-07-09 10:15:45 +00:00
  • 2d97c1e2c6 handle sanity check removed that triggered c++ linkage errors Olof Hagsand 2020-07-09 08:07:41 +00:00
  • b655d56fb4 new travis Olof hagsand 2020-07-07 22:59:56 +02:00
  • 9470caa1c0 new travis Olof hagsand 2020-07-07 22:57:21 +02:00
  • 931988763b new travis Olof hagsand 2020-07-07 22:55:11 +02:00
  • f11e9f7388 new travis Olof hagsand 2020-07-07 22:50:41 +02:00
  • 81b92ac8b2 new travis Olof hagsand 2020-07-07 22:48:12 +02:00
  • c805c7d04b new travis Olof hagsand 2020-07-07 22:44:32 +02:00
  • 2f6458dd41 new travis Olof hagsand 2020-07-07 22:27:47 +02:00
  • 8db65c59ea new travis Olof hagsand 2020-07-07 22:06:34 +02:00
  • 2a9fb60267 new travis Olof hagsand 2020-07-07 22:01:20 +02:00
  • e420f4911f new travis Olof hagsand 2020-07-07 21:55:05 +02:00
  • 6504fe4e12 new travis Olof hagsand 2020-07-07 21:50:04 +02:00
  • e5f8d43979 multiple travis jobs Olof hagsand 2020-07-07 21:34:21 +02:00
  • e56004352c extended c++ test with runtime rpc test Olof hagsand 2020-07-07 17:28:31 +02:00
  • 4c85fad32f
    Merge pull request #120 from shmuelnatan/my/test Olof Hagsand 2020-07-07 17:10:37 +02:00
  • 853e6734a5 stream curl cant handle -Si flags Olof hagsand 2020-07-07 16:53:54 +02:00
  • 3bb6947d58 test dont force https Olof hagsand 2020-07-07 16:07:29 +02:00
  • a5bf3d57ce tolerate errors in docker startscripts Olof hagsand 2020-07-07 15:51:42 +02:00
  • 5464eec540 Added docker support for three restconf modes: nginx/fcgi(default); evhtp ; and none. Olof hagsand 2020-07-07 13:26:38 +02:00
  • d6580221d3 Add a test_c++.sh for c++ compiling with c++ code and with 32 bit systems. shmuels 2020-07-05 18:20:18 +03:00
  • 5dc2a6387d unified curl test options Olof hagsand 2020-07-03 14:13:15 +02:00
  • 593ed2ef3b Added const char * in multiple places Olof hagsand 2020-07-02 19:25:48 +02:00
  • 0a985e6618 skip c++ tests in travis Olof hagsand 2020-07-02 18:14:59 +02:00
  • e33327bce9 Merge branch 'shmuelnatan-mycpp/new-test' Olof hagsand 2020-07-02 17:57:09 +02:00
  • 639af03edc autoconf c++ compiler Olof hagsand 2020-07-02 17:56:52 +02:00
  • 839dc3231d Merge branch 'mycpp/new-test' of https://github.com/shmuelnatan/clixon into shmuelnatan-mycpp/new-test Olof hagsand 2020-07-02 17:20:38 +02:00
  • b91d48e53b Changed code so that it will be compatible with c++. 1. Added #ifdef extern "C" to public header files. 2. Changed variables that are key words in c++, to different names (like ns instead of namespace). 3. Add a test_c++.sh for c++ compiling. shmuels 2020-07-02 15:44:42 +03:00
  • 11836151d4 Changed code so that it will be compatible with c++. 1. Added #ifdef extern "C" to public header files. 2. Changed variables that are key words in c++, to different names (like ns instead of namespace). 3. Add a test_c++.sh for c++ compiling. shmuels 2020-07-02 15:31:22 +03:00
  • 58ea4eba27 Changed code so that it will be compatible with c++. 1. Added #ifdef extern "C" to public header files. 2. Changed variables that are key words in c++, to different names (like ns instead of namespace). 3. Changed char* to const char* for constant strings. shmuels 2020-07-02 15:00:53 +03:00
  • 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 Olof hagsand 2020-07-02 13:26:15 +02:00
  • eda4a58ebf added c++ configure test Olof hagsand 2020-07-01 22:36:06 +02:00
  • 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 Olof hagsand 2020-07-01 15:11:22 +02:00
  • 9c82e97072 Added http support for evhtp (not only https) Olof hagsand 2020-06-29 14:41:08 +02:00
  • 7ad07e1915 clear test dir Olof hagsand 2020-06-27 13:33:13 +02:00
  • c2e459e8bb Three errors in new upgrade code: DEL didnt work, empty config did now work, neither did no yang files in a dir Olof hagsand 2020-06-27 13:02:04 +02:00
  • 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) Olof hagsand 2020-06-26 14:39:04 +02:00
  • e2b3cdb3f6 Moved restconf_stream.c -> restconf_stream_fcgi.c, made some generaizations and documented what was hardcoded to FCGI Olof hagsand 2020-06-23 15:00:41 +02:00
  • 73bbcded87 Added restconf handle specialization to implement restconf parameters Olof hagsand 2020-06-22 12:47:43 +02:00
  • 1597bd303c changed cligen repo from olofhagsand/cligen to clicon/cligen Olof hagsand 2020-06-21 15:57:43 +02:00
  • 3af184c655 Modify restconf tests to run for both evhtp and fcgi: , curl -sik, etc Olof hagsand 2020-06-21 15:49:46 +02:00
  • 126cc209f4 restconf fcgi refactoring and generalizing restconf tests for evhtp Olof hagsand 2020-06-19 15:19:03 +02:00
  • 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 Olof hagsand 2020-06-18 11:28:47 +02:00
  • 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 Olof hagsand 2020-06-18 09:54:51 +02:00
  • 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) Olof hagsand 2020-06-17 14:04:19 +02:00
  • 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. Olof hagsand 2020-06-16 21:51:00 +02:00
  • c18c40434f Merge branch 'master' of https://github.com/clicon/clixon Olof Hagsand 2020-06-16 07:29:27 +00:00
  • c61c489e8e vagrant fcgi etc Olof Hagsand 2020-06-16 07:29:11 +00:00
  • 5120409a56 Auto-cli updates and sync with clixon-docs Olof hagsand 2020-06-15 16:07:04 +02:00
  • cea5746597 Fixed: The module clixon-rfc5277 was always enabled, but should only be enabled when CLICON_STREAM_DISCOVERY_RFC5277 is enabled. Olof hagsand 2020-06-14 18:01:31 +02:00
  • 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 Olof hagsand 2020-06-13 12:05:26 +02:00
  • e2d9c046af further restconf refactoring Olof hagsand 2020-06-11 21:54:09 +02:00
  • ff5462ecac Replaced the global variable debug with access function: clicon_debug_get(). Olof hagsand 2020-06-09 16:04:49 +02:00
  • 718f494549 centos test fixes Olof Hagsand 2020-06-08 18:48:18 +00:00
  • 46738d4b37 vagrant centos8 and freebsd Olof Hagsand 2020-06-08 13:07:34 +00:00
  • ab73794292 * Added [Vagrant tests](test/vagrant/README.md) * Fixed memleak in restconf-fcgi Olof Hagsand 2020-06-08 08:16:42 +00:00
  • 7ffa2920a4 * Removed printfs in xpath-equal code Olof hagsand 2020-06-06 12:34:48 +02:00
  • e21e1afdc4 Merge branch 'native-http' Olof hagsand 2020-06-06 11:37:24 +02:00
  • 14b03f63a3 all clixon event functions prepended with clixon_ Replaced fcgi getparam code with clixon-data parameters Olof hagsand 2020-06-05 16:19:03 +02:00
  • a455b15f03 Changed --with-restconf directive to have package as argument, with either null, evhtp or fcgi. This effects configure script and makefiles Olof hagsand 2020-06-04 11:26:38 +02:00
  • bb3593bb99 evhtp next step Olof hagsand 2020-06-04 09:07:22 +02:00
  • e00dffadc5 libevht baseline Olof hagsand 2020-06-02 15:49:40 +02:00
  • 290558e7fa libhttp mods Olof hagsand 2020-06-02 10:13:15 +02:00