-
Notifications
You must be signed in to change notification settings - Fork 53
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
ec05197
commit 55f861a
Showing
5 changed files
with
130 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
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,39 @@ | ||
# routeros_routing_rule (Resource) | ||
|
||
|
||
## Example Usage | ||
```terraform | ||
resource "routeros_routing_rule" "test" { | ||
dst_address = "192.168.1.0/24" | ||
action = "lookup-only-in-table" | ||
interface = "ether1" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `action` (String) An action to take on the matching packet:drop - silently drop the packet.lookup - perform a lookup in routing tables.lookup-only-in-table - perform lookup only in the specified routing table (see table parameter).unreachable - generate ICMP unreachable message and send it back to the source. | ||
- `comment` (String) | ||
- `disabled` (Boolean) | ||
- `dst_address` (String) The destination address of the packet to match. | ||
- `interface` (String) Incoming interface to match. | ||
- `min_prefix` (Number) Equivalent to Linux IP rule `suppress_prefixlength`. For example to suppress the default route in the routing decision set the value to 0. | ||
- `routing_mark` (String) Match specific routing mark. | ||
- `src_address` (String) The source address of the packet to match. | ||
- `table` (String) Name of the routing table to use for lookup. | ||
|
||
### 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 -> :put [/routing/rule get [print show-ids]] | ||
terraform import routeros_routing_rule.test *3 | ||
``` |
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,73 @@ | ||
# routeros_tool_netwatch (Resource) | ||
|
||
|
||
## Example Usage | ||
```terraform | ||
resource "routeros_tool_netwatch" "test" { | ||
name = "watch-google-pdns" | ||
host = "8.8.8.8" | ||
interval = "30s" | ||
up_script = ":log info \"Ping to 8.8.8.8 successful\"" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `host` (String) The IP address of the server to be probed. Formats: | ||
- ipv4 | ||
- ipv4@vrf | ||
- ipv6 | ||
- ipv6@vrf | ||
- ipv6-linklocal%interface | ||
- `name` (String) Task name. | ||
|
||
### Optional | ||
|
||
- `accept_icmp_time_exceeded` (Boolean) If the ICMP `time exceeded` message should be considered a valid response. | ||
- `comment` (String) | ||
- `disabled` (Boolean) | ||
- `dns_server` (String) The DNS server that the probe should send its requests to, if not specified it will use the value from `/ip dns`. | ||
- `down_script` (String) Script to execute on the event of probe state change `OK` --> `fail`. | ||
- `http_code_max` (Number) Response in the range [http-code-min , http-code-max] is a probe pass/OK; outside - a probe fail. See [mozilla-http-status](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) or [rfc7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6). | ||
- `http_code_min` (Number) OK/fail criteria for HTTP response code. | ||
- `interval` (String) The time interval between probe tests. | ||
- `packet_count` (Number) Total count of ICMP packets to send out within a single test. | ||
- `packet_interval` (String) The time between ICMP-request packet send. | ||
- `packet_size` (Number) The total size of the IP ICMP packet. | ||
- `port` (Number) TCP port (for both tcp-conn and http-get probes) | ||
- `record_type` (String) Record type that will be used for DNS probe. | ||
- `src_address` (String) Source IP address which the Netwatch will try to use in order to reach the host. If address is not present, then the host will be considered as `down`. | ||
- `start_delay` (String) Time to wait before starting probe (on add, enable, or system start). | ||
- `startup_delay` (String) Time to wait until starting Netwatch probe after system startup. | ||
- `test_script` (String) Script to execute at the end of every probe test. | ||
- `thr_http_time` (String) Fail threshold for http-resp-time. | ||
- `thr_loss_count` (Number) Fail threshold for loss-count. | ||
- `thr_loss_percent` (Number) Fail threshold for loss-percent. | ||
- `thr_rtt_avg` (String) Fail threshold for rtt-avg. | ||
- `thr_rtt_jitter` (String) Fail threshold for rtt-jitter. | ||
- `thr_rtt_max` (String) Fail threshold for rtt-max (a value above thr-max is a probe fail). | ||
- `thr_rtt_stdev` (String) Fail threshold for rtt-stdev. | ||
- `thr_tcp_conn_time` (String) Fail threshold for tcp-connect-time, the configuration uses microseconds, if the time unit is not specified (s/m/h), log and status pages display the same value in milliseconds. | ||
- `timeout` (String) Max time limit to wait for a response. | ||
- `ttl` (Number) Manually set time to live value for ICMP packet. | ||
- `type` (String) Type of the probe: | ||
- icmp - (ping-style) series of ICMP request-response with statistics | ||
- tcp-conn - test TCP connection (3-way handshake) to a server specified by IP and port | ||
- http-get - do an HTTP Get request and test for a range of correct replies | ||
- simple - simplified ICMP probe, with fewer options than **ICMP** type, used for backward compatibility with the older Netwatch version | ||
- `up_script` (String) Script to execute on the event of probe state change `fail` --> `OK`. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
## 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 -> :put [/tool/netwatch get [print show-ids]] | ||
terraform import routeros_tool_netwatch.test *3 | ||
``` |
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