diff --git a/changelogs/fragments/246-add-routing-rule-path.yml b/changelogs/fragments/246-add-routing-rule-path.yml new file mode 100644 index 00000000..53c62631 --- /dev/null +++ b/changelogs/fragments/246-add-routing-rule-path.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_info, api_modify - add ``routing rule`` path (https://github.com/ansible-collections/community.routeros/issues/162, https://github.com/ansible-collections/community.routeros/pull/246). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index c0cdb814..8c749521 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -960,6 +960,24 @@ def join_path(path): }, ), ), + ('routing', 'rule'): APIData( + versioned=[ + ('7', '>=', VersionedAPIData( + fully_understood=True, + fields={ + 'action': KeyInfo(can_disable=True), + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'disabled': KeyInfo(default=False), + 'dst-address': KeyInfo(can_disable=True), + 'interface': KeyInfo(can_disable=True), + 'min-prefix': KeyInfo(can_disable=True), + 'routing-mark': KeyInfo(can_disable=True), + 'src-address': KeyInfo(can_disable=True), + 'table': KeyInfo(can_disable=True), + }, + )), + ], + ), ('routing', 'table'): APIData( versioned=[ ('7', '>=', VersionedAPIData( diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 53779989..6eea5e8c 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -185,6 +185,7 @@ - routing pimsm interface-template - routing rip - routing ripng + - routing rule - routing table - snmp - snmp community diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index afc58cd5..a683c2a8 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -194,6 +194,7 @@ - routing pimsm interface-template - routing rip - routing ripng + - routing rule - routing table - snmp - snmp community