Skip to content

Commit

Permalink
chore(release): 1.59.0
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Aug 5, 2024
1 parent ec05197 commit 55f861a
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [1.59.0](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.58.2...v1.59.0) (2024-08-05)


### Features

* Add `routeros_routing_rule` resource ([a263193](https://github.com/terraform-routeros/terraform-provider-routeros/commit/a26319308ae96b41fd0ffe291fb62073459378f7)), closes [#524](https://github.com/terraform-routeros/terraform-provider-routeros/issues/524)
* Add `routeros_tool_netwatch` resource ([2150241](https://github.com/terraform-routeros/terraform-provider-routeros/commit/215024137033233ab13a22ae731ef8a72f4a3612)), closes [#487](https://github.com/terraform-routeros/terraform-provider-routeros/issues/487)

## [1.58.2](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.58.1...v1.58.2) (2024-08-04)


Expand Down
9 changes: 9 additions & 0 deletions docs/resources/interface_lte.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
## Example Usage
```terraform
resource "routeros_interface_lte" "test" {
allow_roaming = false
apn_profiles = "default"
band = []
default_name = "lte1"
disabled = false
mtu = "1500"
name = "lte1"
network_mode = ["3g", "lte"]
sms_protocol = null
}
```

Expand Down
39 changes: 39 additions & 0 deletions docs/resources/routing_rule.md
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
```
73 changes: 73 additions & 0 deletions docs/resources/tool_netwatch.md
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
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terraform-provider-routeros",
"version": "1.58.2",
"version": "1.59.0",
"repository": {
"type": "git",
"url": "https://github.com/terraform-routeros/terraform-provider-routeros"
Expand Down

0 comments on commit 55f861a

Please sign in to comment.