diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f6a2c7e..64ee3b7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.30.0](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.29.1...v1.30.0) (2024-01-12) + + +### Features + +* **routing:** Manage Route Filters ([0c29e53](https://github.com/terraform-routeros/terraform-provider-routeros/commit/0c29e531be76e8c322062babd4c082d7e685ff7f)), closes [#330](https://github.com/terraform-routeros/terraform-provider-routeros/issues/330) + ## [1.29.1](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.29.0...v1.29.1) (2024-01-11) diff --git a/docs/resources/routing_filter_rule.md b/docs/resources/routing_filter_rule.md new file mode 100644 index 00000000..eb67b486 --- /dev/null +++ b/docs/resources/routing_filter_rule.md @@ -0,0 +1,38 @@ +# routeros_routing_filter_rule (Resource) + + +## Example Usage +```terraform +resource "routeros_routing_filter_rule" "test" { + chain = "testChain" + rule = "if (dst in 192.168.1.0/24 && dst-len>24) {set distance +1; accept} else {set distance -1; accept}" + comment = "comment" + disabled = true +} +``` + + +## Schema + +### Required + +- `chain` (String) Chain name. +- `rule` (String) Filter rule. + +### Optional + +- `comment` (String) +- `disabled` (Boolean) + +### Read-Only + +- `id` (String) The ID of this resource. +- `inactive` (Boolean) + +## Import +Import is supported using the following syntax: +```shell +#The ID can be found via API or the terminal +#The command for the terminal is -> /routing/filter/rule/print show-ids +terraform import routeros_routing_filter_rule.test "*0" +``` diff --git a/package.json b/package.json index 4572232d..50d49811 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "terraform-provider-routeros", - "version": "1.29.1", + "version": "1.30.0", "repository": { "type": "git", "url": "https://github.com/terraform-routeros/terraform-provider-routeros"