Commit graph

68 commits

Author SHA1 Message Date
hansmi
6c2101d4d8
Add support for the "ip dns adlist" path (#310)
Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/DNS#DNS-Adlist
2024-08-22 08:57:28 +02:00
hansmi
b4ea8b2fe7
Add support for the "routing igmp-proxy" path (#309)
Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/IGMP+Proxy
2024-08-15 12:12:25 +02:00
Felix Fontein
0a9b749508
api_modify/api_info: add restrict option (#305)
* Allow to restrict api_info output.

* Allow to restrict what api_modify modifies.

* Add changelog.

* Fix docs.

* Move shared code/docs to module utils and doc fragments.

* Refactor and allow to match by regex.

* Simplify rules, allow to invert rule matcher.

* Add more tests.
2024-08-12 21:16:59 +02:00
hansmi
64ee613a0d
Add support for the "ipv6 nd prefix" path (#303)
Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/IPv6+Neighbor+Discovery#IPv6NeighborDiscovery-Prefix
2024-08-01 17:06:02 +02:00
hansmi
ba806c0593
Add support for the "routing ospf static-neighbor" path (#302)
Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/OSPF#OSPF-StaticNeighbourconfiguration

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2024-08-01 16:40:16 +02:00
hansmi
8c62d46198
Add IPv4 DHCP option matcher, minor fixes (#300)
* Fix typos in comment on IPsec policy "template" field

* Move IPv4 DHCP server API data next to other DHCP APIs

* Set default for "force" field on DHCP options

Without the default value removing it from the options after it's been
set once leads to an error:

> Key "force" cannot be removed for name="…"

* Add IPv4 DHCP option matcher

RouterOS 7.4 and newer implement matchers for the Vendor ID provided by
DHCP clients. RouterOS 7.16 will add a new `matching-type` property, but
it's not in a stable release yet.

Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/DHCP#DHCP-Genericmatcher
2024-07-21 23:18:31 +02:00
Igor
a6d2580a9e
Add support for '/system resource irq rps' path (#295) 2024-06-27 11:58:54 +02:00
Johannes Münch
91fef4e3a9
Add system health settings path (#294)
Add changelog fragment

Change changelog fragment to lower-case
2024-06-27 11:58:24 +02:00
samburney
331a97b12d
Add support for 'ppp secret' path (#286)
* Add support for 'ppp secret' path

* Add changelog fragment
2024-05-18 15:59:49 +02:00
Igor
4a078c5913
Add RouterOS 6.x support for '/routing filter' path (#279)
* Add RouterOS 6.x support for '/routing filter' path

* add changelogs fragments
2024-04-18 12:30:25 +02:00
Igor
9d34cca66b
Add RouterOS 6.x support for '/ip route rule' path (#278)
* Add RouterOS 6.x support for '/ip route rule' path

* add changelogs fragments
2024-04-18 12:29:58 +02:00
Igor
018125ddfa
Add support for '/routing bgp' paths (#277)
* Add support for '/routing bgp' paths

* resolve conflicts

* add changelogs fragments
2024-04-18 12:29:44 +02:00
Igor
c6be3918ec
Add support for '/ip dhcp-relay' path (#276)
* Add support for '/ip dhcp-relay' path

* add changelogs fragments
2024-04-18 12:29:25 +02:00
samburney
6fde8f3baf
Add support for additional '/mpls' paths (#272)
* Add support for additional '/mpls' paths
- Enable '/mpls interface' for use in api_info/api_modify and update fields.
- Add '/mpls ldp accept-filter' path.
- Add '/mpls ldp advertise-filter' path.
- Add '/mpls ldp interface' path.

* Add changelogs/fragments/272-additional_mpls_path_support.yml

* Fixed new paths in api_info.py and api_modify.py

* Remove dot.

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2024-04-18 07:55:57 +02:00
samburney
78d2fdd0f2
Add support for '/queue type' path (#274)
* Add support for '/queue type' path

* Add changelogs/fragments/274-add_queue_type_path.yml
2024-04-17 23:30:14 +02:00
samburney
62a795f995
Add support for '/interface pppoe-server server' path (#273)
* Add support for '/interface pppoe-server server' path

* Fixed one-session-per-host default value

* Add changelogs/fragments/273-add_interface_pppoe-server_support.yml
2024-04-17 23:29:57 +02:00
samburney
506b3eba39
Add '/queue simple' path (#269)
* Add '/queue simple' path

* Add changelogs/fragments/260-add-queue_simple-path.yml

* Updated queue-simple path:
- Updated all default values to match those from the API
- Re-ordered fields to match API output
- Target is not required; added default value

* 'target' *is* required, however it interracts strangely with values of 0.0.0.0/0 and '' (Empty string).

* Updated PR in document fragment
2024-04-17 23:27:48 +02:00
Andrei Costescu
edcd760dbf
Add interface wifi paths (#266)
* Add interface wifi paths

* Update changelog

* Remove most defaults
2024-03-25 13:57:24 +01:00
liquorice-head
10fbc564a7
Change ip vrf for router OS v7 (#259)
* Update api_info.py

* Update api_modify.py

* Update _api_data.py

* Update _api_data.py

* Update _api_data.py

* Update api_info.py

* Update api_modify.py

* Update api_info.py

* Update api_modify.py

* Create 259-add-routeros7-support-for-ip-vrf.yml

* Update changelogs/fragments/259-add-routeros7-support-for-ip-vrf.yml

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

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2024-02-17 22:49:12 +01:00
Johannes Münch
79dabbb67e
#162: Add 'routing rule' path (#246) 2024-01-06 16:52:17 +01:00
derdeagle
1d6feda0b7
Add the 'radius' path (#245)
* Fixes #241: Add the 'radius' path

* Add changelog fragment

---------

Co-authored-by: Johannes Münch <git@washiza.eu>
2023-12-28 08:35:28 +01:00
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