mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-06-28 20:40:24 +02:00
Add support for "tool netwatch" (#216)
Upstream documentation: https://help.mikrotik.com/docs/display/ROS/Netwatch Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
parent
2bbaf26484
commit
d601e10e22
4 changed files with 42 additions and 0 deletions
2
changelogs/fragments/216-add-tool-netwatch.yml
Normal file
2
changelogs/fragments/216-add-tool-netwatch.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- api_info, api_modify - add support for the ``tool netwatch`` path in RouterOS 7 (https://github.com/ansible-collections/community.routeros/pull/216).
|
|
@ -3168,6 +3168,44 @@ PATHS = {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
('tool', 'netwatch'): APIData(
|
||||||
|
versioned=[
|
||||||
|
('7', '>=', VersionedAPIData(
|
||||||
|
fully_understood=True,
|
||||||
|
primary_keys=('name', ),
|
||||||
|
fields={
|
||||||
|
'certificate': KeyInfo(),
|
||||||
|
'check-certificate': KeyInfo(),
|
||||||
|
'comment': KeyInfo(),
|
||||||
|
'disabled': KeyInfo(default=False),
|
||||||
|
'down-script': KeyInfo(),
|
||||||
|
'host': KeyInfo(required=True),
|
||||||
|
'http-codes': KeyInfo(),
|
||||||
|
'interval': KeyInfo(),
|
||||||
|
'name': KeyInfo(),
|
||||||
|
'packet-count': KeyInfo(),
|
||||||
|
'packet-interval': KeyInfo(),
|
||||||
|
'packet-size': KeyInfo(),
|
||||||
|
'port': KeyInfo(),
|
||||||
|
'src-address': KeyInfo(),
|
||||||
|
'start-delay': KeyInfo(),
|
||||||
|
'startup-delay': KeyInfo(),
|
||||||
|
'test-script': KeyInfo(),
|
||||||
|
'thr-avg': KeyInfo(),
|
||||||
|
'thr-http-time': KeyInfo(),
|
||||||
|
'thr-jitter': KeyInfo(),
|
||||||
|
'thr-loss-count': KeyInfo(),
|
||||||
|
'thr-loss-percent': KeyInfo(),
|
||||||
|
'thr-max': KeyInfo(),
|
||||||
|
'thr-stdev': KeyInfo(),
|
||||||
|
'thr-tcp-conn-time': KeyInfo(),
|
||||||
|
'timeout': KeyInfo(),
|
||||||
|
'type': KeyInfo(default='simple'),
|
||||||
|
'up-script': KeyInfo(),
|
||||||
|
},
|
||||||
|
)),
|
||||||
|
],
|
||||||
|
),
|
||||||
('tool', 'romon'): APIData(
|
('tool', 'romon'): APIData(
|
||||||
unversioned=VersionedAPIData(
|
unversioned=VersionedAPIData(
|
||||||
single_value=True,
|
single_value=True,
|
||||||
|
|
|
@ -190,6 +190,7 @@ options:
|
||||||
- tool mac-server
|
- tool mac-server
|
||||||
- tool mac-server mac-winbox
|
- tool mac-server mac-winbox
|
||||||
- tool mac-server ping
|
- tool mac-server ping
|
||||||
|
- tool netwatch
|
||||||
- tool romon
|
- tool romon
|
||||||
- tool sms
|
- tool sms
|
||||||
- tool sniffer
|
- tool sniffer
|
||||||
|
|
|
@ -199,6 +199,7 @@ options:
|
||||||
- tool mac-server
|
- tool mac-server
|
||||||
- tool mac-server mac-winbox
|
- tool mac-server mac-winbox
|
||||||
- tool mac-server ping
|
- tool mac-server ping
|
||||||
|
- tool netwatch
|
||||||
- tool romon
|
- tool romon
|
||||||
- tool sms
|
- tool sms
|
||||||
- tool sniffer
|
- tool sniffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue