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>
This commit is contained in:
hansmi 2023-08-26 11:23:14 +02:00 committed by GitHub
parent b7569b9dfd
commit 193218446a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``iot modbus`` path (https://github.com/ansible-collections/community.routeros/pull/205).

View file

@ -1423,6 +1423,16 @@ PATHS = {
'receive-errors': KeyInfo(default=False),
},
),
('iot', 'modbus'): APIData(
single_value=True,
fully_understood=True,
fields={
'disabled': KeyInfo(default=True),
'hardware-port': KeyInfo(default='modbus'),
'tcp-port': KeyInfo(default=502),
'timeout': KeyInfo(default=1000),
},
),
('ip', 'accounting'): APIData(
single_value=True,
fully_understood=True,

View file

@ -86,6 +86,7 @@ options:
- interface wireless security-profiles
- interface wireless sniffer
- interface wireless snooper
- iot modbus
- ip accounting
- ip accounting web-access
- ip address

View file

@ -91,6 +91,7 @@ options:
- interface wireless security-profiles
- interface wireless sniffer
- interface wireless snooper
- iot modbus
- ip accounting
- ip accounting web-access
- ip address