Commit graph

222 commits

Author SHA1 Message Date
hansmi
b7569b9dfd
Add support for "ipv6 firewall nat" (#204)
RouterOS supports NAT for IPv6 under the `ipv6 firewall nat` path.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-26 11:23:00 +02:00
hansmi
adff9bbf8c
Finalize fields for "interface wireless security-profiles" (#203)
A few fields were missing for `interface wireless security-profiles`
(e.g. `disabled`). `default` on the other hand is a built-in property
which can't be modified.

Mark the `interface wireless security-profiles` path as fully understood
to enable its use in Ansible tasks.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-21 21:32:43 +02:00
hansmi
11d83bffe6
Add "apn", remove "running" property for ppp-client interfaces (#202)
Commit 2164261 added support for `interface ppp-client`. It missed the
`apn` property and added the runtime-only `running` property.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-20 21:25:33 +02:00
hansmi
b0a4743de8
Add support for "user settings" (#201)
The `user settings` path contains settings related to passwords.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-20 14:20:16 +02:00
hansmi
343c4883c0
Add support for "routing filter {rule|select-rule}" (#200)
RouterOS 7 added route selections and filters
(https://help.mikrotik.com/docs/display/ROS/Route+Selection+and+Filters).

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-20 14:19:11 +02:00
hansmi
2164261e09
Add "interface ppp-client" to API data (#199)
The default values match those of RouterOS 7.11 on a Mikrotik
RB924i-2nD-BT5&BG77 ("Knot").

Upstream documentation: https://help.mikrotik.com/docs/display/ROS/PPP

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-20 14:17:49 +02:00
hansmi
1aa41ad375
Support "mode" in IPv4 neighbor discovery configuration (#198)
RouterOS 7.7 added a `mode` parameter to the IPv4 neighbor discovery
configuration.

Changelog: https://forum.mikrotik.com/viewtopic.php?t=192427

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-20 14:17:14 +02:00
hansmi
e4a21311a1
Add "interface wireless" to API data (#195)
The default values match those of RouterOS 7.11 on a Mikrotik
RB924i-2nD-BT5&BG77 ("Knot"). They're cross-checked with upstream
documentation[1].

[1] https://help.mikrotik.com/docs/display/ROS/Wireless+Interface

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-20 14:15:38 +02:00
hansmi
2e1159b4c4
Support "address-list" and "match-subdomain" in static DNS records (#197)
RouterOS 7.5 added `address-list` and `match-subdomain` as fields for
static DNS records.

Changelog: https://forum.mikrotik.com/viewtopic.php?t=188851

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-20 14:11:04 +02:00
hansmi
3b127b12fa
Sort "interface wireless security-profiles" with other wireless paths (#196)
Move the API data for `interface wireless security-profiles` to be in
order with the other entries for `interface wireless …`.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-16 22:44:59 +02:00
Felix Fontein
ed2f326a6a Release 2.9.0. 2023-08-15 07:10:11 +02:00
derdeagle
53bb84ba2a
Fixes #193: Add caps-man channel and caps-man manager interface (#194)
* Fixes #193: Add caps-man channel and caps-man manager interface

Adding the caps-man channel path from scratch.
Activating the caps-man manager interface path.

* Add changelog fragment and documentation for both paths

---------

Co-authored-by: Johannes Münch <git@washiza.eu>
2023-08-12 15:57:00 +02:00
Felix Fontein
d6f90e6937 Prepare 2.9.0 release. 2023-07-23 21:49:31 +02:00
derdeagle
6e62283120
Fixes #191: Add path 'ip traffic-flow target' (#192)
* Fixes #191: Add path 'ip traffic-flow target'

* Fixes #191: Add changelog fragment

* Fixes #192: Change changetype from major to minor as it is only adding a path and neither breaking existing things nor adding completely new functionality

---------

Co-authored-by: Johannes Münch <git@washiza.eu>
2023-07-23 21:27:32 +02:00
derdeagle
e570c582d0
Fixes #189: Add missing /snmp parameter "engine-id-suffix" (#190)
* Fixes #189: Add missing /snmp parameter "engine-id-suffix"

* Fixes #189: Add changelog fragment after getting PR ID

* Update changelogs/fragments/180-fix-engine-id-suffix-in-snmp.yml

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

---------

Co-authored-by: Johannes Münch <git@washiza.eu>
Co-authored-by: Felix Fontein <felix@fontein.de>
2023-07-16 21:15:48 +02:00
Felix Fontein
553a77aa91
Install and use Python 3.11 on RHEL UBI 9. (#188) 2023-07-12 19:24:44 +02:00
Felix Fontein
13e68fc906
Disable EE with ansible-core devel for now until UBI 9 has Python 3.10 support. (#187) 2023-07-12 08:12:37 +02:00
Felix Fontein
61c6b1dca8 Release 2.8.3. 2023-06-27 07:19:22 +02:00
Felix Fontein
ce7b2ef144 Prepare 2.8.3. 2023-06-22 21:24:40 +02:00
Felix Fontein
9d505ce903 Fix docs. 2023-06-22 20:56:51 +02:00
Felix Fontein
2333efcf0f Be lenient. 2023-06-22 20:42:09 +02:00
Felix Fontein
2e78a207e9
Use semantic markup (#185)
* Enable semantic markup.

* Use semantic markup.

* Break long lines.

* Add ignore entries.

* Ignore docs build error.
2023-06-22 13:18:08 +02:00
Felix Fontein
08c8c7ecc8
CI: Bump hard-coded Python versions to 3.11; drop Python 3.9 with devel. (#183) 2023-06-21 08:19:31 +02:00
Felix Fontein
1fb6915819 Release 2.8.2. 2023-06-19 16:42:18 +02:00
Felix Fontein
b7ef2fe1f8 Prepare 2.8.2 release. 2023-06-19 13:13:14 +02:00
derdeagle
af28e6419f
Fixes #179: Add missing /tool/e-mail parameter "tls" (#180)
* Fixes #179: Add missing /tool/e-mail parameter "tls"

In the
[documentation](https://help.mikrotik.com/docs/display/ROS/E-mail#Email-Properties) the parameter "tls" is mentioned but it cannot be used. The old "start-tls" parameter is not mentioned there (only on the [old documentation](https://wiki.mikrotik.com/wiki/Manual:Tools/email#Properties)).
Trying to use the paramter "tls" lead to the erro message `FAILED! => {"changed": false, "msg": "Unknown key \"tls\"."}`.

* Add changelog fragment

* Update changelogs/fragments/180-fix-tls-in-tool-email.yml

As suggested by felixfontein

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

---------

Co-authored-by: Johannes Münch <git@washiza.eu>
Co-authored-by: Felix Fontein <felix@fontein.de>
2023-06-19 13:12:20 +02:00
Felix Fontein
d098c209e7 Release 2.8.1. 2023-06-14 17:35:45 +02:00
Felix Fontein
9cfb31ab18 Prepare 2.8.1 release. 2023-06-09 06:08:40 +02:00
Felix Fontein
42ea132d60
Fix bug in preprocessing when wrapped line is appended to a non-existing entry. (#177) 2023-06-09 06:03:42 +02:00
Felix Fontein
2b8c66b983
Switch to Ansible Galaxy compatible requirements files for tests. (#173) 2023-05-21 13:48:07 +02:00
Felix Fontein
4ec0945e55
Rewrite EE test workflow to use ansible-builder 3.0.0 (#171)
* Rewrite EE test workflow to use ansible-builder 3.0.0.

* Extend list of potential errors.
2023-05-20 12:11:45 +02:00
Felix Fontein
dd1e48c388
Do extra docs validation; explicitly disallow semantic markup in docs (#165)
* Do extra docs validation. Explicitly disallow semantic markup in docs.

* Forgot to add new requirement.

* Improve test.

* TEMP - make CI fail.

* Remove unnecessary import.

* Make sure ANSIBLE_COLLECTIONS_PATH is set.

* Revert "TEMP - make CI fail."

This reverts commit 445c56e7e1bcd844be59f1df9df00a9c8334ff55.

* Make sure sanity tests from older Ansible versions don't complain.
2023-04-16 19:01:53 +02:00
Felix Fontein
e5eff0b90e Fix order. 2023-04-16 18:16:19 +02:00
Felix Fontein
a7f47c0419 More fixes. 2023-04-16 18:01:19 +02:00
Felix Fontein
0caec0f2c3
Fix bad comma. (#166) 2023-04-16 16:08:57 +02:00
Felix Fontein
189088611d
Update CI matrix: add stable-2.15 (#163)
* Add ignore files for bumped devel version.

* Update CI matrix.
2023-04-04 06:12:43 +00:00
Felix Fontein
c1bd819db5 Release 2.8.0. 2023-03-23 22:14:38 +01:00
Felix Fontein
07a3311792 Prepare 2.8.0 release. 2023-03-23 21:28:31 +01:00
Sam Grimee - LX2SG
c1a6ae8658
Workaround prompt issues between ROS 6.49 and 7.1.5 (#62) (#161)
* Prompt support for ROS 6.49+ (#62)

* More precise version match (#62)

* Add changelog fragment and lint (#62)

* Update changelogs/fragments/161-workaround-prompt-with-space.yml

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

* Vendor version package to support older ansible versions (#62)

* Update plugins/module_utils/routeros.py

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

* Update plugins/module_utils/routeros.py

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

* move PSF-2.0.txt to LICENSES folder

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2023-03-23 21:25:23 +01:00
Felix Fontein
4329928474
ip dhcp-client: dhcp-options can be removed with value '' (#154)
* dhcp-options can be removed with value ''.

* Fix handling of disabled keys on creation.

* Fix typo.
2023-03-19 13:14:55 +01:00
phox142
071f742100
Adapt SNMP support (#159)
* snmp support

* Add changelog fragment

* Update changelogs/fragments/159-snmp_community.yml

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

* Update changelogs/fragments/159-snmp_community.yml

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2023-03-11 18:17:26 +01:00
phox142
720debb323
Add support to disable ipv6 in API paths `ipv6 settings` (#158)
* add support to disable ipv6

* Add changelogs fragment

* Update changelogs/fragments/158-ipv6_settings-disable.yml

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2023-03-11 18:16:43 +01:00
phox142
4d86ba1a7d
Correction and Bugfix for ip dhcp-server network (#156)
* API_DATA > ('ip', 'dhcp-server', 'network') > netmask
replace "automatically_computed_from" by 'can_disable=True, remove_value=0'
automatically_computed_from does not seem to be used at any place in the code
without 'can_disable=True, remove_value=0' task is marked as changed at each execution.

* API_DATA > ('ip', 'dhcp-server', 'network') > next-server
replace "default=''" by 'can_disable=True'
The default in routeros is "no value" and it was not possible to remove a configured next-server

* API_DATA > ('ip', 'dhcp-server', 'network') > gateway
replace "automatically_computed_from" by "default=''"
automatically_computed_from does not seem to be used

* API_DATA > ('ip', 'dhcp-server', 'network') > dns-none
replace "default=''" by "default=False"

* Add changelogs fragment

* Update changelogs/fragments/156-ip_dhcp-server_network.yml

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2023-03-10 07:01:26 +01:00
phox142
ab87a27018
Add support for "ip firewall layer7-protocol" (#153)
* Add support for "ip firewall layer7-protocol"

* Add changelog fragment

* Add changelog fragment
2023-02-27 22:37:00 +01:00
Felix Fontein
bbf5be5d71
Normalize bools in documentation. (#151) 2023-02-15 22:28:50 +01:00
Felix Fontein
d39b3522ab Remove unnecessary import. 2023-02-12 21:22:30 +01:00
Felix Fontein
1dfa79c5ef
Remove unnecessary test imports. (#150) 2023-02-12 21:17:22 +01:00
Felix Fontein
622680fe3f
Remove unneccessary imports (#149)
* Remove unneccessary imports.

* Add noqas.
2023-02-06 07:42:39 +01:00
Felix Fontein
e7dafebc7a Release 2.7.0. 2023-01-14 15:15:46 +01:00
Felix Fontein
7166a0b35c Prepare 2.7.0 release. 2023-01-14 14:12:35 +01:00