Skip to content

Commit 0b2dc61

Browse files
FelixRickefricke
andauthored
Add support for path disk settings (#422)
* add support for path disk settings * add changelog fragment --------- Co-authored-by: fricke <[email protected]>
1 parent 0bc14ec commit 0b2dc61

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- api_info, api_modify - add support for path ``disk settings`` (https://github.com/ansible-collections/community.routeros/pull/422).

plugins/module_utils/_api_data.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,19 @@ def join_path(path):
226226
# 3. All bold attributes go into the `primary_keys` list -- this is not always true!
227227

228228
PATHS = {
229+
('disk', 'settings'): APIData(
230+
unversioned=VersionedAPIData(
231+
single_value=True,
232+
fully_understood=True,
233+
fields={
234+
'auto-media-interface': KeyInfo(default='bridge'),
235+
'auto-media-sharing': KeyInfo(default=True),
236+
'auto-smb-sharing': KeyInfo(default=True),
237+
'auto-smb-user': KeyInfo(default='guest'),
238+
'default-mount-point-template': KeyInfo(default='[slot]'),
239+
}
240+
),
241+
),
229242
('interface', '6to4'): APIData(
230243
unversioned=VersionedAPIData(
231244
fully_understood=True,

plugins/modules/api_info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
- caps-man provisioning
5454
- caps-man security
5555
- certificate settings
56+
- disk settings
5657
- interface 6to4
5758
- interface bonding
5859
- interface bridge

plugins/modules/api_modify.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
- caps-man provisioning
6565
- caps-man security
6666
- certificate settings
67+
- disk settings
6768
- interface 6to4
6869
- interface bonding
6970
- interface bridge

0 commit comments

Comments
 (0)