Skip to content

Commit

Permalink
Make wireless parameter "running" read-only (#233)
Browse files Browse the repository at this point in the history
Commit e4a2131 added API data for the "interface wireless" path. It
contained the read-only "running" parameter. Writing to the parameter
fails:

  Error while modifying for name="…" (ID *3): unknown parameter running

Signed-off-by: Michael Hanselmann <[email protected]>
  • Loading branch information
hansmi authored Nov 11, 2023
1 parent 1beddb5 commit 479f310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/233-wireless-running-read-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - mark the ``interface wireless`` parameter ``running`` as read-only (https://github.com/ansible-collections/community.routeros/pull/233).
2 changes: 1 addition & 1 deletion plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,7 @@ def join_path(path):
'radio-name': KeyInfo(),
'rate-selection': KeyInfo(default='advanced'),
'rate-set': KeyInfo(default='default'),
'running': KeyInfo(default=False),
'running': KeyInfo(default=False, read_only=True),
'rx-chains': KeyInfo(default='0,1'),
'scan-list': KeyInfo(default='default'),
'secondary-frequency': KeyInfo(default=''),
Expand Down

0 comments on commit 479f310

Please sign in to comment.