Skip to content

Commit

Permalink
Finalize fields for "interface wireless security-profiles"
Browse files Browse the repository at this point in the history
A few fields were missing for `interface wireless security-profiles`
(e.g. `disabled`). `default` on the other hand is a built-in property
which can't be modified.

Mark the `interface wireless security-profiles` path as fully understood
to enable its use in Ansible tasks.

Signed-off-by: Michael Hanselmann <[email protected]>
  • Loading branch information
hansmi committed Aug 21, 2023
1 parent 11d83bf commit be15f85
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/203-wireless-security-profiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - finalize fields for the ``interface wireless security-profiles`` path and enable it (https://github.com/ansible-collections/community.routeros/pull/203).
46 changes: 23 additions & 23 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,42 +1356,42 @@ def join_path(path):
},
),
('interface', 'wireless', 'security-profiles'): APIData(
unknown_mechanism=True,
# primary_keys=('default', ),
fully_understood=True,
primary_keys=('name', ),
fields={
'default': KeyInfo(),
'authentication-types': KeyInfo(),
'disable-pmkid': KeyInfo(),
'disable-pmkid': KeyInfo(default=False),
'disabled': KeyInfo(default=True),
'eap-methods': KeyInfo(),
'group-ciphers': KeyInfo(),
'group-key-update': KeyInfo(),
'group-key-update': KeyInfo(default='5m'),
'interim-update': KeyInfo(),
'management-protection': KeyInfo(),
'management-protection-key': KeyInfo(),
'mode': KeyInfo(),
'mschapv2-password': KeyInfo(),
'mschapv2-username': KeyInfo(),
'management-protection': KeyInfo(default='disabled'),
'management-protection-key': KeyInfo(default=''),
'mode': KeyInfo(default='none'),
'mschapv2-password': KeyInfo(default=''),
'mschapv2-username': KeyInfo(default=''),
'name': KeyInfo(),
'radius-called-format': KeyInfo(),
'radius-eap-accounting': KeyInfo(),
'radius-mac-accounting': KeyInfo(),
'radius-mac-authentication': KeyInfo(),
'radius-mac-caching': KeyInfo(),
'radius-mac-format': KeyInfo(),
'radius-mac-mode': KeyInfo(),
'static-algo-0': KeyInfo(),
'static-algo-1': KeyInfo(),
'static-algo-2': KeyInfo(),
'static-algo-3': KeyInfo(),
'radius-eap-accounting': KeyInfo(default=False),
'radius-mac-accounting': KeyInfo(default=False),
'radius-mac-authentication': KeyInfo(default=False),
'radius-mac-caching': KeyInfo(default='disabled'),
'radius-mac-format': KeyInfo(default='XX:XX:XX:XX:XX:XX'),
'radius-mac-mode': KeyInfo(default='as-username'),
'static-algo-0': KeyInfo(default='none'),
'static-algo-1': KeyInfo(default='none'),
'static-algo-2': KeyInfo(default='none'),
'static-algo-3': KeyInfo(default='none'),
'static-key-0': KeyInfo(),
'static-key-1': KeyInfo(),
'static-key-2': KeyInfo(),
'static-key-3': KeyInfo(),
'static-sta-private-algo': KeyInfo(),
'static-sta-private-algo': KeyInfo(default='none'),
'static-sta-private-key': KeyInfo(),
'static-transmit-key': KeyInfo(),
'supplicant-identity': KeyInfo(),
'tls-certificate': KeyInfo(),
'supplicant-identity': KeyInfo(default='MikroTik'),
'tls-certificate': KeyInfo(default='none'),
'tls-mode': KeyInfo(),
'unicast-ciphers': KeyInfo(),
'wpa-pre-shared-key': KeyInfo(),
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 @@ -83,6 +83,7 @@
- interface wireless
- interface wireless align
- interface wireless cap
- interface wireless security-profiles
- interface wireless sniffer
- interface wireless snooper
- ip accounting
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 @@ -88,6 +88,7 @@
- interface wireless
- interface wireless align
- interface wireless cap
- interface wireless security-profiles
- interface wireless sniffer
- interface wireless snooper
- ip accounting
Expand Down

0 comments on commit be15f85

Please sign in to comment.