Commit graph

176 commits

Author SHA1 Message Date
Felix Fontein
65034de769
Replace deprecated v1 codecov updater with v2. (#54) 2021-10-14 15:23:00 +02:00
Felix Fontein
e158fcf0ae Release 2.0.0-a2. 2021-10-14 08:33:45 +02:00
Felix Fontein
f6e929ae3a Prepare 2.0.0-a2 release. 2021-10-13 07:52:55 +02:00
Felix Fontein
d73eb1c144
Add module_utils and filters for quoting and unquoting (#53)
* Move splitting code to own file.

* Move list to dictionary code to quoting as well.

* Add quoting functionality.

* Add quoting filters.

* Add integration tests to CI.

* Fix bugs, increase coverage.

* Make parsing more strict.

* Extract function parse_argument_value from split_routeros_command to make proper parsing of WHERE possible.

* Adjust expected error message in integration tests.

* Simplify code and improve coverage.

* Add changelog fragment for WHERE strictness in api module.

* Add documenation.

* Fix typo.

* Add documentation references.

* Add example to api module which uses quote_argument_value.

* Fix bug, and add tests which prevent this in the future.

* Add more escape sequence tests.

* Make sure all control characters are quoted.
2021-10-12 00:44:40 +03:00
Felix Fontein
f9d246cd7a
Make command always return changed=true. (#50) 2021-10-09 13:36:14 +02:00
Akim Lindberg
5042905471
fix(api): fixed a bug when splitting the argument string (#45)
* fix(api): fixed a bug when splitting the argument string

* fix(api): added the shlex module for splitting

* fix(api): added the shlex module for splitting

* fix(api): moved shlex.split to self method split_params

* Fix indentation.

* Implement custom splitting algorithm.

* Raise AssertionError in case of internal error.

* Update plugins/modules/api.py

this is correct thanks !

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

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Nikolay Dachev <nikolay@dachev.info>
2021-09-29 15:02:28 +02:00
Felix Fontein
f432b1fa07
Update CI matrix to include ansible-core's stable-2.12 branch (#52)
* Update CI matrix to include ansible-core's stable-2.12 branch.

* Adjust README.
2021-09-28 15:35:05 +02:00
Felix Fontein
f99202812a Prepare ansible-core devel branch version bump that is planned for later today. 2021-09-24 18:45:56 +02:00
Felix Fontein
48c7920072
Improve split handling. (#47) 2021-09-09 23:19:57 +03:00
Felix Fontein
a88f4c804b
Fix sanity failures (#43)
* Fix sanity failures.

* Add changelog fragment.
2021-08-12 08:53:21 +02:00
Felix Fontein
bd113788ef Release 2.0.0-a1. 2021-07-31 11:16:14 +02:00
Felix Fontein
42babbe50f 2.0.0 -> 2.0.0-a1. 2021-07-31 11:13:25 +02:00
Felix Fontein
b45fd9415f Next version on main branch will be 2.0.0. 2021-07-11 15:54:16 +02:00
Felix Fontein
69682054e1
Allow api module to fail (#39)
* Allow api module to fail.

* Improve error handling.

* Fix api unit tests.

* Add very basic tests of return values.

* Update api.py

fix ignoring the Fail task if we get TrapError

* Do not mangle fail result, and adjust tests.

* Improve changelog fragment.

* Reclassify changelog fragment as minor_changes, improve text.

* Mark changelog as 'breaking change'.

Co-authored-by: Nikolay Dachev <nikolay@dachev.info>
2021-07-11 15:53:22 +02:00
Felix Fontein
df88a7ec99
Use devel docs links. (#41) 2021-07-07 13:29:49 +02:00
Felix Fontein
3e4427b53a
Fix extra-tests name. (#40) 2021-07-04 12:07:47 +02:00
Felix Fontein
4a6e2df45c Next expected release is 1.3.0. 2021-06-29 18:40:02 +02:00
Felix Fontein
efc563aaac Release 1.2.0. 2021-06-29 18:27:16 +02:00
Felix Fontein
12181c8dc0 Prepare 1.2.0 release. 2021-06-28 22:22:56 +02:00
Felix Fontein
75b4b966a6
Add options to control certificate validation for api module (#37)
* Add options to control certificate validation for api module.

* Linting.

* Extend documentation.

* Fix validate_cert_hostname=true.

* Add documentation on setting up certificates on a RouterOS device.
2021-06-28 20:33:37 +02:00
Felix Fontein
937aa0dbfa
Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#38)
* Replace ansible.module_utils._text by ansible.module_utils.common.text.converters.

* One more.
2021-06-27 09:53:45 +02:00
Felix Fontein
39dcf4ac5b
Add basic scenario guides (#36)
* Add extra docs.

* Mention more quirks.

* Work around RST quirks.
2021-06-23 21:18:00 +02:00
Jadyn
b45baaa158
Disable use of deprecated Ciphers (#34)
* Disable use of depricated Ciphers

Old ciphers shouldn't be used. Devices that use newer ciphers couldn't be reached as the cipher was locked to sslv3.

* chore: add changelog fragment
2021-06-15 19:14:34 +02:00
Felix Fontein
1913a0d4bf
Improve CI. (#35) 2021-06-14 11:23:35 +00:00
Felix Fontein
0b25643712
Clarify Windows (non-)support (#29)
* Clarify Windows (non-)support.

* Rewrite.
2021-05-11 08:19:00 +02:00
Felix Fontein
6bed4d1c90
Update Python versions for integration tests: add Python 3.10 (#30)
* Update Python versions for integration tests (that currently do not exist).

* 3.10 in YAML is 3.1...
2021-05-10 19:28:05 +02:00
Felix Fontein
055a07822e
Add ansible-test config file. (#28) 2021-05-01 22:20:26 +02:00
Felix Fontein
e797f2e07d
ansible/ansible's stable-2.11 branch has been created. (#26) 2021-04-06 05:10:50 +00:00
Petr Klíma
1c18d34536
Verbose config extra fact (#23)
* allow nonverbose idempotent config

* nonverbose config output

* typpo

* typpo

* release fragment

* config extra fact

* add fact ansible_net_config_nonverbose

* unit tests

* changelog fragments

* remove version fragment

* remove extra debug printf()

* update chlog fragment

* corrections for upstream pull request

* corrections for upstream pull request

* typo in changelog fragment

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

* typo in filename

Co-authored-by: Petr Klima <petr.klima@madeta.cz>
Co-authored-by: Felix Fontein <felix@fontein.de>
2021-03-29 19:05:10 +02:00
Felix Fontein
7bab58eae9
Stop using ansible-galaxy collection install to install a collection due to https://github.com/ansible/galaxy/issues/2429. (#24) 2021-03-27 09:57:59 +01:00
Felix Fontein
36ff772aaa Next regular release is 1.2.0. 2021-01-04 13:21:10 +01:00
Felix Fontein
5c11a27345 Release 1.1.0. 2021-01-04 13:20:42 +01:00
Felix Fontein
992d5b3025 Add release summary. 2021-01-03 21:43:38 +01:00
Felix Fontein
99ede01d63
Fix plugin 'name'. (#19) 2020-12-25 10:45:55 +03:00
Egor Zaitsev
389924be6e
feat: support dashes in username (#18)
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-12-24 14:46:05 +03:00
Egor Zaitsev
b322351c11
docs: add note about hostnames and nested commands (#16)
* docs: add note about hostnames and nested commands

* docs: clarify command nesting

* Update README.md

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

Co-authored-by: Felix Fontein <felix@fontein.de>
2020-12-18 13:12:08 +01:00
Felix Fontein
fbc47fb503 Next expected release is 1.1.0. 2020-12-11 21:04:39 +01:00
Felix Fontein
e1534da6aa Release 1.0.1. 2020-12-11 20:44:27 +01:00
Felix Fontein
5526cc1a1e Prepare 1.0.1 release. 2020-12-11 20:42:01 +01:00
Nikolay Dachev
6c618cab26
remove .id restriction for list_to_dic (#15)
* remove .id restriction for list_to_dic

* add change log

* Update changelogs/fragments/13-remove-id-restriction-for-api.yaml

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

Co-authored-by: dako <dako@syslin.sof.dachev.lan>
Co-authored-by: Felix Fontein <felix@fontein.de>
2020-12-10 23:43:03 +02:00
Felix Fontein
649809b2be
Fix bool default value. (#12) 2020-11-22 20:46:05 +03:00
Felix Fontein
32bcf8b02c Bump to next minor release. 2020-11-17 07:25:50 +01:00
Felix Fontein
a562080159 First non-prerelease release. 2020-11-17 07:24:42 +01:00
Felix Fontein
58b518ac3b Prepare 1.0.0 release. 2020-11-17 07:23:53 +01:00
Felix Fontein
95da72ce90
Add preliminary documentation links. (#10) 2020-11-10 08:11:13 +02:00
Felix Fontein
49ca4c0279
Update routeros.py (#138) (#9)
* Update routeros.py

Adjust the terminal detection line to support forward slashes in device hostnames (connections fail without clear reason otherwise)

* Add changelog fragment.

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 3f3e0d0)

Fore-ported from ansible-collections/community.network#138.
2020-11-09 14:47:22 +03:00
Felix Fontein
70208c0401 Add path translation for codcov. 2020-11-07 17:10:58 +01:00
Felix Fontein
c4ccca40eb Bump version. 2020-10-31 14:32:36 +01:00
Felix Fontein
1dc9011830 Release 0.1.1. 2020-10-31 14:32:22 +01:00
Felix Fontein
63057d96e4 Prepare 0.1.1 release. 2020-10-31 14:31:53 +01:00