diff --git a/changelogs/fragments/200-add-routing-filter.yml b/changelogs/fragments/200-add-routing-filter.yml new file mode 100644 index 0000000..90594df --- /dev/null +++ b/changelogs/fragments/200-add-routing-filter.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add support for the ``routing filter rule`` and ``routing filter select-rule`` paths (https://github.com/ansible-collections/community.routeros/pull/200). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index 1cf5154..201d0b1 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -591,6 +591,30 @@ PATHS = { 'use-radius': KeyInfo(default=False), }, ), + ('routing', 'filter', 'rule'): APIData( + fully_understood=True, + fields={ + 'chain': KeyInfo(required=True), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(can_disable=True), + 'rule': KeyInfo(can_disable=True), + }, + ), + ('routing', 'filter', 'select-rule'): APIData( + fully_understood=True, + fields={ + 'chain': KeyInfo(required=True), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(can_disable=True), + 'do-group-num': KeyInfo(can_disable=True), + 'do-group-prfx': KeyInfo(can_disable=True), + 'do-jump': KeyInfo(can_disable=True), + 'do-select-num': KeyInfo(can_disable=True), + 'do-select-prfx': KeyInfo(can_disable=True), + 'do-take': KeyInfo(can_disable=True), + 'do-where': KeyInfo(can_disable=True), + }, + ), ('routing', 'ospf', 'instance'): APIData( fully_understood=True, primary_keys=('name', ), diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 9726ca6..9ddd202 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -149,6 +149,8 @@ options: - queue tree - radius incoming - routing bgp instance + - routing filter rule + - routing filter select-rule - routing mme - routing ospf area - routing ospf area range diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 28774d4..698b615 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -154,6 +154,8 @@ options: - queue tree - radius incoming - routing bgp instance + - routing filter rule + - routing filter select-rule - routing mme - routing ospf area - routing ospf area range