Commit graph

176 commits

Author SHA1 Message Date
Felix Fontein
3c0ad57eb5
Extend API support. (#110) 2022-09-11 17:25:25 +02:00
TobsA
776b599ffe
Added timeout setting for api. (#109)
* Added timeout setting for api.

* Added changelog fragment

* Added "version_added" to api doc

* Added "," for better diff

* Fixed case and punctuation in changelog

Co-authored-by: Felix Fontein <felix@fontein.de>

* Fixed url in changelog fragment

Co-authored-by: Felix Fontein <felix@fontein.de>
2022-09-07 21:10:11 +02:00
Felix Fontein
47bbf95fa3 Fix workflow's permissions. 2022-08-21 11:35:29 +02:00
Felix Fontein
d77cd95f91
Make reuse conformant (#108)
* Add .license files.

* Add reuse test.

* Update README.

* Add changelog fragment.

* Normalize licenses extra sanity test.

* Declare REUSE conformance.

* Update README.
2022-08-21 08:31:42 +02:00
Felix Fontein
615b9e6952 Release 2.2.1. 2022-08-20 20:10:10 +02:00
Felix Fontein
a642f0b9eb Prepare 2.2.1 release. 2022-08-13 10:56:50 +02:00
Felix Fontein
f797b4a231
Support absent values. Support absent value 'all' for 'server' in /ip dhcp-server lease. (#107) 2022-08-13 10:55:37 +02:00
Felix Fontein
a2ace3fb79
Add missing options for 'ip dhcp-server network'. (#106) 2022-08-13 10:54:48 +02:00
Felix Fontein
96c6feff8e Revert "Fix CI."
This reverts commit ec98df2f49.
2022-08-11 22:43:19 +02:00
Felix Fontein
ec98df2f49 Fix CI. 2022-08-10 20:44:32 +02:00
Felix Fontein
98bb520ce7
Use ansible-community/ansible-test-gh-action for CI (#103)
* Use ansible-community/ansible-test-gh-action for CI

Based upon https://github.com/ansible-collections/collection_template/pull/29.

* Avoid trailing ';'.

* Fix relative paths for collection installs.

* Try multi-line command.

* Prevent trailing newline.
2022-08-04 22:34:00 +02:00
Felix Fontein
af6524a1fd
Fix docs. (#105) 2022-08-04 14:32:01 +02:00
Felix Fontein
a66bb78d7f Release 2.2.0. 2022-07-31 22:30:07 +02:00
Felix Fontein
fa13c5f9cb Prepare 2.2.0 release. 2022-07-31 22:08:09 +02:00
Felix Fontein
2911710f1b
Add api_info and api_modify modules (#91)
* Add api_info and api_modify modules.

* Add documentation, and cross-references for the modules.

* Bump version added for new modules.

* Ignore dynamic entries. Allow _info module to return them.

* Document behavior for dynamic entries.

* Update license headers.

* Add disclaimer.

* Improve formulation.

* Auto-generate path list in DOCUMENTATION.

* Add test to make sure lists have been generated automatically.
2022-07-31 22:06:19 +02:00
Felix Fontein
1abaa8e7ca
Improve sanity test, improve README. (#102) 2022-07-20 23:05:15 +02:00
Felix Fontein
7973f58661
Move licenses to LICENSES/, use SPDX-License-Identifier, mention all licenses in galaxy.yml, add missing license file (#101)
* Add SPDX license identifiers, mention all licenses in galaxy.yml.

* Add default copyright headers.

* Adjust remaining/missing entries.

* Fix/add more copyright statements.

* Add sanity test.

* Add changelog.

* Add missing license file.

* Remove colon after 'Copyright'.

* Avoid colon after 'Copyright' in lint script.
2022-07-18 23:16:54 +02:00
Felix Fontein
49fb46c4a3
Add docs PR workflow that a) builds docs and b) show the docs diff that a PR ceates. (#99) 2022-06-29 21:12:24 +02:00
Felix Fontein
b02cb44c1b
Improve CI. (#97) 2022-06-11 20:06:02 +00:00
Felix Fontein
3a34bb9ba4 Release 2.1.0. 2022-05-25 06:27:08 +02:00
Felix Fontein
6e104c962b
Extend documentation. (#96) 2022-05-24 22:51:27 +02:00
Felix Fontein
023f11f7e1
Add encoding option to API modules (#95)
* Set encoding to UTF-8.

* Add encoding parameter to API modules.

* librouteros is now patched.
2022-05-24 22:19:26 +02:00
Felix Fontein
7452195071 Prepare 2.1.0 release. 2022-05-24 18:39:59 +02:00
Felix Fontein
ff66ba9289
Add api_find_and_modify module. (#93) 2022-05-24 18:23:44 +02:00
Nikolay Dachev
d57de117f5
update community.routeros.api query functionality (#63)
* update query to accept multiple librouteros ADN parameters

* update query for new yml strucutre

* add extended_query as separate function:(code in progress)

* extended_query main code is ready for review

* add changelog #63

* small fix for code indentation

* fix pep

* clear all pep issues

* extended_query ready for review (new yml structure)

* small doc fix for std query

* Update changelogs/fragments/63-add-extended_query.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update changelogs/fragments/63-add-extended_query.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update argument spec.

* Other suggestions.

* Fix syntax errors ('is' and 'or' are keywords).

* Make everything work again.

* Add docs, simplify code.

* Add some first tests.

* Do not add fake message when there is no search result.

* Improve tests.

* Fix tests.

* update extened query docs and ros api module examples

* fix pep plugins/modules/api.py:154:1: W293: blank line contains whitespace

* fix extended query example intend

* Update plugins/modules/api.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/api.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* fix example docs

Co-authored-by: dako <dako@syslin.sof.dachev.lan>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-05-23 14:44:02 +03:00
Felix Fontein
109e534976
ansible-core's devel version supports Python 3.11. (#94) 2022-05-22 17:14:53 +02:00
Felix Fontein
5f912dad16
Improve unit test performance. (Do not install library we do not use in the tests anyway.) (#92) 2022-05-15 22:42:26 +02:00
Felix Fontein
ea782c1cf2
Add module defaults group community.routeros.api. (#90) 2022-05-13 13:18:28 +02:00
Felix Fontein
3d80ccec5f
Add api_facts module (#88)
* Add API docs fragment.

* Improve documentation.

* Move API code to api module_utils.

* Improve docs.

* Add api_facts module.

Does not yet support 'config'. I'm not sure whether that's actually
possible with the API.

* Convert subnet to integer if possible.

* Cleanup.

* Linting and fix tests.

* Remove things that make no sense.

* Simplify code.

* Add basic tests.

* Lint.
2022-05-12 16:17:43 +02:00
Felix Fontein
a90c696589
Correctly handle \_ escape sequence. (#89) 2022-05-09 22:09:08 +02:00
Felix Fontein
02ecc0ca9d
Add filter documentation (#87)
* Add filter documentation.

* Update no-unwanted-files sanity check.
2022-04-30 16:40:59 +02:00
Felix Fontein
d56410b468
Accept new error. (#85) 2022-04-27 09:26:03 +02:00
Felix Fontein
0815b11bbf
Increase verbosity for EE tests (#84)
* Increase verbosity for EE tests.

* 2.9 compatibility.
2022-04-16 07:09:02 +02:00
Felix Fontein
30afb61f86
Make EE ready. (#83) 2022-04-15 17:22:39 +00:00
Felix Fontein
e22433b179
Schedule nightly CI at 5:15. (#81) 2022-04-15 15:07:03 +02:00
Felix Fontein
ebe6e93773
Bump codecov action. (#79) 2022-04-14 22:38:38 +02:00
Felix Fontein
7b3900fd6e
Update GHAs. (#77) 2022-04-11 09:03:47 +02:00
Felix Fontein
cf2882772f
Switch from antsibull to antsibull-docs. (#75) 2022-04-10 10:52:48 +02:00
Felix Fontein
3e39e8473f
Replace antsibull-lint collection-docs with antsibull-docs lint-collection-docs. (#73) 2022-03-30 08:06:30 +02:00
Felix Fontein
a8ba15e556
Add stable-2.13 to CI. (#72) 2022-03-29 06:16:43 +02:00
Felix Fontein
5105c423c8
Add collection links file. (#71) 2022-03-22 07:04:34 +01:00
Nikolay Dachev
a46c7df15c
Fix query (#68)
* fix issues #67

* fix query id check

* add changelog fragment

* fix changelog fragment new line

* fix changelog fragment new line2

* Update changelogs/fragments/68-fix-query-id-check.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2022-02-10 07:53:08 +01:00
txt-file
e9fdf19253
fix typo (#64) 2022-01-22 08:26:53 +01:00
Felix Fontein
1deeb9f372 Restrict branches for which to run tests. 2021-11-25 21:21:55 +01:00
Felix Fontein
656c115697
Also collect coverage during sanity tests. (#59) 2021-11-25 20:59:19 +01:00
Felix Fontein
e74687a8e0 Add patchback config. 2021-11-16 22:03:31 +01:00
Felix Fontein
4603507713
Restrict librouteros for Ansible 2.9 unit tests. (#57) 2021-11-16 22:00:07 +01:00
Felix Fontein
26b341f332 Release 2.0.0 2021-10-31 15:30:38 +01:00
Felix Fontein
9cb843b872 Prepare 2.0.0 release. 2021-10-31 15:11:49 +01:00
Felix Fontein
4ccd70cc8f
Fix sanity errors. (#55) 2021-10-19 13:04:30 +01:00