Skip to content

Commit

Permalink
Fixes #193: Add caps-man channel and caps-man manager interface (#194)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
derdeagle and derdeagle authored Aug 12, 2023
1 parent d6f90e6 commit 53bb84b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add path ``caps-man channel`` and enable path ``caps-man manager interface`` (https://github.com/ansible-collections/community.routeros/issues/193, https://github.com/ansible-collections/community.routeros/pull/194).
26 changes: 22 additions & 4 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,23 @@ def join_path(path):
'vlan-mode': KeyInfo(can_disable=True),
},
),
('caps-man', 'channel'): APIData(
fully_understood=True,
primary_keys=('name', ),
fields={
'band': KeyInfo(can_disable=True),
'comment': KeyInfo(can_disable=True, remove_value=''),
'control-channel-width': KeyInfo(can_disable=True),
'extension-channel': KeyInfo(can_disable=True),
'frequency': KeyInfo(can_disable=True),
'name': KeyInfo(),
'reselect-interval': KeyInfo(can_disable=True),
'save-selected': KeyInfo(can_disable=True),
'secondary-frequency': KeyInfo(can_disable=True),
'skip-dfs-channels': KeyInfo(can_disable=True),
'tx-power': KeyInfo(can_disable=True),
},
),
('caps-man', 'configuration'): APIData(
fully_understood=True,
primary_keys=('name', ),
Expand Down Expand Up @@ -884,12 +901,13 @@ def join_path(path):
},
),
('caps-man', 'manager', 'interface'): APIData(
unknown_mechanism=True,
# primary_keys=('default', ),
fully_understood=True,
primary_keys=('interface', ),
fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'default': KeyInfo(),
'disabled': KeyInfo(),
'forbid': KeyInfo(),
'disabled': KeyInfo(default=False),
'forbid': KeyInfo(default=False),
'interface': KeyInfo(),
},
),
Expand Down
2 changes: 2 additions & 0 deletions plugins/modules/api_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@
# BEGIN PATH LIST
- caps-man aaa
- caps-man access-list
- caps-man channel
- caps-man configuration
- caps-man datapath
- caps-man manager
- caps-man manager interface
- caps-man provisioning
- caps-man security
- certificate settings
Expand Down
2 changes: 2 additions & 0 deletions plugins/modules/api_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@
# BEGIN PATH LIST
- caps-man aaa
- caps-man access-list
- caps-man channel
- caps-man configuration
- caps-man datapath
- caps-man manager
- caps-man manager interface
- caps-man provisioning
- caps-man security
- certificate settings
Expand Down

0 comments on commit 53bb84b

Please sign in to comment.