Commit graph

47 commits

Author SHA1 Message Date
derdeagle
e4e5f64b46
Add '/routing bgp template' path (#243)
* Add '/routing bgp template' path

* Add changelog fragment

* Update changelogs/fragments/243-add-routing-bgp-template-path.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-12-26 16:46:40 +01:00
derdeagle
4fff1f1bbb
Add '/interface ovpn-client' path (#244)
* Fixes #242: Add '/interface ovpn-client' path

* Add changelog fragment

* Update changelogs/fragments/244-add-interface-ovpn-client-path.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-12-26 16:46:21 +01:00
Yuri Timenkov
c5e51f9a93
Support for WifiWave2. (#226)
* Support for WifiWave2.

Added configuration profiles to configure Mikrotik APs which
have only WifiWave2 package.

* Addressed review comments

1. Sorted lexicographically new entries
2. Added versioning

* Added few related paths

* Fixed typos

* Lowered min version

* Added wifiwave2 interfaces

* Added upper version limit to WifiWave2

According to the documentation, new RouterOS version uses another
package.

* Addressed review comments
2023-12-14 07:51:48 +01:00
Felix Fontein
ac89aa0ab7
Allow to declare some versions as unsupported, and to provide an explicit message. (#238) 2023-12-07 08:01:47 +01:00
Andrei Costescu
a6979c7f3d
Support routing id and bgp connection (#220)
* Support "/routing id"

https://help.mikrotik.com/docs/pages/viewpage.action?pageId=59965506

* Support "/routing bgp connection"

https://help.mikrotik.com/docs/display/ROS/BGP#BGP-ConnectionMenu

* Add changelog fragment

* Add period.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2023-10-07 14:38:37 +02:00
Andrei Costescu
226649ac13
Add upnp interfaces, graphing interface and resource (#227)
* Add ip upnp interfaces

* Add tool graphing interface and resource

* Update changelog
2023-10-07 14:25:52 +02:00
hansmi
9b4774c78d
Add support for the "port remote-access" path (#224)
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-10-07 14:25:11 +02:00
hansmi
29a01ea240
Add support for the "ip dhcp-server option" path (#223)
Make it possible to manage IPv4 DHCP server options.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-10-07 14:24:56 +02:00
hansmi
d235437f8f
Add support for the "user" path (#211)
Make it possible to manage users via the `user` path.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-09-18 06:48:13 +02:00
hansmi
d601e10e22
Add support for "tool netwatch" (#216)
Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/Netwatch

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-09-17 14:37:54 +02:00
hansmi
2bbaf26484
Finalize fields for "ppp profile" (#217)
A few defaults were missing for `ppp profile`. Mark the path as fully
understood to enable its use in Ansible tasks.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-09-17 14:37:29 +02:00
Felix Fontein
cf6c79e1b3
Implement basic support for read-only and write-only keys in api_info and api_modify (#213)
* Implement basic support for read-only and write-only keys in api_info and api_modify.

* Do not show write-only fields as 'disabled'.
2023-09-17 14:34:09 +02:00
hansmi
4d8ebaeb8d
Add support for "routing table" (#215)
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-09-10 21:46:14 +02:00
Felix Fontein
4b0995135c
Allow to differ on API paths based on RouterOS version (1/2) (#209)
* Allow to provide definition for path based on API version.

* The paths added in 343c4883c0 are RouterOS 7+.
2023-09-01 22:27:18 +02:00
hansmi
193218446a
Add support for "iot modbus" (#205)
The default values match those of RouterOS 7.11 on a Mikrotik
RB924i-2nD-BT5&BG77 ("Knot").

Upstream documentation:
https://help.mikrotik.com/docs/pages/viewpage.action?pageId=61046813

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-08-26 11:23:14 +02:00
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
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
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
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
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
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
e5eff0b90e Fix order. 2023-04-16 18:16:19 +02: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
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
Tomas Herfert
f38b01d7bb
API update (#144)
* API update

Signed-off-by: Tomas Herfert <herfik>

* fix changelog fragment directory

Signed-off-by: Tomas Herfert <herfik>

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
2023-01-01 22:18:24 +01:00
Andrei Costescu
586edbc211
Add regexp field to ip dns static (#142)
* Add regexp field to "ip dns static"

* Change test_invalid_required_missing to use "ip dhcp-server"

"ip dns static" requires name or regexp so it cannot be used in this test.

* Add required_one_of attribute to APIData

Used by "ip dns static" which requires either "name" or "regexp.

* Add mutually_exclusive attribute to APIData

Used by "ip dns static" where only one of "name" or "regexp" can be used.

* Add changelog fragment
2022-12-29 08:51:40 +01:00
Andrei Costescu
62da7dd4e3
Add wireguard interface and peers (#143)
* Add wireguard interface and peers

* Add changelog fragment
2022-12-27 21:41:42 +01:00
Tomas Herfert
4376906ed0
Paths (#137)
* support for "interface ethernet poe" and "interface vrrp"

Signed-off-by: Tomas Herfert <herfik>

* support "interface gre6" path

Signed-off-by: Tomas Herfert <herfik>

* ip dhcp-server - fix

Signed-off-by: Tomas Herfert <herfik>

* docs & changelog

Signed-off-by: Tomas Herfert <herfik>

* support for "interface ethernet poe" and "interface vrrp"

Signed-off-by: Tomas Herfert <herfik>

* support "interface gre6" path

Signed-off-by: Tomas Herfert <herfik>

* ip dhcp-server - fix

Signed-off-by: Tomas Herfert <herfik>

* docs & changelog

Signed-off-by: Tomas Herfert <herfik>

* Apply suggestions from code review

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

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-11-29 13:06:02 +01:00
Tomas Herfert
5af14a8940
support for new API paths and few updates (#133)
* support for new API paths and few updates

Signed-off-by: Tomas Herfert <herfik>

* changelog fix

Signed-off-by: Tomas Herfert <herfik>

* tests update

Signed-off-by: Tomas Herfert <herfik>

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
2022-11-17 20:14:07 +01:00
Tomas Herfert
23b3aa3beb
API update (#128)
* adding support for api fields that can be disabled and have default value at the same time

Signed-off-by: Tomas Herfert <herfik>

* api path support: interface gre

Signed-off-by: Tomas Herfert <herfik>

* docs

Signed-off-by: Tomas Herfert <herfik>

* unit test update & yamlling fix

Signed-off-by: Tomas Herfert <herfik>

* test fix

Signed-off-by: Tomas Herfert <herfik>

* sanity fix

Signed-off-by: Tomas Herfert <herfik>

* changelog

Signed-off-by: Tomas Herfert <herfik>

* Update per suggestion

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

* api path support: interface eoip

Signed-off-by: Tomas Herfert <herfik>

* docs

Signed-off-by: Tomas Herfert <herfik>

* apply suggestion from code review

Signed-off-by: Tomas Herfert <herfik>

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-11-17 12:48:50 +01:00
Tomas Herfert
b539ed6aa4
make api_modify to ignore builtin items (#130)
* make api_modify to ignore builtin items

Signed-off-by: Tomas Herfert <herfik>

* include_builtin parametr for api_info module

Signed-off-by: Tomas Herfert <herfik>

* api_info ignore_builtin changelog

Signed-off-by: Tomas Herfert <herfik>

* typo

Signed-off-by: Tomas Herfert <herfik>

* Apply suggestions from code review

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

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-11-16 22:31:49 +01:00
Tomas Herfert
4194ae9ba6
multiple api paths support and updates (#131)
* multiple api paths support and updates

Signed-off-by: Tomas Herfert <herfik>

* sanity fix

Signed-off-by: Tomas Herfert <herfik>

* another sanity fix

Signed-off-by: Tomas Herfert <herfik>

* Apply suggestions from code review

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

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-11-15 22:11:55 +01:00
Tomas Herfert
c48f4c74ce
support for multiple "ip ipsec *" API paths (#129)
Signed-off-by: Tomas Herfert <herfik>

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
2022-11-13 21:14:45 +01:00
Tomas Herfert
29247faaa3
system logging API paths (#127)
* api path support: system logging action

Signed-off-by: Tomas Herfert <herfik>

* api path support: system logging

Signed-off-by: Tomas Herfert <herfik>

* docs & changelog

Signed-off-by: Tomas Herfert <herfik>

* typo fix

Signed-off-by: Tomas Herfert <herfik>

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
2022-11-13 10:02:29 +01:00
Tomas Herfert
60427fff5e
Capsman API paths (#126)
* api path support: caps-man datapath

Signed-off-by: Tomas Herfert <herfik>

* api path support: caps-man security

Signed-off-by: Tomas Herfert <herfik>

* api path support: caps-man configuration

Signed-off-by: Tomas Herfert <herfik>

* api path support: caps-man access-list

Signed-off-by: Tomas Herfert <herfik>

* api path support: caps-man manager

Signed-off-by: Tomas Herfert <herfik>

* api path support: caps-man provisioning

Signed-off-by: Tomas Herfert <herfik>

* docs & changelog

Signed-off-by: Tomas Herfert <herfik>

* yamllint fix

Signed-off-by: Tomas Herfert <herfik>

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
2022-11-12 16:09:34 +01:00
Tomas Herfert
ad9d7c3829
Support for additional API paths (#125)
* adding api path interface pppoe-client

Signed-off-by: Tomas Herfert <herfik>

* support for api path interface vlan

Signed-off-by: Tomas Herfert <herfik>

* support for api path interface bridge vlan

Signed-off-by: Tomas Herfert <herfik>

* PR ID update

Signed-off-by: Tomas Herfert <herfik>

* typo fix

Signed-off-by: Tomas Herfert <herfik>

* support for API path interface bridge and update of interface bridge port ingress-filtering to True

Signed-off-by: Tomas Herfert <herfik>

* Apply suggestion per code review

Signed-off-by: Tomas Herfert <herfik>

* Update changelogs/fragments/125-api.yml

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

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-11-12 16:08:25 +01:00
PhiBo
558eb501d2
Add support for ip route and ip route vrf (#123)
* Add support for ip route and ip route vrf

* Changelog
2022-11-10 21:09:58 +01:00
Tomas Herfert
1e36dfa2d0
adding "system ntp *" paths related to ROS7 (#122)
* adding "system ntp *" paths related to ROS7

Signed-off-by: Tomas Herfert <herfik>

* changelog

Signed-off-by: Tomas Herfert <herfik>

* docs

Signed-off-by: Tomas Herfert <herfik>

* typo

Signed-off-by: Tomas Herfert <herfik>

* sanity fix

Signed-off-by: Tomas Herfert <herfik>

* setting the correct defaults

Signed-off-by: Tomas Herfert <herfik>

* Apply suggestions from code review

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

* typo

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-11-10 21:09:03 +01:00
Tomas Herfert
c2e58c3ae4
Interface list (#120)
* interface list & member

Signed-off-by: Tomas Herfert <herfik>

* adding changelog fragment

Signed-off-by: Tomas Herfert <herfik>

* changelog fix

Signed-off-by: Tomas Herfert <herfik>

* sanity fix

Signed-off-by: Tomas Herfert <herfik>

* Apply suggestions from code review

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

Signed-off-by: Tomas Herfert <herfik>
Co-authored-by: Tomas Herfert <herfik>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-11-09 21:10:25 +01:00
Felix Fontein
835cec5e24
Use attributes to document module capabilities; warn about command module's check_mode support (#118)
* Improve formatting.

* Add 'api' action group attribute.

* Document attributes.

* Known issue: command module declares to support check mode.

* Compatibility with older ansible-core releases.

* Fix typo.

* Improve docs.

* Add shortcuts for common combinations.

* Update changelogs/fragments/command-check_mode.yml

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
2022-11-06 20:58:06 +01:00
Felix Fontein
3c0ad57eb5
Extend API support. (#110) 2022-09-11 17:25:25 +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
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