Fixes #193: Add caps-man channel and caps-man manager interface (#194)

* 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 <git@washiza.eu>
This commit is contained in:
derdeagle 2023-08-12 15:57:00 +02:00 committed by GitHub
parent d6f90e6937
commit 53bb84ba2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 4 deletions

View file

@ -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).

View file

@ -797,6 +797,23 @@ PATHS = {
'vlan-mode': KeyInfo(can_disable=True), '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( ('caps-man', 'configuration'): APIData(
fully_understood=True, fully_understood=True,
primary_keys=('name', ), primary_keys=('name', ),
@ -884,12 +901,13 @@ PATHS = {
}, },
), ),
('caps-man', 'manager', 'interface'): APIData( ('caps-man', 'manager', 'interface'): APIData(
unknown_mechanism=True, fully_understood=True,
# primary_keys=('default', ), primary_keys=('interface', ),
fields={ fields={
'comment': KeyInfo(can_disable=True, remove_value=''),
'default': KeyInfo(), 'default': KeyInfo(),
'disabled': KeyInfo(), 'disabled': KeyInfo(default=False),
'forbid': KeyInfo(), 'forbid': KeyInfo(default=False),
'interface': KeyInfo(), 'interface': KeyInfo(),
}, },
), ),

View file

@ -44,9 +44,11 @@ options:
# BEGIN PATH LIST # BEGIN PATH LIST
- caps-man aaa - caps-man aaa
- caps-man access-list - caps-man access-list
- caps-man channel
- caps-man configuration - caps-man configuration
- caps-man datapath - caps-man datapath
- caps-man manager - caps-man manager
- caps-man manager interface
- caps-man provisioning - caps-man provisioning
- caps-man security - caps-man security
- certificate settings - certificate settings

View file

@ -49,9 +49,11 @@ options:
# BEGIN PATH LIST # BEGIN PATH LIST
- caps-man aaa - caps-man aaa
- caps-man access-list - caps-man access-list
- caps-man channel
- caps-man configuration - caps-man configuration
- caps-man datapath - caps-man datapath
- caps-man manager - caps-man manager
- caps-man manager interface
- caps-man provisioning - caps-man provisioning
- caps-man security - caps-man security
- certificate settings - certificate settings