Skip to content

Commit

Permalink
Add system health settings path (#294)
Browse files Browse the repository at this point in the history
Add changelog fragment

Change changelog fragment to lower-case
  • Loading branch information
derdeagle authored Jun 27, 2024
1 parent dc7fa11 commit 91fef4e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/294-add-system-health-settings-path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add ``system health settings`` path (https://github.com/ansible-collections/community.routeros/pull/294).
38 changes: 38 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4001,6 +4001,44 @@ def join_path(path):
},
),
),
('system', 'health', 'settings'): APIData(
versioned=[
('7.14', '<', VersionedAPIData(
single_value=True,
fully_understood=True,
fields={
'cpu-overtemp-check': KeyInfo(),
'cpu-overtemp-startup-delay': KeyInfo(),
'cpu-overtemp-threshold': KeyInfo(),
'fan-control-interval': KeyInfo(can_disable=True, default='30s'),
'fan-full-speed-temp': KeyInfo(default=65),
'fan-min-speed-percent': KeyInfo(default=0),
'fan-mode': KeyInfo(),
'fan-on-threshold': KeyInfo(),
'fan-switch': KeyInfo(),
'fan-target-temp': KeyInfo(default=58),
'use-fan': KeyInfo(),
},
)),
('7.14', '>=', VersionedAPIData(
single_value=True,
fully_understood=True,
fields={
'cpu-overtemp-check': KeyInfo(),
'cpu-overtemp-startup-delay': KeyInfo(),
'cpu-overtemp-threshold': KeyInfo(),
'fan-control-interval': KeyInfo(default=30),
'fan-full-speed-temp': KeyInfo(default=65),
'fan-min-speed-percent': KeyInfo(default=12),
'fan-mode': KeyInfo(),
'fan-on-threshold': KeyInfo(),
'fan-switch': KeyInfo(),
'fan-target-temp': KeyInfo(default=58),
'use-fan': KeyInfo(),
},
)),
],
),
('system', 'identity'): APIData(
unversioned=VersionedAPIData(
single_value=True,
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
- snmp community
- system clock
- system clock manual
- system health settings
- system identity
- system leds settings
- system logging
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
- snmp community
- system clock
- system clock manual
- system health settings
- system identity
- system leds settings
- system logging
Expand Down

0 comments on commit 91fef4e

Please sign in to comment.