diff --git a/changelogs/fragments/153-ip_firewall_layer7-protocol.yml b/changelogs/fragments/153-ip_firewall_layer7-protocol.yml new file mode 100644 index 00000000..694c7eab --- /dev/null +++ b/changelogs/fragments/153-ip_firewall_layer7-protocol.yml @@ -0,0 +1,2 @@ +minor_changes: + - api_modify - support API paths ``ip firewall layer7-protocol`` (https://github.com/ansible-collections/community.routeros/pull/153). diff --git a/plugins/module_utils/_api_data.py b/plugins/module_utils/_api_data.py index aec66402..ec5ae3b9 100644 --- a/plugins/module_utils/_api_data.py +++ b/plugins/module_utils/_api_data.py @@ -2759,6 +2759,15 @@ def join_path(path): 'sip-timeout': KeyInfo(), }, ), + ('ip', 'firewall', 'layer7-protocol'): APIData( + primary_keys=('name', ), + fully_understood=True, + fields={ + 'comment': KeyInfo(can_disable=True, remove_value=''), + 'name': KeyInfo(), + 'regexp': KeyInfo(), + }, + ), ('ip', 'hotspot', 'service-port'): APIData( fixed_entries=True, primary_keys=('name', ), diff --git a/plugins/modules/api_info.py b/plugins/modules/api_info.py index 276033d4..b5c684c5 100644 --- a/plugins/modules/api_info.py +++ b/plugins/modules/api_info.py @@ -102,6 +102,7 @@ - ip firewall nat - ip firewall raw - ip firewall service-port + - ip firewall layer7-protocol - ip hotspot service-port - ip ipsec identity - ip ipsec peer diff --git a/plugins/modules/api_modify.py b/plugins/modules/api_modify.py index 39f7fcf5..40d90698 100644 --- a/plugins/modules/api_modify.py +++ b/plugins/modules/api_modify.py @@ -107,6 +107,7 @@ - ip firewall nat - ip firewall raw - ip firewall service-port + - ip firewall layer7-protocol - ip hotspot service-port - ip ipsec identity - ip ipsec peer