Skip to content

Commit

Permalink
Fixes #284: Implement 'interface wireless access-list' and 'interface…
Browse files Browse the repository at this point in the history
… wireless connect-list'

Add changelog fragment
  • Loading branch information
derdeagle committed Jan 24, 2025
1 parent 11454b8 commit c81e75c
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add the ``interface wireless access-list`` and ``interface wireless connect-list`` paths (https://github.com/ansible-collections/community.routeros/issues/284, https://github.com/ansible-collections/community.routeros/pull/340).
59 changes: 59 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2545,6 +2545,30 @@ def join_path(path):
},
),
),
('interface', 'wireless', 'access-list'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
fields={
'allow-signal-out-of-range': KeyInfo(default='10s'),
'ap-tx-limit': KeyInfo(default=0),
'authentication': KeyInfo(default=True),
'client-tx-limit': KeyInfo(default=0),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'forwarding': KeyInfo(default=True),
'interface': KeyInfo(default='any'),
'mac-address': KeyInfo(default='00:00:00:00:00:00'),
'management-protection-key': KeyInfo(default=''),
'private-algo': KeyInfo(default='none'),
'private-key': KeyInfo(default=''),
'private-pre-shared-key': KeyInfo(default=''),
'signal-range': KeyInfo(default='-120..120'),
'time': KeyInfo(),
'vlan-id': KeyInfo(default=1),
'vlan-mode': KeyInfo(default='default'),
},
),
),
('interface', 'wireless', 'cap'): APIData(
unversioned=VersionedAPIData(
single_value=True,
Expand All @@ -2563,6 +2587,41 @@ def join_path(path):
},
),
),
('interface', 'wireless', 'connect-list'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
fields={
'3gpp': KeyInfo(default=''),
'allow-signal-out-of-range': KeyInfo(default='10s'),
'area-prefix': KeyInfo(default=''),
'comment': KeyInfo(can_disable=True, remove_value=''),
'connect': KeyInfo(default=True),
'disabled': KeyInfo(default=False),
'interface': KeyInfo(required=True),
'interworking': KeyInfo(default='any'),
'iw-asra': KeyInfo(default='any'),
'iw-authentication-types': KeyInfo(),
'iw-connection-capabilities': KeyInfo(),
'iw-esr': KeyInfo(default='any'),
'iw-hessid': KeyInfo(default='00:00:00:00:00:00'),
'iw-hotspot20': KeyInfo(default='any'),
'iw-hotspot20-dgaf': KeyInfo(default='any'),
'iw-internet': KeyInfo(default='any'),
'iw-ipv4-availability': KeyInfo(default='any'),
'iw-ipv6-availability': KeyInfo(default='any'),
'iw-network-type': KeyInfo(default='wildcard'),
'iw-realms': KeyInfo(),
'iw-roaming-ois': KeyInfo(default=''),
'iw-uesa': KeyInfo(default='any'),
'iw-venue': KeyInfo(default='any'),
'mac-address': KeyInfo(default='00:00:00:00:00:00'),
'security-profile': KeyInfo(default='none'),
'signal-range': KeyInfo(default='-120..120'),
'ssid': KeyInfo(default=''),
'wireless-protocol': KeyInfo(default='any'),
},
),
),
('interface', 'wireless', 'security-profiles'): APIData(
unversioned=VersionedAPIData(
fully_understood=True,
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 @@ -109,8 +109,10 @@
- interface wireguard
- interface wireguard peers
- interface wireless
- interface wireless access-list
- interface wireless align
- interface wireless cap
- interface wireless connect-list
- interface wireless security-profiles
- interface wireless sniffer
- interface wireless snooper
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 @@ -120,8 +120,10 @@
- interface wireguard
- interface wireguard peers
- interface wireless
- interface wireless access-list
- interface wireless align
- interface wireless cap
- interface wireless connect-list
- interface wireless security-profiles
- interface wireless sniffer
- interface wireless snooper
Expand Down

0 comments on commit c81e75c

Please sign in to comment.