From 184b24b3824522bf847a67bd9db1dc8068bce33a Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 7 Aug 2024 07:36:25 +0000 Subject: [PATCH] chore(release): 1.59.1 --- CHANGELOG.md | 9 + docs/data-sources/ip_firewall.md | 16 +- docs/guides/easy_import.md | 53 ------ docs/guides/install_package.md | 94 ---------- docs/resources/capsman_aaa.md | 4 +- docs/resources/capsman_access_list.md | 10 +- docs/resources/capsman_channel.md | 22 +-- docs/resources/capsman_configuration.md | 168 +++++++++--------- docs/resources/capsman_datapath.md | 28 +-- docs/resources/capsman_manager.md | 4 +- docs/resources/capsman_manager_interface.md | 4 +- docs/resources/capsman_provisioning.md | 14 +- docs/resources/capsman_rates.md | 16 +- docs/resources/capsman_security.md | 24 +-- docs/resources/interface_dot1x_client.md | 4 +- docs/resources/interface_dot1x_server.md | 2 +- .../interface_ethernet_switch_host.md | 6 +- .../interface_ethernet_switch_port.md | 4 +- ...nterface_ethernet_switch_port_isolation.md | 4 +- .../interface_ethernet_switch_vlan.md | 6 +- docs/resources/interface_lte_apn.md | 4 +- docs/resources/interface_macvlan.md | 6 +- docs/resources/interface_pppoe_client.md | 2 +- docs/resources/interface_wireguard_peer.md | 1 + docs/resources/ip_dhcp_relay.md | 6 +- docs/resources/ip_dhcp_server_config.md | 6 +- docs/resources/ip_dhcp_server_option.md | 12 +- docs/resources/ip_dhcp_server_option_set.md | 16 +- docs/resources/ip_dns_record.md | 66 +++---- .../ip_firewall_connection_tracking.md | 30 ++-- docs/resources/ip_service.md | 6 +- docs/resources/ip_upnp.md | 6 +- docs/resources/ip_upnp_interfaces.md | 6 +- docs/resources/ip_vrf.md | 14 +- docs/resources/ipv6_dhcp_client.md | 16 +- docs/resources/ipv6_neighbor_discovery.md | 30 ++-- docs/resources/routing_ospf_area.md | 6 +- docs/resources/routing_ospf_instance.md | 2 +- .../routing_ospf_interface_template.md | 8 +- docs/resources/routing_table.md | 4 +- docs/resources/system_clock.md | 6 +- docs/resources/tool_bandwidth_server.md | 6 +- .../user_manager_profile_limitation.md | 2 +- docs/resources/wifi_channel.md | 12 +- docs/resources/wifi_configuration.md | 12 +- package.json | 2 +- 46 files changed, 321 insertions(+), 458 deletions(-) delete mode 100644 docs/guides/easy_import.md delete mode 100644 docs/guides/install_package.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b40bf1a..6843acda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [1.59.1](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.59.0...v1.59.1) (2024-08-07) + + +### Bug Fixes + +* **bridge_port:** Fix the `priority` attribute type. ([4f342fb](https://github.com/terraform-routeros/terraform-provider-routeros/commit/4f342fb0fcedce97f0dbff806f0c60a6ed072b8b)), closes [#528](https://github.com/terraform-routeros/terraform-provider-routeros/issues/528) +* **firewall_raw:** "no track" action in routeros_ip_firewall_raw needs tweaking ([9d46a55](https://github.com/terraform-routeros/terraform-provider-routeros/commit/9d46a5503163b60534d63f414ddfd1b1a50ea631)), closes [#529](https://github.com/terraform-routeros/terraform-provider-routeros/issues/529) +* **wireguard_peer:** Need new filed 'is-responder' in resource 'routeros_interface_wireguard_peer' ([a31a394](https://github.com/terraform-routeros/terraform-provider-routeros/commit/a31a394e3abd8bcab3af06d6ab35d4b4f0abc89a)), closes [#530](https://github.com/terraform-routeros/terraform-provider-routeros/issues/530) + ## [1.59.0](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.58.2...v1.59.0) (2024-08-05) diff --git a/docs/data-sources/ip_firewall.md b/docs/data-sources/ip_firewall.md index 6e3cbfb5..77983f56 100644 --- a/docs/data-sources/ip_firewall.md +++ b/docs/data-sources/ip_firewall.md @@ -10,7 +10,7 @@ This datasource contains all supported firewall resources: data "routeros_ip_firewall" "fw" { rules { filter = { - chain = "input" + chain = "input" comment = "rule_2" } } @@ -25,19 +25,19 @@ data "routeros_ip_firewall" "fw" { } output "rules" { - value = [for value in data.routeros_ip_firewall.fw.rules: [value.id, value.src_address]] + value = [for value in data.routeros_ip_firewall.fw.rules : [value.id, value.src_address]] } output "nat" { - value = [for value in data.routeros_ip_firewall.fw.nat: [value.id, value.comment]] + value = [for value in data.routeros_ip_firewall.fw.nat : [value.id, value.comment]] } resource "routeros_ip_firewall" "rule_3" { - action = "accept" - chain = "input" - comment = "rule_3" - src_address = "192.168.0.5" - place_before = "${data.routeros_ip_firewall_filter.fw.rules[0].id}" + action = "accept" + chain = "input" + comment = "rule_3" + src_address = "192.168.0.5" + place_before = data.routeros_ip_firewall_filter.fw.rules[0].id } ``` diff --git a/docs/guides/easy_import.md b/docs/guides/easy_import.md deleted file mode 100644 index f0290170..00000000 --- a/docs/guides/easy_import.md +++ /dev/null @@ -1,53 +0,0 @@ -# Install package - -Original [issue](https://github.com/terraform-routeros/terraform-provider-routeros/issues/488) - -## Example -```shell -#!/bin/bash - -USER=admin -PASS= -HOST=http://router.local - -i=0 -curl -s -u ${USER}:${PASS} ${HOST}/rest/ip/firewall/address-list | jq -c '.[] | select(.dynamic | ascii_downcase == "false") | {index: .".id", address: .address, comment: .comment, list: .list}' | while read rec; do - index=$(echo $rec | jq .index) - idx=$(printf "%00004d" $i) - # echo $rec - bash -cv "tofu state rm 'module.dev-gw0.routeros_ip_firewall_addr_list.address_list[\"$idx\"]'" - bash -cv "tofu import 'module.dev-gw0.routeros_ip_firewall_addr_list.address_list[\"$idx\"]' $index" - let i=${i}+1 -done -``` - -```terraform -variable "address_list" { - type = list(object({ - address = string - comment = optional(string) - disabled = optional(bool, false) - dynamic = optional(bool, false) - list = string - })) - - default = [ - { address="192.168.88.11", comment="example 2", list="srv" }, - { address="192.168.88.12", comment="example 2", list="srv" }, - { address="192.168.88.1", comment="example", list="routeros" }, -] - -locals { - # https://discuss.hashicorp.com/t/does-map-sort-keys/12056/2 - # Map keys are always iterated in lexicographical order! - address_list_map = { for idx, rule in var.address_list : format("%00004d", idx) => rule } -} - -resource "routeros_ip_firewall_addr_list" "address_list" { - for_each = local.address_list_map - address = each.value.address - comment = each.value.comment - disabled = each.value.disabled - list = each.value.list -} -``` \ No newline at end of file diff --git a/docs/guides/install_package.md b/docs/guides/install_package.md deleted file mode 100644 index 381c3ac9..00000000 --- a/docs/guides/install_package.md +++ /dev/null @@ -1,94 +0,0 @@ -# Install package - -The original example package installation is available in the [Schwitzd](https://github.com/Schwitzd/IaC-HomeRouter/blob/main/container_backend.tf) repository. - -## Example -```terraform -resource "null_resource" "download_container_npk" { - provisioner "local-exec" { - command = < /dev/null - do - echo "Waiting for router to reboot and become available..." - sleep 10 - done - EOT - } - - depends_on = [ null_resource.upload_container_npk ] -} -``` - -```shell -#!/bin/bash - -# Input parameters -ARCHITECTURE_NAME=$1 -VERSION=$2 -PACKAGE_NAME_PREFIX=$3 - -# Define the base URL and package format -BASE_URL="https://download.mikrotik.com/routeros" -PACKAGE_FORMAT="all_packages-${ARCHITECTURE_NAME}-${VERSION}.zip" - -# Construct the full URL -FULL_URL="${BASE_URL}/${VERSION}/${PACKAGE_FORMAT}" - -# Define the download and extraction paths -DOWNLOAD_PATH="/tmp/${PACKAGE_FORMAT}" -EXTRACT_PATH="/tmp/routeros_packages" - -# Download the package -echo "Downloading package from: ${FULL_URL}" -curl -o "${DOWNLOAD_PATH}" "${FULL_URL}" - -# Verify download -if [ $? -ne 0 ]; then - echo "Failed to download the package." - exit 1 -fi - -# Create the extraction directory -mkdir -p "${EXTRACT_PATH}" - -# List all files in the ZIP archive and filter by the PACKAGE_NAME_PREFIX -echo "Finding package that starts with: ${PACKAGE_NAME_PREFIX}" -MATCHED_FILES=$(unzip -l "${DOWNLOAD_PATH}" | awk '{print $4}' | grep "^${PACKAGE_NAME_PREFIX}") - -# Check if any files were matched -if [ -z "$MATCHED_FILES" ]; then - echo "No files found starting with '${PACKAGE_NAME_PREFIX}'." - exit 1 -fi - -# Extract matched files -for FILE in $MATCHED_FILES; do - echo "Extracting: ${FILE}" - unzip -jo "${DOWNLOAD_PATH}" "${FILE}" -d "${EXTRACT_PATH}" - - if [ $? -ne 0 ]; then - echo "Failed to extract: ${FILE}" - exit 1 - fi -done - -echo "Extraction completed successfully in: ${EXTRACT_PATH}" -``` \ No newline at end of file diff --git a/docs/resources/capsman_aaa.md b/docs/resources/capsman_aaa.md index 2d1c61e2..011301c6 100644 --- a/docs/resources/capsman_aaa.md +++ b/docs/resources/capsman_aaa.md @@ -4,8 +4,8 @@ ## Example Usage ```terraform resource "routeros_capsman_aaa" "test_3a" { - called_format = "ssid" - mac_mode = "as-username-and-password" + called_format = "ssid" + mac_mode = "as-username-and-password" } ``` diff --git a/docs/resources/capsman_access_list.md b/docs/resources/capsman_access_list.md index fa562f7a..586f293e 100644 --- a/docs/resources/capsman_access_list.md +++ b/docs/resources/capsman_access_list.md @@ -4,11 +4,11 @@ ## Example Usage ```terraform resource "routeros_capsman_datapath" "test_rule" { - comment = "Catch-all" - interface = "cap1" - signal_range = "-120..-85" - allow_signal_out_of_range = "20s" - action = "reject" + comment = "Catch-all" + interface = "cap1" + signal_range = "-120..-85" + allow_signal_out_of_range = "20s" + action = "reject" } ``` diff --git a/docs/resources/capsman_channel.md b/docs/resources/capsman_channel.md index 32c7d0d5..aef5e3b2 100644 --- a/docs/resources/capsman_channel.md +++ b/docs/resources/capsman_channel.md @@ -4,17 +4,17 @@ ## Example Usage ```terraform resource "routeros_capsman_channel" "test_channel" { - name = "test_channel" - comment = "test_channel" - band = "2ghz-b/g/n" - control_channel_width = "10mhz" - extension_channel = "eCee" - frequency = [2412] - reselect_interval = "1h" - save_selected = true - secondary_frequency = ["disabled"] - skip_dfs_channels = true - tx_power = 20 + name = "test_channel" + comment = "test_channel" + band = "2ghz-b/g/n" + control_channel_width = "10mhz" + extension_channel = "eCee" + frequency = [2412] + reselect_interval = "1h" + save_selected = true + secondary_frequency = ["disabled"] + skip_dfs_channels = true + tx_power = 20 } ``` diff --git a/docs/resources/capsman_configuration.md b/docs/resources/capsman_configuration.md index a4b58e5a..8fdc3425 100644 --- a/docs/resources/capsman_configuration.md +++ b/docs/resources/capsman_configuration.md @@ -4,105 +4,105 @@ ## Example Usage ```terraform resource "routeros_capsman_configuration" "test_configuration" { - comment = "Comment" - country = "no_country_set" - disconnect_timeout = "1s150ms" - distance = "indoors" - frame_lifetime = "0.12" // 120ms - guard_interval = "long" - hide_ssid = true - hw_protection_mode = "rts-cts" - hw_retries = 1 - installation = "indoor" - keepalive_frames = "enabled" - load_balancing_group = "" - max_sta_count = 1 - mode = "ap" - multicast_helper = "full" - name = "test_configuration" - rx_chains = [1, 3] - ssid = "SSID" - tx_chains = [0, 2] + comment = "Comment" + country = "no_country_set" + disconnect_timeout = "1s150ms" + distance = "indoors" + frame_lifetime = "0.12" // 120ms + guard_interval = "long" + hide_ssid = true + hw_protection_mode = "rts-cts" + hw_retries = 1 + installation = "indoor" + keepalive_frames = "enabled" + load_balancing_group = "" + max_sta_count = 1 + mode = "ap" + multicast_helper = "full" + name = "test_configuration" + rx_chains = [1, 3] + ssid = "SSID" + tx_chains = [0, 2] } resource "routeros_capsman_channel" "test_channel" { - name = "test-channel-config" + name = "test-channel-config" } resource "routeros_capsman_datapath" "test_datapath" { - name = "test-datapath-config" + name = "test-datapath-config" } resource "routeros_capsman_rates" "test_rates" { - name = "test-rates-config" + name = "test-rates-config" } resource "routeros_capsman_security" "test_security" { - name = "test-security-config" + name = "test-security-config" } resource "routeros_capsman_configuration" "test_configuration_2" { - name = "test_configuration_name" - - channel = { - config = "${routeros_capsman_channel.test_channel.name}" - band = "2ghz-b/g/n" - control_channel_width = "10mhz" - extension_channel = "eCee" - frequency = 2412 - reselect_interval = "1h" - save_selected = "true" - secondary_frequency = "disabled" - skip_dfs_channels = "true" - tx_power = 20 - } - - datapath = { - config = "${routeros_capsman_datapath.test_datapath.name}" - arp = "local-proxy-arp" - bridge = "bridge" - bridge_cost = "100" - bridge_horizon = "200" - client_to_client_forwarding = "true" - interface_list = "static" - l2mtu = "1450" - local_forwarding = "true" - mtu = "1500" - vlan_id = "101" - vlan_mode = "no-tag" - // openflow_switch = "aaa" - } - - rates = { - config = "${routeros_capsman_rates.test_rates.name}" - basic = "1Mbps,5.5Mbps,6Mbps,18Mbps,36Mbps,54Mbps" - ht_basic_mcs = "mcs-0,mcs-7,mcs-11,mcs-14,mcs-16,mcs-21" - ht_supported_mcs = "mcs-3,mcs-8,mcs-10,mcs-13,mcs-17,mcs-18" - supported = "2Mbps,11Mbps,9Mbps,12Mbps,24Mbps,48Mbps" - vht_basic_mcs = "none" - vht_supported_mcs = "mcs0-9,mcs0-7" - } - - security = { - config = "${routeros_capsman_security.test_security.name}" - authentication_types = "wpa-psk,wpa-eap" - disable_pmkid = "true" - eap_methods = "eap-tls,passthrough" - eap_radius_accounting = "true" - encryption = "aes-ccm,tkip" - group_encryption = "aes-ccm" - group_key_update = "1h" - passphrase = "AAAAAAAAA" - tls_certificate = "none" - tls_mode = "verify-certificate" - } - - depends_on = [ - routeros_capsman_channel.test_channel, - routeros_capsman_datapath.test_datapath, - routeros_capsman_rates.test_rates, - routeros_capsman_security.test_security - ] + name = "test_configuration_name" + + channel = { + config = "${routeros_capsman_channel.test_channel.name}" + band = "2ghz-b/g/n" + control_channel_width = "10mhz" + extension_channel = "eCee" + frequency = 2412 + reselect_interval = "1h" + save_selected = "true" + secondary_frequency = "disabled" + skip_dfs_channels = "true" + tx_power = 20 + } + + datapath = { + config = "${routeros_capsman_datapath.test_datapath.name}" + arp = "local-proxy-arp" + bridge = "bridge" + bridge_cost = "100" + bridge_horizon = "200" + client_to_client_forwarding = "true" + interface_list = "static" + l2mtu = "1450" + local_forwarding = "true" + mtu = "1500" + vlan_id = "101" + vlan_mode = "no-tag" + // openflow_switch = "aaa" + } + + rates = { + config = "${routeros_capsman_rates.test_rates.name}" + basic = "1Mbps,5.5Mbps,6Mbps,18Mbps,36Mbps,54Mbps" + ht_basic_mcs = "mcs-0,mcs-7,mcs-11,mcs-14,mcs-16,mcs-21" + ht_supported_mcs = "mcs-3,mcs-8,mcs-10,mcs-13,mcs-17,mcs-18" + supported = "2Mbps,11Mbps,9Mbps,12Mbps,24Mbps,48Mbps" + vht_basic_mcs = "none" + vht_supported_mcs = "mcs0-9,mcs0-7" + } + + security = { + config = "${routeros_capsman_security.test_security.name}" + authentication_types = "wpa-psk,wpa-eap" + disable_pmkid = "true" + eap_methods = "eap-tls,passthrough" + eap_radius_accounting = "true" + encryption = "aes-ccm,tkip" + group_encryption = "aes-ccm" + group_key_update = "1h" + passphrase = "AAAAAAAAA" + tls_certificate = "none" + tls_mode = "verify-certificate" + } + + depends_on = [ + routeros_capsman_channel.test_channel, + routeros_capsman_datapath.test_datapath, + routeros_capsman_rates.test_rates, + routeros_capsman_security.test_security + ] } ``` diff --git a/docs/resources/capsman_datapath.md b/docs/resources/capsman_datapath.md index e9c2f39f..eacf0f4a 100644 --- a/docs/resources/capsman_datapath.md +++ b/docs/resources/capsman_datapath.md @@ -4,20 +4,20 @@ ## Example Usage ```terraform resource "routeros_capsman_datapath" "test_datapath" { - name = "test_datapath" - comment = "test_datapath" - arp = "local-proxy-arp" - bridge = "bridge" - bridge_cost = 100 - bridge_horizon = 200 - client_to_client_forwarding = true - interface_list = "static" - l2mtu = 1450 - local_forwarding = true - mtu = 1500 - vlan_id = 101 - vlan_mode = "no-tag" -// openflow_switch = "aaa" + name = "test_datapath" + comment = "test_datapath" + arp = "local-proxy-arp" + bridge = "bridge" + bridge_cost = 100 + bridge_horizon = 200 + client_to_client_forwarding = true + interface_list = "static" + l2mtu = 1450 + local_forwarding = true + mtu = 1500 + vlan_id = 101 + vlan_mode = "no-tag" + // openflow_switch = "aaa" } ``` diff --git a/docs/resources/capsman_manager.md b/docs/resources/capsman_manager.md index 3c90b89e..411e6341 100644 --- a/docs/resources/capsman_manager.md +++ b/docs/resources/capsman_manager.md @@ -4,8 +4,8 @@ ## Example Usage ```terraform resource "routeros_capsman_manager" "test_manager" { - enabled = true - upgrade_policy = "require-same-version" + enabled = true + upgrade_policy = "require-same-version" } ``` diff --git a/docs/resources/capsman_manager_interface.md b/docs/resources/capsman_manager_interface.md index b34a6b85..0055d34d 100644 --- a/docs/resources/capsman_manager_interface.md +++ b/docs/resources/capsman_manager_interface.md @@ -4,8 +4,8 @@ ## Example Usage ```terraform resource "routeros_capsman_manager_interface" "test_manager_interface" { - interface = "ether1" - forbid = true + interface = "ether1" + forbid = true } ``` diff --git a/docs/resources/capsman_provisioning.md b/docs/resources/capsman_provisioning.md index d0e83ae8..819c00c6 100644 --- a/docs/resources/capsman_provisioning.md +++ b/docs/resources/capsman_provisioning.md @@ -4,17 +4,17 @@ ## Example Usage ```terraform resource "routeros_capsman_configuration" "test_configuration" { - name = "cfg1" + name = "cfg1" } resource "routeros_capsman_provisioning" "test_provisioning" { - master_configuration = "cfg1" - action = "create-disabled" - name_prefix = "cap-" + master_configuration = "cfg1" + action = "create-disabled" + name_prefix = "cap-" - depends_on = [ - routeros_capsman_configuration.test_configuration, - ] + depends_on = [ + routeros_capsman_configuration.test_configuration, + ] } ``` diff --git a/docs/resources/capsman_rates.md b/docs/resources/capsman_rates.md index 54f1e434..cfcb9b8d 100644 --- a/docs/resources/capsman_rates.md +++ b/docs/resources/capsman_rates.md @@ -4,14 +4,14 @@ ## Example Usage ```terraform resource "routeros_capsman_rates" "test_rates" { - name = "test_rates" - comment = "test_rates" - basic = ["1Mbps", "5.5Mbps", "6Mbps", "18Mbps", "36Mbps", "54Mbps"] - ht_basic_mcs = ["mcs-0", "mcs-7", "mcs-11", "mcs-14", "mcs-16", "mcs-21"] - ht_supported_mcs = ["mcs-3", "mcs-8", "mcs-10", "mcs-13", "mcs-17", "mcs-18"] - supported = ["2Mbps", "11Mbps", "9Mbps", "12Mbps", "24Mbps", "48Mbps"] - vht_basic_mcs = "none" - vht_supported_mcs = "mcs0-9,mcs0-7" + name = "test_rates" + comment = "test_rates" + basic = ["1Mbps", "5.5Mbps", "6Mbps", "18Mbps", "36Mbps", "54Mbps"] + ht_basic_mcs = ["mcs-0", "mcs-7", "mcs-11", "mcs-14", "mcs-16", "mcs-21"] + ht_supported_mcs = ["mcs-3", "mcs-8", "mcs-10", "mcs-13", "mcs-17", "mcs-18"] + supported = ["2Mbps", "11Mbps", "9Mbps", "12Mbps", "24Mbps", "48Mbps"] + vht_basic_mcs = "none" + vht_supported_mcs = "mcs0-9,mcs0-7" } ``` diff --git a/docs/resources/capsman_security.md b/docs/resources/capsman_security.md index ee5d1b65..edf8b14f 100644 --- a/docs/resources/capsman_security.md +++ b/docs/resources/capsman_security.md @@ -4,18 +4,18 @@ ## Example Usage ```terraform resource "routeros_capsman_security" "test_security" { - name = "test_security" - comment = "test_security" - authentication_types = ["wpa-psk", "wpa-eap", "wpa2-psk"] - disable_pmkid = true - eap_methods = "eap-tls,passthrough" - eap_radius_accounting = true - encryption = ["tkip", "aes-ccm"] - group_encryption = "aes-ccm" - group_key_update = "1h" - passphrase = "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE" - tls_certificate = "none" - tls_mode = "verify-certificate" + name = "test_security" + comment = "test_security" + authentication_types = ["wpa-psk", "wpa-eap", "wpa2-psk"] + disable_pmkid = true + eap_methods = "eap-tls,passthrough" + eap_radius_accounting = true + encryption = ["tkip", "aes-ccm"] + group_encryption = "aes-ccm" + group_key_update = "1h" + passphrase = "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE" + tls_certificate = "none" + tls_mode = "verify-certificate" } ``` diff --git a/docs/resources/interface_dot1x_client.md b/docs/resources/interface_dot1x_client.md index a1f52541..6f7b5ce9 100644 --- a/docs/resources/interface_dot1x_client.md +++ b/docs/resources/interface_dot1x_client.md @@ -5,8 +5,8 @@ ```terraform resource "routeros_interface_dot1x_client" "ether2" { eap_methods = ["eap-peap", "eap-mschapv2"] - identity = "router" - interface = "ether2" + identity = "router" + interface = "ether2" } ``` diff --git a/docs/resources/interface_dot1x_server.md b/docs/resources/interface_dot1x_server.md index 2a50cf82..3d1cade5 100644 --- a/docs/resources/interface_dot1x_server.md +++ b/docs/resources/interface_dot1x_server.md @@ -5,7 +5,7 @@ ```terraform resource "routeros_interface_dot1x_server" "ether2" { auth_types = ["mac-auth"] - interface = "ether2" + interface = "ether2" } ``` diff --git a/docs/resources/interface_ethernet_switch_host.md b/docs/resources/interface_ethernet_switch_host.md index 307918f5..69577363 100644 --- a/docs/resources/interface_ethernet_switch_host.md +++ b/docs/resources/interface_ethernet_switch_host.md @@ -4,10 +4,10 @@ ## Example Usage ```terraform resource "routeros_interface_ethernet_switch_host" "test" { - switch = "switch1" + switch = "switch1" mac_address = "00:00:00:00:00:00" - ports = ["ether1"] - mirror = true + ports = ["ether1"] + mirror = true } ``` diff --git a/docs/resources/interface_ethernet_switch_port.md b/docs/resources/interface_ethernet_switch_port.md index c8cc02b0..07475298 100644 --- a/docs/resources/interface_ethernet_switch_port.md +++ b/docs/resources/interface_ethernet_switch_port.md @@ -4,8 +4,8 @@ ## Example Usage ```terraform resource "routeros_interface_ethernet_switch_port" "test" { - name = "ether1" - vlan_mode = "check" + name = "ether1" + vlan_mode = "check" } ``` diff --git a/docs/resources/interface_ethernet_switch_port_isolation.md b/docs/resources/interface_ethernet_switch_port_isolation.md index 9e6e1dfc..4cc3b7e3 100644 --- a/docs/resources/interface_ethernet_switch_port_isolation.md +++ b/docs/resources/interface_ethernet_switch_port_isolation.md @@ -4,8 +4,8 @@ ## Example Usage ```terraform resource "routeros_interface_ethernet_switch_port_isolation" "test" { - name = "ether1" - forwarding_override = "ether1" + name = "ether1" + forwarding_override = "ether1" } ``` diff --git a/docs/resources/interface_ethernet_switch_vlan.md b/docs/resources/interface_ethernet_switch_vlan.md index 5eb05dce..8a6cb874 100644 --- a/docs/resources/interface_ethernet_switch_vlan.md +++ b/docs/resources/interface_ethernet_switch_vlan.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform resource "routeros_interface_ethernet_switch_vlan" "test" { - switch = "switch1" - ports = ["ether1"] - vlan_id = 10 + switch = "switch1" + ports = ["ether1"] + vlan_id = 10 independent_learning = true } ``` diff --git a/docs/resources/interface_lte_apn.md b/docs/resources/interface_lte_apn.md index 28bd8c19..8bb2f805 100644 --- a/docs/resources/interface_lte_apn.md +++ b/docs/resources/interface_lte_apn.md @@ -4,8 +4,8 @@ ## Example Usage ```terraform resource "routeros_interface_lte_apn" "test" { - name = "apn1" - apn = "internet" + name = "apn1" + apn = "internet" authentication = "pap" } ``` diff --git a/docs/resources/interface_macvlan.md b/docs/resources/interface_macvlan.md index 5b6f4296..8399475b 100644 --- a/docs/resources/interface_macvlan.md +++ b/docs/resources/interface_macvlan.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform resource "routeros_interface_macvlan" "test" { - interface = "ether1" - name = "macvlan1" - disabled = false + interface = "ether1" + name = "macvlan1" + disabled = false } ``` diff --git a/docs/resources/interface_pppoe_client.md b/docs/resources/interface_pppoe_client.md index c1eec70c..7de40fac 100644 --- a/docs/resources/interface_pppoe_client.md +++ b/docs/resources/interface_pppoe_client.md @@ -4,7 +4,7 @@ ## Example Usage ```terraform resource "routeros_interface_pppoe_client" "test" { - interface = "ether1" + interface = "ether1" password = "StrongPass" service_name = "pppoeservice" name = "PPPoE-Out" diff --git a/docs/resources/interface_wireguard_peer.md b/docs/resources/interface_wireguard_peer.md index f15d4dad..ccd02479 100644 --- a/docs/resources/interface_wireguard_peer.md +++ b/docs/resources/interface_wireguard_peer.md @@ -39,6 +39,7 @@ resource "routeros_interface_wireguard_peer" "wg_peer" { - `disabled` (Boolean) - `endpoint_address` (String) An endpoint IP or hostname can be left blank to allow remote connection from any address. - `endpoint_port` (String) An endpoint port can be left blank to allow remote connection from any port. +- `is_responder` (Boolean) Specifies if peer is intended to be connection initiator or only responder. Should be used on WireGuard devices that are used as `servers` for other devices as clients to connect to. Otherwise router will all repeatedly try to connect `endpoint-address` or `current-endpoint-address` causing unnecessary system logs to be written. - `name` (String) Name of the tunnel. - `persistent_keepalive` (String) A seconds interval, between 1 and 65535 inclusive, of how often to send an authenticated empty packet to the peer for the purpose of keeping a stateful firewall or NAT mapping valid persistently. For example, if the interface very rarely sends traffic, but it might at anytime receive traffic from a peer, and it is behind NAT, the interface might benefit from having a persistent keepalive interval of 25 seconds. - `preshared_key` (String, Sensitive) A **base64** preshared key. Optional, and may be omitted. This option adds an additional layer of symmetric-key cryptography to be mixed into the already existing public-key cryptography, for post-quantum resistance. diff --git a/docs/resources/ip_dhcp_relay.md b/docs/resources/ip_dhcp_relay.md index e38a98ce..b8425010 100644 --- a/docs/resources/ip_dhcp_relay.md +++ b/docs/resources/ip_dhcp_relay.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform resource "routeros_ip_dhcp_relay" "relay" { - name = "test relay" - interface = "ether1" - dhcp_server = "0.0.0.1" + name = "test relay" + interface = "ether1" + dhcp_server = "0.0.0.1" } ``` diff --git a/docs/resources/ip_dhcp_server_config.md b/docs/resources/ip_dhcp_server_config.md index 48159fe2..145492f8 100644 --- a/docs/resources/ip_dhcp_server_config.md +++ b/docs/resources/ip_dhcp_server_config.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform resource "routeros_ip_dhcp_server_config" "settings" { - accounting = true - interim_update = "1m" - radius_password = "same-as-user" + accounting = true + interim_update = "1m" + radius_password = "same-as-user" store_leases_disk = "10m" } ``` diff --git a/docs/resources/ip_dhcp_server_option.md b/docs/resources/ip_dhcp_server_option.md index c3834049..10a01605 100644 --- a/docs/resources/ip_dhcp_server_option.md +++ b/docs/resources/ip_dhcp_server_option.md @@ -4,15 +4,15 @@ Creates a DHCP lease on the mikrotik device. ## Example Usage ```terraform resource "routeros_ip_dhcp_server_option" "jumbo_frame_opt" { - code = 77 - name = "jumbo-mtu-opt" - value = "0x2336" + code = 77 + name = "jumbo-mtu-opt" + value = "0x2336" } resource "routeros_ip_dhcp_server_option" "tftp_option" { - code = 66 - name = "tftpserver-66" - value = "s'10.10.10.22'" + code = 66 + name = "tftpserver-66" + value = "s'10.10.10.22'" } ``` diff --git a/docs/resources/ip_dhcp_server_option_set.md b/docs/resources/ip_dhcp_server_option_set.md index f6f481b0..7bc5d850 100644 --- a/docs/resources/ip_dhcp_server_option_set.md +++ b/docs/resources/ip_dhcp_server_option_set.md @@ -4,20 +4,20 @@ Creates a DHCP lease on the mikrotik device. ## Example Usage ```terraform resource "routeros_ip_dhcp_server_option" "jumbo_frame_opt" { - code = 77 - name = "jumbo-mtu-opt" - value = "0x2336" + code = 77 + name = "jumbo-mtu-opt" + value = "0x2336" } resource "routeros_ip_dhcp_server_option" "tftp_option" { - code = 66 - name = "tftpserver-66" - value = "s'10.10.10.22'" + code = 66 + name = "tftpserver-66" + value = "s'10.10.10.22'" } resource "routeros_ip_dhcp_server_option_set" "lan_option_set" { - name = "lan-option-set" - options = join(",", [routeros_ip_dhcp_server_option.jumbo_frame_opt.name, routeros_ip_dhcp_server_option.tftp_option.name]) + name = "lan-option-set" + options = join(",", [routeros_ip_dhcp_server_option.jumbo_frame_opt.name, routeros_ip_dhcp_server_option.tftp_option.name]) } ``` diff --git a/docs/resources/ip_dns_record.md b/docs/resources/ip_dns_record.md index 4946fe3b..d6b45152 100644 --- a/docs/resources/ip_dns_record.md +++ b/docs/resources/ip_dns_record.md @@ -16,54 +16,54 @@ resource "routeros_ip_dns_record" "regexp_record" { } resource "routeros_dns_record" "aaaa_record" { - name = "ipv6.lan" - address = "ff00::1" - type = "AAAA" + name = "ipv6.lan" + address = "ff00::1" + type = "AAAA" } - + resource "routeros_dns_record" "cname_record" { - name = "cname.lan" - cname = "ipv4.lan" - type = "CNAME" + name = "cname.lan" + cname = "ipv4.lan" + type = "CNAME" } - + resource "routeros_dns_record" "fwd_record" { - name = "fwd.lan" - forward_to = "127.0.0.1" - type = "FWD" + name = "fwd.lan" + forward_to = "127.0.0.1" + type = "FWD" } - + resource "routeros_dns_record" "mx_record" { - name = "mx.lan" - mx_exchange = "127.0.0.1" - mx_preference = 10 - type = "MX" + name = "mx.lan" + mx_exchange = "127.0.0.1" + mx_preference = 10 + type = "MX" } - + resource "routeros_dns_record" "ns_record" { - name = "ns.lan" - ns = "127.0.0.1" - type = "NS" + name = "ns.lan" + ns = "127.0.0.1" + type = "NS" } - + resource "routeros_dns_record" "nxdomain_record" { - name = "nxdomain.lan" - type = "NXDOMAIN" + name = "nxdomain.lan" + type = "NXDOMAIN" } - + resource "routeros_dns_record" "srv_record" { - name = "srv.lan" - srv_port = 8080 - srv_priority = 10 - srv_target = "127.0.0.1" - srv_weight = 100 - type = "SRV" + name = "srv.lan" + srv_port = 8080 + srv_priority = 10 + srv_target = "127.0.0.1" + srv_weight = 100 + type = "SRV" } resource "routeros_dns_record" "txt_record" { - name = "_acme-challenge.yourwebsite.com" - text = "dW6MrI3nBy3eJgYWH3QAg1Cwk_TvjFESOuKo+mp6nm1" - type = "TXT" + name = "_acme-challenge.yourwebsite.com" + text = "dW6MrI3nBy3eJgYWH3QAg1Cwk_TvjFESOuKo+mp6nm1" + type = "TXT" } ``` diff --git a/docs/resources/ip_firewall_connection_tracking.md b/docs/resources/ip_firewall_connection_tracking.md index 7fdff4cf..1446a5a7 100644 --- a/docs/resources/ip_firewall_connection_tracking.md +++ b/docs/resources/ip_firewall_connection_tracking.md @@ -4,22 +4,22 @@ ## Example Usage ```terraform resource "routeros_ip_firewall_connection_tracking" "data" { - enabled = "yes" - generic_timeout = "3m" - icmp_timeout = "3m" - loose_tcp_tracking = "false" - tcp_close_timeout = "3m" - tcp_close_wait_timeout = "3m" - tcp_established_timeout = "3m" - tcp_fin_wait_timeout = "3m" - tcp_last_ack_timeout = "3m" - tcp_max_retrans_timeout = "3m" + enabled = "yes" + generic_timeout = "3m" + icmp_timeout = "3m" + loose_tcp_tracking = "false" + tcp_close_timeout = "3m" + tcp_close_wait_timeout = "3m" + tcp_established_timeout = "3m" + tcp_fin_wait_timeout = "3m" + tcp_last_ack_timeout = "3m" + tcp_max_retrans_timeout = "3m" tcp_syn_received_timeout = "3m" - tcp_syn_sent_timeout = "3m" - tcp_time_wait_timeout = "3m" - tcp_unacked_timeout = "3m" - udp_stream_timeout = "3m" - udp_timeout = "3m" + tcp_syn_sent_timeout = "3m" + tcp_time_wait_timeout = "3m" + tcp_unacked_timeout = "3m" + udp_stream_timeout = "3m" + udp_timeout = "3m" } ``` diff --git a/docs/resources/ip_service.md b/docs/resources/ip_service.md index 9007f331..74ea2a30 100644 --- a/docs/resources/ip_service.md +++ b/docs/resources/ip_service.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform locals { - tls_service = {"api-ssl" = 8729, "www-ssl" = 443} - disable_service = {"api" = 8728, "ftp" = 21, "telnet" = 23, "www" = 80} - enable_service = {"ssh" = 22, "winbox" = 8291} + tls_service = { "api-ssl" = 8729, "www-ssl" = 443 } + disable_service = { "api" = 8728, "ftp" = 21, "telnet" = 23, "www" = 80 } + enable_service = { "ssh" = 22, "winbox" = 8291 } } resource "routeros_system_certificate" "tls_cert" { diff --git a/docs/resources/ip_upnp.md b/docs/resources/ip_upnp.md index 39c865c6..ff39cd7e 100644 --- a/docs/resources/ip_upnp.md +++ b/docs/resources/ip_upnp.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform resource "routeros_ip_upnp" "test" { - allow_disable_external_interface = true - enabled = true - show_dummy_rule = true + allow_disable_external_interface = true + enabled = true + show_dummy_rule = true } ``` diff --git a/docs/resources/ip_upnp_interfaces.md b/docs/resources/ip_upnp_interfaces.md index d7bd33c2..4a6b7ad9 100644 --- a/docs/resources/ip_upnp_interfaces.md +++ b/docs/resources/ip_upnp_interfaces.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform resource "routeros_ip_upnp_interfaces" "test" { - interface = "ether1" - type = "external" - forced_external_ip = "0.0.0.0" + interface = "ether1" + type = "external" + forced_external_ip = "0.0.0.0" } ``` diff --git a/docs/resources/ip_vrf.md b/docs/resources/ip_vrf.md index c2a26c27..6033a802 100644 --- a/docs/resources/ip_vrf.md +++ b/docs/resources/ip_vrf.md @@ -4,19 +4,19 @@ ## Example Usage ```terraform resource "routeros_interface_veth" "veth1" { - name = "veth1" + name = "veth1" } resource "routeros_interface_veth" "veth2" { - name = "veth2" + name = "veth2" } resource "routeros_ip_vrf" "test_vrf_a" { - disabled = true - name = "vrf_1" - comment = "Custom routing" - interfaces = ["veth1", "veth2"] - depends_on = [routeros_interface_veth.veth1, routeros_interface_veth.veth2] + disabled = true + name = "vrf_1" + comment = "Custom routing" + interfaces = ["veth1", "veth2"] + depends_on = [routeros_interface_veth.veth1, routeros_interface_veth.veth2] } ``` diff --git a/docs/resources/ipv6_dhcp_client.md b/docs/resources/ipv6_dhcp_client.md index 91be4097..16cd0850 100644 --- a/docs/resources/ipv6_dhcp_client.md +++ b/docs/resources/ipv6_dhcp_client.md @@ -4,18 +4,18 @@ ## Example Usage ```terraform resource "routeros_ipv6_dhcp_client" "inet_provider" { - pool_name = "pub-add-pool" - interface = "ether1" - add-default-route = true + pool_name = "pub-add-pool" + interface = "ether1" + add_default_route = true pool_prefix_length = 64 - request = ["prefix"] - disabled = false + request = ["prefix"] + disabled = false } resource "routeros_ipv6_dhcp_client" "client" { - pool_name = "pub-add-pool" - interface = "ether1" - add-default-route = true + pool_name = "pub-add-pool" + interface = "ether1" + add_default_route = true pool_prefix_length = 64 request = ["prefix"] } diff --git a/docs/resources/ipv6_neighbor_discovery.md b/docs/resources/ipv6_neighbor_discovery.md index 0e878112..ad478e86 100644 --- a/docs/resources/ipv6_neighbor_discovery.md +++ b/docs/resources/ipv6_neighbor_discovery.md @@ -4,21 +4,21 @@ ## Example Usage ```terraform resource "routeros_ipv6_neighbor_discovery" "test" { - interface = "ether1" - hop_limit = 33 - advertise_dns = false - advertise_mac_address = true - disabled = false - managed_address_configuration = true - mtu = 9000 - other_configuration = true - pref64_prefixes = [] - ra_delay = "3s" - ra_interval = "3m20s-10m" - ra_lifetime = "30m" - ra_preference = "high" - reachable_time = "10m" - retransmit_interval = "12m" + interface = "ether1" + hop_limit = 33 + advertise_dns = false + advertise_mac_address = true + disabled = false + managed_address_configuration = true + mtu = 9000 + other_configuration = true + pref64_prefixes = [] + ra_delay = "3s" + ra_interval = "3m20s-10m" + ra_lifetime = "30m" + ra_preference = "high" + reachable_time = "10m" + retransmit_interval = "12m" } ``` diff --git a/docs/resources/routing_ospf_area.md b/docs/resources/routing_ospf_area.md index d0b30943..a0af489c 100644 --- a/docs/resources/routing_ospf_area.md +++ b/docs/resources/routing_ospf_area.md @@ -4,12 +4,12 @@ ## Example Usage ```terraform resource "routeros_routing_ospf_instance" "test_routing_ospf_instance" { - name = "test_routing_ospf_instance" + name = "test_routing_ospf_instance" } resource "routeros_routing_ospf_area" "test_routing_ospf_area" { - name = "test_routing_ospf_area" - instance = routeros_routing_ospf_instance.test_routing_ospf_instance.name + name = "test_routing_ospf_area" + instance = routeros_routing_ospf_instance.test_routing_ospf_instance.name } ``` diff --git a/docs/resources/routing_ospf_instance.md b/docs/resources/routing_ospf_instance.md index ffaf8c5e..e8e96201 100644 --- a/docs/resources/routing_ospf_instance.md +++ b/docs/resources/routing_ospf_instance.md @@ -4,7 +4,7 @@ ## Example Usage ```terraform resource "routeros_routing_ospf_instance" "test_routing_ospf_instance" { - name = "test_routing_ospf_instance" + name = "test_routing_ospf_instance" } ``` diff --git a/docs/resources/routing_ospf_interface_template.md b/docs/resources/routing_ospf_interface_template.md index 9e5e89f9..86f342bd 100644 --- a/docs/resources/routing_ospf_interface_template.md +++ b/docs/resources/routing_ospf_interface_template.md @@ -4,16 +4,16 @@ ## Example Usage ```terraform resource "routeros_routing_ospf_instance" "test_routing_ospf_instance" { - name = "test_routing_ospf_instance" + name = "test_routing_ospf_instance" } resource "routeros_routing_ospf_area" "test_routing_ospf_area" { - name = "test_routing_ospf_area" - instance = routeros_routing_ospf_instance.test_routing_ospf_instance.name + name = "test_routing_ospf_area" + instance = routeros_routing_ospf_instance.test_routing_ospf_instance.name } resource "routeros_routing_ospf_interface_template" "test_routing_ospf_interface_template" { - area = routeros_routing_ospf_area.test_routing_ospf_area.name + area = routeros_routing_ospf_area.test_routing_ospf_area.name } ``` diff --git a/docs/resources/routing_table.md b/docs/resources/routing_table.md index d08168ed..f6c7fae0 100644 --- a/docs/resources/routing_table.md +++ b/docs/resources/routing_table.md @@ -4,8 +4,8 @@ ## Example Usage ```terraform resource "routeros_routing_table" "test_table" { - name = "to_ISP1" - fib = false + name = "to_ISP1" + fib = false } ``` diff --git a/docs/resources/system_clock.md b/docs/resources/system_clock.md index 326af2fb..751886ac 100644 --- a/docs/resources/system_clock.md +++ b/docs/resources/system_clock.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform resource "routeros_system_clock" "set" { - date = "2024-05-15" - time = "17:58:11" - time_zone_name = "EST" + date = "2024-05-15" + time = "17:58:11" + time_zone_name = "EST" } ``` diff --git a/docs/resources/tool_bandwidth_server.md b/docs/resources/tool_bandwidth_server.md index a3d53cde..70790f04 100644 --- a/docs/resources/tool_bandwidth_server.md +++ b/docs/resources/tool_bandwidth_server.md @@ -4,9 +4,9 @@ ## Example Usage ```terraform resource "routeros_tool_bandwidth_test_server" "test" { - enabled = true - authenticate = false - max_sessions = 100 + enabled = true + authenticate = false + max_sessions = 100 allocate_udp_ports_from = 2000 } ``` diff --git a/docs/resources/user_manager_profile_limitation.md b/docs/resources/user_manager_profile_limitation.md index 7e62782a..4509bfdd 100644 --- a/docs/resources/user_manager_profile_limitation.md +++ b/docs/resources/user_manager_profile_limitation.md @@ -21,7 +21,7 @@ resource "routeros_user_manager_profile_limitation" "weekend_night" { profile = routeros_user_manager_profile.test.name from_time = "0s" till_time = "6h" - weekdays = [ + weekdays = [ "sunday", "saturday", ] diff --git a/docs/resources/wifi_channel.md b/docs/resources/wifi_channel.md index d9a97f13..bec5dd06 100644 --- a/docs/resources/wifi_channel.md +++ b/docs/resources/wifi_channel.md @@ -4,12 +4,12 @@ ## Example Usage ```terraform resource "routeros_wifi_channel" "channel1" { - name = "1" - band = "2ghz-n" - frequency = [2412] - secondary_frequency = ["disabled"] - skip_dfs_channels = "disabled" - width = "20mhz" + name = "1" + band = "2ghz-n" + frequency = [2412] + secondary_frequency = ["disabled"] + skip_dfs_channels = "disabled" + width = "20mhz" } ``` diff --git a/docs/resources/wifi_configuration.md b/docs/resources/wifi_configuration.md index 2dd11466..e17e61b9 100644 --- a/docs/resources/wifi_configuration.md +++ b/docs/resources/wifi_configuration.md @@ -11,12 +11,12 @@ resource "routeros_wifi_aaa" "aaa1" { } resource "routeros_wifi_channel" "channel1" { - name = "1" - band = "2ghz-n" - frequency = [2412] - secondary_frequency = ["disabled"] - skip_dfs_channels = "disabled" - width = "20mhz" + name = "1" + band = "2ghz-n" + frequency = [2412] + secondary_frequency = ["disabled"] + skip_dfs_channels = "disabled" + width = "20mhz" } resource "routeros_wifi_datapath" "datapath1" { diff --git a/package.json b/package.json index 254bdcc9..50739ce3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "terraform-provider-routeros", - "version": "1.59.0", + "version": "1.59.1", "repository": { "type": "git", "url": "https://github.com/terraform-routeros/terraform-provider-routeros"