-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ace02aa
commit 6544f3c
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 generated by tfplugindocs --> | ||
## 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" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters