Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for 'routing filter num-list' #313

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/313-add-routing-filter-num-list.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- api_info, api_modify - add support for the ``routing filter num-list`` path implemented by RouterOS 7 and newer (https://github.com/ansible-collections/community.routeros/pull/313).
13 changes: 13 additions & 0 deletions plugins/module_utils/_api_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,19 @@ def join_path(path):
)),
],
),
('routing', 'filter', 'num-list'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
felixfontein marked this conversation as resolved.
Show resolved Hide resolved
fully_understood=True,
felixfontein marked this conversation as resolved.
Show resolved Hide resolved
fields={
'list': KeyInfo(required=True),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(can_disable=True),
'range': KeyInfo(can_disable=True),
},
)),
],
),
('routing', 'filter', 'rule'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
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 @@ -204,6 +204,7 @@
- routing bgp peer
- routing bgp template
- routing filter
- routing filter num-list
- routing filter rule
- routing filter select-rule
- routing id
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 @@ -213,6 +213,7 @@
- routing bgp peer
- routing bgp template
- routing filter
- routing filter num-list
- routing filter rule
- routing filter select-rule
- routing id
Expand Down
Loading