From d02c97bd5572d2769aa7d5a0fc96f288f8eede8f Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Sat, 2 Jul 2022 22:02:22 -0400 Subject: [PATCH] Updates for controller v7.1 and dependency updates --- .github/workflows/acctest.yml | 5 +- .github/workflows/ci.yaml | 2 +- .github/workflows/release.yml | 2 +- docs/data-sources/ap_group.md | 6 +- docs/data-sources/network.md | 64 ++++---- docs/data-sources/port_profile.md | 6 +- docs/data-sources/radius_profile.md | 6 +- docs/data-sources/user.md | 24 +-- docs/data-sources/user_group.md | 10 +- docs/index.md | 10 +- docs/resources/device.md | 18 +-- docs/resources/dynamic_dns.md | 16 +- docs/resources/firewall_group.md | 10 +- docs/resources/firewall_rule.md | 48 +++--- docs/resources/network.md | 64 ++++---- docs/resources/port_forward.md | 22 +-- docs/resources/port_profile.md | 72 ++++----- docs/resources/setting_mgmt.md | 18 +-- docs/resources/setting_usg.md | 14 +- docs/resources/site.md | 6 +- docs/resources/static_route.md | 16 +- docs/resources/user.md | 28 ++-- docs/resources/user_group.md | 10 +- docs/resources/wlan.md | 56 +++---- .../data-sources/unifi_network/data-source.tf | 2 +- go.mod | 79 +++++++-- go.sum | 153 +++++++----------- internal/provider/data_network_test.go | 48 ++++-- internal/provider/resource_setting_usg.go | 1 + 29 files changed, 431 insertions(+), 385 deletions(-) diff --git a/.github/workflows/acctest.yml b/.github/workflows/acctest.yml index 6e51a87..5312239 100644 --- a/.github/workflows/acctest.yml +++ b/.github/workflows/acctest.yml @@ -28,14 +28,13 @@ jobs: - "v7" - "latest" terraform_version: - - "0.15.5" - - "1.0.11" - "1.1.9" + - "1.2.4" steps: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: "1.16" + go-version: "1.18" - name: Check out code into the Go module directory uses: actions/checkout@v3 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2445118..7b67efd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,7 +8,7 @@ on: - "v*" env: - GO_VERSION: "1.16" + GO_VERSION: "1.18" jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb2fdd6..a912473 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: "1.16" + go-version: "1.18" - name: Import GPG key id: import_gpg uses: paultyng/ghaction-import-gpg@v2.1.0 diff --git a/docs/data-sources/ap_group.md b/docs/data-sources/ap_group.md index 80e8d4c..ceaea54 100644 --- a/docs/data-sources/ap_group.md +++ b/docs/data-sources/ap_group.md @@ -22,11 +22,11 @@ data "unifi_ap_group" "default" { ### Optional -- **name** (String) The name of the AP group to look up, leave blank to look up the default AP group. -- **site** (String) The name of the site the AP group is associated with. +- `name` (String) The name of the AP group to look up, leave blank to look up the default AP group. +- `site` (String) The name of the site the AP group is associated with. ### Read-Only -- **id** (String) The ID of this AP group. +- `id` (String) The ID of this AP group. diff --git a/docs/data-sources/network.md b/docs/data-sources/network.md index e5c21d0..d44c3ae 100644 --- a/docs/data-sources/network.md +++ b/docs/data-sources/network.md @@ -15,7 +15,7 @@ description: |- ```terraform #retrieve network data by unifi network name data "unifi_network" "lan_network" { - name = "LAN" + name = "Default" } #retrieve network data from user record @@ -32,39 +32,39 @@ data "unifi_network" "my_network" { ### Optional -- **id** (String) The ID of the network. -- **name** (String) The name of the network. -- **site** (String) The name of the site to associate the network with. +- `id` (String) The ID of the network. +- `name` (String) The name of the network. +- `site` (String) The name of the site to associate the network with. ### Read-Only -- **dhcp_dns** (List of String) IPv4 addresses for the DNS server to be returned from the DHCP server. -- **dhcp_enabled** (Boolean) whether DHCP is enabled or not on this network. -- **dhcp_lease** (Number) lease time for DHCP addresses. -- **dhcp_start** (String) The IPv4 address where the DHCP range of addresses starts. -- **dhcp_stop** (String) The IPv4 address where the DHCP range of addresses stops. -- **dhcpd_boot_enabled** (Boolean) Toggles on the DHCP boot options. will be set to true if you have dhcpd_boot_filename, and dhcpd_boot_server set. -- **dhcpd_boot_filename** (String) the file to PXE boot from on the dhcpd_boot_server. -- **dhcpd_boot_server** (String) IPv4 address of a TFTP server to network boot from. -- **domain_name** (String) The domain name of this network. -- **igmp_snooping** (Boolean) Specifies whether IGMP snooping is enabled or not. -- **ipv6_interface_type** (String) Specifies which type of IPv6 connection to use. -- **ipv6_pd_interface** (String) Specifies which WAN interface is used for IPv6 Prefix Delegation. -- **ipv6_pd_prefixid** (String) Specifies the IPv6 Prefix ID. -- **ipv6_ra_enable** (Boolean) Specifies whether to enable router advertisements or not. -- **ipv6_static_subnet** (String) Specifies the static IPv6 subnet (when ipv6_interface_type is 'static'). -- **network_group** (String) The group of the network. -- **purpose** (String) The purpose of the network. One of `corporate`, `guest`, `wan`, or `vlan-only`. -- **subnet** (String) The subnet of the network (CIDR address). -- **vlan_id** (Number) The VLAN ID of the network. -- **wan_dns** (List of String) DNS servers IPs of the WAN. -- **wan_egress_qos** (Number) Specifies the WAN egress quality of service. -- **wan_gateway** (String) The IPv4 gateway of the WAN. -- **wan_ip** (String) The IPv4 address of the WAN. -- **wan_netmask** (String) The IPv4 netmask of the WAN. -- **wan_networkgroup** (String) Specifies the WAN network group. One of either `WAN`, `WAN2` or `WAN_LTE_FAILOVER`. -- **wan_type** (String) Specifies the IPV4 WAN connection type. One of either `disabled`, `static`, `dhcp`, or `pppoe`. -- **wan_username** (String) Specifies the IPV4 WAN username. -- **x_wan_password** (String) Specifies the IPV4 WAN password. +- `dhcp_dns` (List of String) IPv4 addresses for the DNS server to be returned from the DHCP server. +- `dhcp_enabled` (Boolean) whether DHCP is enabled or not on this network. +- `dhcp_lease` (Number) lease time for DHCP addresses. +- `dhcp_start` (String) The IPv4 address where the DHCP range of addresses starts. +- `dhcp_stop` (String) The IPv4 address where the DHCP range of addresses stops. +- `dhcpd_boot_enabled` (Boolean) Toggles on the DHCP boot options. will be set to true if you have dhcpd_boot_filename, and dhcpd_boot_server set. +- `dhcpd_boot_filename` (String) the file to PXE boot from on the dhcpd_boot_server. +- `dhcpd_boot_server` (String) IPv4 address of a TFTP server to network boot from. +- `domain_name` (String) The domain name of this network. +- `igmp_snooping` (Boolean) Specifies whether IGMP snooping is enabled or not. +- `ipv6_interface_type` (String) Specifies which type of IPv6 connection to use. +- `ipv6_pd_interface` (String) Specifies which WAN interface is used for IPv6 Prefix Delegation. +- `ipv6_pd_prefixid` (String) Specifies the IPv6 Prefix ID. +- `ipv6_ra_enable` (Boolean) Specifies whether to enable router advertisements or not. +- `ipv6_static_subnet` (String) Specifies the static IPv6 subnet (when ipv6_interface_type is 'static'). +- `network_group` (String) The group of the network. +- `purpose` (String) The purpose of the network. One of `corporate`, `guest`, `wan`, or `vlan-only`. +- `subnet` (String) The subnet of the network (CIDR address). +- `vlan_id` (Number) The VLAN ID of the network. +- `wan_dns` (List of String) DNS servers IPs of the WAN. +- `wan_egress_qos` (Number) Specifies the WAN egress quality of service. +- `wan_gateway` (String) The IPv4 gateway of the WAN. +- `wan_ip` (String) The IPv4 address of the WAN. +- `wan_netmask` (String) The IPv4 netmask of the WAN. +- `wan_networkgroup` (String) Specifies the WAN network group. One of either `WAN`, `WAN2` or `WAN_LTE_FAILOVER`. +- `wan_type` (String) Specifies the IPV4 WAN connection type. One of either `disabled`, `static`, `dhcp`, or `pppoe`. +- `wan_username` (String) Specifies the IPV4 WAN username. +- `x_wan_password` (String) Specifies the IPV4 WAN password. diff --git a/docs/data-sources/port_profile.md b/docs/data-sources/port_profile.md index 3bdf217..a5dc515 100644 --- a/docs/data-sources/port_profile.md +++ b/docs/data-sources/port_profile.md @@ -22,11 +22,11 @@ data "unifi_port_profile" "all" { ### Optional -- **name** (String) The name of the port profile to look up. Defaults to `All`. -- **site** (String) The name of the site the port profile is associated with. +- `name` (String) The name of the port profile to look up. Defaults to `All`. +- `site` (String) The name of the site the port profile is associated with. ### Read-Only -- **id** (String) The ID of this port profile. +- `id` (String) The ID of this port profile. diff --git a/docs/data-sources/radius_profile.md b/docs/data-sources/radius_profile.md index 8d37e2d..be8b5b6 100644 --- a/docs/data-sources/radius_profile.md +++ b/docs/data-sources/radius_profile.md @@ -17,11 +17,11 @@ description: |- ### Optional -- **name** (String) The name of the RADIUS profile to look up. Defaults to `Default`. -- **site** (String) The name of the site the radius profile is associated with. +- `name` (String) The name of the RADIUS profile to look up. Defaults to `Default`. +- `site` (String) The name of the site the radius profile is associated with. ### Read-Only -- **id** (String) The ID of this AP group. +- `id` (String) The ID of this AP group. diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md index 92503d2..2ddb15d 100644 --- a/docs/data-sources/user.md +++ b/docs/data-sources/user.md @@ -23,23 +23,23 @@ data "unifi_user" "client" { ### Required -- **mac** (String) The MAC address of the user. +- `mac` (String) The MAC address of the user. ### Optional -- **site** (String) The name of the site the user is associated with. +- `site` (String) The name of the site the user is associated with. ### Read-Only -- **blocked** (Boolean) Specifies whether this user should be blocked from the network. -- **dev_id_override** (Number) Override the device fingerprint. -- **fixed_ip** (String) fixed IPv4 address set for this user. -- **hostname** (String) The hostname of the user. -- **id** (String) The ID of the user. -- **ip** (String) The IP address of the user. -- **name** (String) The name of the user. -- **network_id** (String) The network ID for this user. -- **note** (String) A note with additional information for the user. -- **user_group_id** (String) The user group ID for the user. +- `blocked` (Boolean) Specifies whether this user should be blocked from the network. +- `dev_id_override` (Number) Override the device fingerprint. +- `fixed_ip` (String) fixed IPv4 address set for this user. +- `hostname` (String) The hostname of the user. +- `id` (String) The ID of the user. +- `ip` (String) The IP address of the user. +- `name` (String) The name of the user. +- `network_id` (String) The network ID for this user. +- `note` (String) A note with additional information for the user. +- `user_group_id` (String) The user group ID for the user. diff --git a/docs/data-sources/user_group.md b/docs/data-sources/user_group.md index b0f5341..85bda38 100644 --- a/docs/data-sources/user_group.md +++ b/docs/data-sources/user_group.md @@ -17,13 +17,13 @@ description: |- ### Optional -- **name** (String) The name of the user group to look up. Defaults to `Default`. -- **site** (String) The name of the site the user group is associated with. +- `name` (String) The name of the user group to look up. Defaults to `Default`. +- `site` (String) The name of the site the user group is associated with. ### Read-Only -- **id** (String) The ID of this AP group. -- **qos_rate_max_down** (Number) -- **qos_rate_max_up** (Number) +- `id` (String) The ID of this AP group. +- `qos_rate_max_down` (Number) +- `qos_rate_max_up` (Number) diff --git a/docs/index.md b/docs/index.md index 111ab97..21f687e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -35,8 +35,8 @@ provider "unifi" { ### Optional -- **allow_insecure** (Boolean) Skip verification of TLS certificates of API requests. You may need to set this to `true` if you are using your local API without setting up a signed certificate. Can be specified with the `UNIFI_INSECURE` environment variable. -- **api_url** (String) URL of the controller API. Can be specified with the `UNIFI_API` environment variable. You should **NOT** supply the path (`/api`), the SDK will discover the appropriate paths. This is to support UDM Pro style API paths as well as more standard controller paths. -- **password** (String) Password for the user accessing the API. Can be specified with the `UNIFI_PASSWORD` environment variable. -- **site** (String) The site in the Unifi controller this provider will manage. Can be specified with the `UNIFI_SITE` environment variable. Default: `default` -- **username** (String) Local user name for the Unifi controller API. Can be specified with the `UNIFI_USERNAME` environment variable. +- `allow_insecure` (Boolean) Skip verification of TLS certificates of API requests. You may need to set this to `true` if you are using your local API without setting up a signed certificate. Can be specified with the `UNIFI_INSECURE` environment variable. +- `api_url` (String) URL of the controller API. Can be specified with the `UNIFI_API` environment variable. You should **NOT** supply the path (`/api`), the SDK will discover the appropriate paths. This is to support UDM Pro style API paths as well as more standard controller paths. +- `password` (String) Password for the user accessing the API. Can be specified with the `UNIFI_PASSWORD` environment variable. +- `site` (String) The site in the Unifi controller this provider will manage. Can be specified with the `UNIFI_SITE` environment variable. Default: `default` +- `username` (String) Local user name for the Unifi controller API. Can be specified with the `UNIFI_USERNAME` environment variable. diff --git a/docs/resources/device.md b/docs/resources/device.md index 3872778..582c90b 100644 --- a/docs/resources/device.md +++ b/docs/resources/device.md @@ -59,26 +59,26 @@ resource "unifi_device" "us_24_poe" { ### Optional -- **mac** (String) The MAC address of the device. This can be specified so that the provider can take control of a device (since devices are created through adoption). -- **name** (String) The name of the device. -- **port_override** (Block Set) Settings overrides for specific switch ports. (see [below for nested schema](#nestedblock--port_override)) -- **site** (String) The name of the site to associate the device with. +- `mac` (String) The MAC address of the device. This can be specified so that the provider can take control of a device (since devices are created through adoption). +- `name` (String) The name of the device. +- `port_override` (Block Set) Settings overrides for specific switch ports. (see [below for nested schema](#nestedblock--port_override)) +- `site` (String) The name of the site to associate the device with. ### Read-Only -- **disabled** (Boolean) Specifies whether this device should be disabled. -- **id** (String) The ID of the device. +- `disabled` (Boolean) Specifies whether this device should be disabled. +- `id` (String) The ID of the device. ### Nested Schema for `port_override` Required: -- **number** (Number) Switch port number. +- `number` (Number) Switch port number. Optional: -- **name** (String) Human-readable name of the port. -- **port_profile_id** (String) ID of the Port Profile used on this port. +- `name` (String) Human-readable name of the port. +- `port_profile_id` (String) ID of the Port Profile used on this port. diff --git a/docs/resources/dynamic_dns.md b/docs/resources/dynamic_dns.md index 3a6ce71..4ba779e 100644 --- a/docs/resources/dynamic_dns.md +++ b/docs/resources/dynamic_dns.md @@ -29,19 +29,19 @@ resource "unifi_dynamic_dns" "test" { ### Required -- **host_name** (String) The host name to update in the dynamic DNS service. -- **service** (String) The Dynamic DNS service provider, various values are supported (for example `dyndns`, etc.). +- `host_name` (String) The host name to update in the dynamic DNS service. +- `service` (String) The Dynamic DNS service provider, various values are supported (for example `dyndns`, etc.). ### Optional -- **interface** (String) The interface for the dynamic DNS. Can be `wan` or `wan2`. Defaults to `wan`. -- **login** (String) The server for the dynamic DNS service. -- **password** (String, Sensitive) The server for the dynamic DNS service. -- **server** (String) The server for the dynamic DNS service. -- **site** (String) The name of the site to associate the dynamic DNS with. +- `interface` (String) The interface for the dynamic DNS. Can be `wan` or `wan2`. Defaults to `wan`. +- `login` (String) The server for the dynamic DNS service. +- `password` (String, Sensitive) The server for the dynamic DNS service. +- `server` (String) The server for the dynamic DNS service. +- `site` (String) The name of the site to associate the dynamic DNS with. ### Read-Only -- **id** (String) The ID of the dynamic DNS. +- `id` (String) The ID of the dynamic DNS. diff --git a/docs/resources/firewall_group.md b/docs/resources/firewall_group.md index a21a8de..c6324b7 100644 --- a/docs/resources/firewall_group.md +++ b/docs/resources/firewall_group.md @@ -30,16 +30,16 @@ resource "unifi_firewall_group" "can_print" { ### Required -- **members** (Set of String) The members of the firewall group. -- **name** (String) The name of the firewall group. -- **type** (String) The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`. +- `members` (Set of String) The members of the firewall group. +- `name` (String) The name of the firewall group. +- `type` (String) The type of the firewall group. Must be one of: `address-group`, `port-group`, or `ipv6-address-group`. ### Optional -- **site** (String) The name of the site to associate the firewall group with. +- `site` (String) The name of the site to associate the firewall group with. ### Read-Only -- **id** (String) The ID of the firewall group. +- `id` (String) The ID of the firewall group. diff --git a/docs/resources/firewall_rule.md b/docs/resources/firewall_rule.md index 6718de1..7c2e812 100644 --- a/docs/resources/firewall_rule.md +++ b/docs/resources/firewall_rule.md @@ -35,36 +35,36 @@ resource "unifi_firewall_rule" "drop_all" { ### Required -- **action** (String) The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`. -- **name** (String) The name of the firewall rule. -- **protocol** (String) The protocol of the rule. -- **rule_index** (Number) The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000. -- **ruleset** (String) The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`. +- `action` (String) The action of the firewall rule. Must be one of `drop`, `accept`, or `reject`. +- `name` (String) The name of the firewall rule. +- `protocol` (String) The protocol of the rule. +- `rule_index` (Number) The index of the rule. Must be >= 2000 < 3000 or >= 4000 < 5000. +- `ruleset` (String) The ruleset for the rule. This is from the perspective of the security gateway. Must be one of `WAN_IN`, `WAN_OUT`, `WAN_LOCAL`, `LAN_IN`, `LAN_OUT`, `LAN_LOCAL`, `GUEST_IN`, `GUEST_OUT`, `GUEST_LOCAL`, `WANv6_IN`, `WANv6_OUT`, `WANv6_LOCAL`, `LANv6_IN`, `LANv6_OUT`, `LANv6_LOCAL`, `GUESTv6_IN`, `GUESTv6_OUT`, or `GUESTv6_LOCAL`. ### Optional -- **dst_address** (String) The destination address of the firewall rule. -- **dst_firewall_group_ids** (Set of String) The destination firewall group IDs of the firewall rule. -- **dst_network_id** (String) The destination network ID of the firewall rule. -- **dst_network_type** (String) The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`. -- **dst_port** (String) The destination port of the firewall rule. -- **icmp_typename** (String) ICMP type name. -- **ip_sec** (String) Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`. -- **logging** (Boolean) Enable logging for the firewall rule. -- **site** (String) The name of the site to associate the firewall rule with. -- **src_address** (String) The source address for the firewall rule. -- **src_firewall_group_ids** (Set of String) The source firewall group IDs for the firewall rule. -- **src_mac** (String) The source MAC address of the firewall rule. -- **src_network_id** (String) The source network ID for the firewall rule. -- **src_network_type** (String) The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`. -- **state_established** (Boolean) Match where the state is established. -- **state_invalid** (Boolean) Match where the state is invalid. -- **state_new** (Boolean) Match where the state is new. -- **state_related** (Boolean) Match where the state is related. +- `dst_address` (String) The destination address of the firewall rule. +- `dst_firewall_group_ids` (Set of String) The destination firewall group IDs of the firewall rule. +- `dst_network_id` (String) The destination network ID of the firewall rule. +- `dst_network_type` (String) The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`. +- `dst_port` (String) The destination port of the firewall rule. +- `icmp_typename` (String) ICMP type name. +- `ip_sec` (String) Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`. +- `logging` (Boolean) Enable logging for the firewall rule. +- `site` (String) The name of the site to associate the firewall rule with. +- `src_address` (String) The source address for the firewall rule. +- `src_firewall_group_ids` (Set of String) The source firewall group IDs for the firewall rule. +- `src_mac` (String) The source MAC address of the firewall rule. +- `src_network_id` (String) The source network ID for the firewall rule. +- `src_network_type` (String) The source network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`. +- `state_established` (Boolean) Match where the state is established. +- `state_invalid` (Boolean) Match where the state is invalid. +- `state_new` (Boolean) Match where the state is new. +- `state_related` (Boolean) Match where the state is related. ### Read-Only -- **id** (String) The ID of the firewall rule. +- `id` (String) The ID of the firewall rule. ## Import diff --git a/docs/resources/network.md b/docs/resources/network.md index 2f526f3..d879134 100644 --- a/docs/resources/network.md +++ b/docs/resources/network.md @@ -46,44 +46,44 @@ resource "unifi_network" "wan" { ### Required -- **name** (String) The name of the network. -- **purpose** (String) The purpose of the network. Must be one of `corporate`, `guest`, `wan`, or `vlan-only`. +- `name` (String) The name of the network. +- `purpose` (String) The purpose of the network. Must be one of `corporate`, `guest`, `wan`, or `vlan-only`. ### Optional -- **dhcp_dns** (List of String) Specifies the IPv4 addresses for the DNS server to be returned from the DHCP server. Leave blank to disable this feature. -- **dhcp_enabled** (Boolean) Specifies whether DHCP is enabled or not on this network. -- **dhcp_lease** (Number) Specifies the lease time for DHCP addresses. Defaults to `86400`. -- **dhcp_relay_enabled** (Boolean) Specifies whether DHCP relay is enabled or not on this network. -- **dhcp_start** (String) The IPv4 address where the DHCP range of addresses starts. -- **dhcp_stop** (String) The IPv4 address where the DHCP range of addresses stops. -- **dhcpd_boot_enabled** (Boolean) Toggles on the DHCP boot options. Should be set to true when you want to have dhcpd_boot_filename, and dhcpd_boot_server to take effect. -- **dhcpd_boot_filename** (String) Specifies the file to PXE boot from on the dhcpd_boot_server. -- **dhcpd_boot_server** (String) Specifies the IPv4 address of a TFTP server to network boot from. -- **domain_name** (String) The domain name of this network. -- **igmp_snooping** (Boolean) Specifies whether IGMP snooping is enabled or not. -- **ipv6_interface_type** (String) Specifies which type of IPv6 connection to use. Defaults to `none`. -- **ipv6_pd_interface** (String) Specifies which WAN interface to use for IPv6 PD. -- **ipv6_pd_prefixid** (String) Specifies the IPv6 Prefix ID. -- **ipv6_ra_enable** (Boolean) Specifies whether to enable router advertisements or not. -- **ipv6_static_subnet** (String) Specifies the static IPv6 subnet when ipv6_interface_type is 'static'. -- **network_group** (String) The group of the network. Defaults to `LAN`. -- **site** (String) The name of the site to associate the network with. -- **subnet** (String) The subnet of the network. Must be a valid CIDR address. -- **vlan_id** (Number) The VLAN ID of the network. -- **wan_dns** (List of String) DNS servers IPs of the WAN. -- **wan_egress_qos** (Number) Specifies the WAN egress quality of service. Defaults to `0`. -- **wan_gateway** (String) The IPv4 gateway of the WAN. -- **wan_ip** (String) The IPv4 address of the WAN. -- **wan_netmask** (String) The IPv4 netmask of the WAN. -- **wan_networkgroup** (String) Specifies the WAN network group. Must be one of either `WAN`, `WAN2` or `WAN_LTE_FAILOVER`. -- **wan_type** (String) Specifies the IPV4 WAN connection type. Must be one of either `disabled`, `static`, `dhcp`, or `pppoe`. -- **wan_username** (String) Specifies the IPV4 WAN username. -- **x_wan_password** (String) Specifies the IPV4 WAN password. +- `dhcp_dns` (List of String) Specifies the IPv4 addresses for the DNS server to be returned from the DHCP server. Leave blank to disable this feature. +- `dhcp_enabled` (Boolean) Specifies whether DHCP is enabled or not on this network. +- `dhcp_lease` (Number) Specifies the lease time for DHCP addresses. Defaults to `86400`. +- `dhcp_relay_enabled` (Boolean) Specifies whether DHCP relay is enabled or not on this network. +- `dhcp_start` (String) The IPv4 address where the DHCP range of addresses starts. +- `dhcp_stop` (String) The IPv4 address where the DHCP range of addresses stops. +- `dhcpd_boot_enabled` (Boolean) Toggles on the DHCP boot options. Should be set to true when you want to have dhcpd_boot_filename, and dhcpd_boot_server to take effect. +- `dhcpd_boot_filename` (String) Specifies the file to PXE boot from on the dhcpd_boot_server. +- `dhcpd_boot_server` (String) Specifies the IPv4 address of a TFTP server to network boot from. +- `domain_name` (String) The domain name of this network. +- `igmp_snooping` (Boolean) Specifies whether IGMP snooping is enabled or not. +- `ipv6_interface_type` (String) Specifies which type of IPv6 connection to use. Defaults to `none`. +- `ipv6_pd_interface` (String) Specifies which WAN interface to use for IPv6 PD. +- `ipv6_pd_prefixid` (String) Specifies the IPv6 Prefix ID. +- `ipv6_ra_enable` (Boolean) Specifies whether to enable router advertisements or not. +- `ipv6_static_subnet` (String) Specifies the static IPv6 subnet when ipv6_interface_type is 'static'. +- `network_group` (String) The group of the network. Defaults to `LAN`. +- `site` (String) The name of the site to associate the network with. +- `subnet` (String) The subnet of the network. Must be a valid CIDR address. +- `vlan_id` (Number) The VLAN ID of the network. +- `wan_dns` (List of String) DNS servers IPs of the WAN. +- `wan_egress_qos` (Number) Specifies the WAN egress quality of service. Defaults to `0`. +- `wan_gateway` (String) The IPv4 gateway of the WAN. +- `wan_ip` (String) The IPv4 address of the WAN. +- `wan_netmask` (String) The IPv4 netmask of the WAN. +- `wan_networkgroup` (String) Specifies the WAN network group. Must be one of either `WAN`, `WAN2` or `WAN_LTE_FAILOVER`. +- `wan_type` (String) Specifies the IPV4 WAN connection type. Must be one of either `disabled`, `static`, `dhcp`, or `pppoe`. +- `wan_username` (String) Specifies the IPV4 WAN username. +- `x_wan_password` (String) Specifies the IPV4 WAN password. ### Read-Only -- **id** (String) The ID of the network. +- `id` (String) The ID of the network. ## Import diff --git a/docs/resources/port_forward.md b/docs/resources/port_forward.md index 920d11a..298d85a 100644 --- a/docs/resources/port_forward.md +++ b/docs/resources/port_forward.md @@ -17,19 +17,19 @@ description: |- ### Optional -- **dst_port** (String) The destination port for the forwarding. -- **enabled** (Boolean, Deprecated) Specifies whether the port forwarding rule is enabled or not. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration. -- **fwd_ip** (String) The IPv4 address to forward traffic to. -- **fwd_port** (String) The port to forward traffic to. -- **log** (Boolean) Specifies whether to log forwarded traffic or not. Defaults to `false`. -- **name** (String) The name of the port forwarding rule. -- **port_forward_interface** (String) The port forwarding interface. Can be `wan`, `wan2`, or `both`. -- **protocol** (String) The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcp_udp`. Defaults to `tcp_udp`. -- **site** (String) The name of the site to associate the port forwarding rule with. -- **src_ip** (String) The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`. +- `dst_port` (String) The destination port for the forwarding. +- `enabled` (Boolean, Deprecated) Specifies whether the port forwarding rule is enabled or not. This will attribute will be removed in a future release. Instead of disabling a port forwarding rule you can remove it from your configuration. +- `fwd_ip` (String) The IPv4 address to forward traffic to. +- `fwd_port` (String) The port to forward traffic to. +- `log` (Boolean) Specifies whether to log forwarded traffic or not. Defaults to `false`. +- `name` (String) The name of the port forwarding rule. +- `port_forward_interface` (String) The port forwarding interface. Can be `wan`, `wan2`, or `both`. +- `protocol` (String) The protocol for the port forwarding rule. Can be `tcp`, `udp`, or `tcp_udp`. Defaults to `tcp_udp`. +- `site` (String) The name of the site to associate the port forwarding rule with. +- `src_ip` (String) The source IPv4 address (or CIDR) of the port forwarding rule. For all traffic, specify `any`. Defaults to `any`. ### Read-Only -- **id** (String) The ID of the port forwarding rule. +- `id` (String) The ID of the port forwarding rule. diff --git a/docs/resources/port_profile.md b/docs/resources/port_profile.md index 9d66260..cf868ce 100644 --- a/docs/resources/port_profile.md +++ b/docs/resources/port_profile.md @@ -41,44 +41,44 @@ resource "unifi_port_profile" "poe_disabled" { ### Optional -- **autoneg** (Boolean) Enable link auto negotiation for the port profile. When set to `true` this overrides `speed`. Defaults to `true`. -- **dot1x_ctrl** (String) The type of 802.1X control to use. Can be `auto`, `force_authorized`, `force_unauthorized`, `mac_based` or `multi_host`. Defaults to `force_authorized`. -- **dot1x_idle_timeout** (Number) The timeout, in seconds, to use when using the MAC Based 802.1X control. Can be between 0 and 65535 Defaults to `300`. -- **egress_rate_limit_kbps** (Number) The egress rate limit, in kpbs, for the port profile. Can be between `64` and `9999999`. -- **egress_rate_limit_kbps_enabled** (Boolean) Enable egress rate limiting for the port profile. Defaults to `false`. -- **forward** (String) The type forwarding to use for the port profile. Can be `all`, `native`, `customize` or `disabled`. Defaults to `native`. -- **full_duplex** (Boolean) Enable full duplex for the port profile. Defaults to `false`. -- **isolation** (Boolean) Enable port isolation for the port profile. Defaults to `false`. -- **lldpmed_enabled** (Boolean) Enable LLDP-MED for the port profile. Defaults to `true`. -- **lldpmed_notify_enabled** (Boolean) Enable LLDP-MED topology change notifications for the port profile. -- **name** (String) The name of the port profile. -- **native_networkconf_id** (String) The ID of network to use as the main network on the port profile. -- **op_mode** (String) The operation mode for the port profile. Can only be `switch` Defaults to `switch`. -- **poe_mode** (String) The POE mode for the port profile. Can be one of `auto`, `passv24`, `passthrough` or `off`. -- **port_security_enabled** (Boolean) Enable port security for the port profile. Defaults to `false`. -- **port_security_mac_address** (Set of String) The MAC addresses associated with the port security for the port profile. -- **priority_queue1_level** (Number) The priority queue 1 level for the port profile. Can be between 0 and 100. -- **priority_queue2_level** (Number) The priority queue 2 level for the port profile. Can be between 0 and 100. -- **priority_queue3_level** (Number) The priority queue 3 level for the port profile. Can be between 0 and 100. -- **priority_queue4_level** (Number) The priority queue 4 level for the port profile. Can be between 0 and 100. -- **site** (String) The name of the site to associate the port profile with. -- **speed** (Number) The link speed to set for the port profile. Can be one of `10`, `100`, `1000`, `2500`, `5000`, `10000`, `20000`, `25000`, `40000`, `50000` or `100000` -- **stormctrl_bcast_enabled** (Boolean) Enable broadcast Storm Control for the port profile. Defaults to `false`. -- **stormctrl_bcast_level** (Number) The broadcast Storm Control level for the port profile. Can be between 0 and 100. -- **stormctrl_bcast_rate** (Number) The broadcast Storm Control rate for the port profile. Can be between 0 and 14880000. -- **stormctrl_mcast_enabled** (Boolean) Enable multicast Storm Control for the port profile. Defaults to `false`. -- **stormctrl_mcast_level** (Number) The multicast Storm Control level for the port profile. Can be between 0 and 100. -- **stormctrl_mcast_rate** (Number) The multicast Storm Control rate for the port profile. Can be between 0 and 14880000. -- **stormctrl_type** (String) The type of Storm Control to use for the port profile. Can be one of `level` or `rate`. -- **stormctrl_ucast_enabled** (Boolean) Enable unknown unicast Storm Control for the port profile. Defaults to `false`. -- **stormctrl_ucast_level** (Number) The unknown unicast Storm Control level for the port profile. Can be between 0 and 100. -- **stormctrl_ucast_rate** (Number) The unknown unicast Storm Control rate for the port profile. Can be between 0 and 14880000. -- **stp_port_mode** (Boolean) Enable spanning tree protocol on the port profile. Defaults to `true`. -- **tagged_networkconf_ids** (Set of String) The IDs of networks to tag traffic with for the port profile. -- **voice_networkconf_id** (String) The ID of network to use as the voice network on the port profile. +- `autoneg` (Boolean) Enable link auto negotiation for the port profile. When set to `true` this overrides `speed`. Defaults to `true`. +- `dot1x_ctrl` (String) The type of 802.1X control to use. Can be `auto`, `force_authorized`, `force_unauthorized`, `mac_based` or `multi_host`. Defaults to `force_authorized`. +- `dot1x_idle_timeout` (Number) The timeout, in seconds, to use when using the MAC Based 802.1X control. Can be between 0 and 65535 Defaults to `300`. +- `egress_rate_limit_kbps` (Number) The egress rate limit, in kpbs, for the port profile. Can be between `64` and `9999999`. +- `egress_rate_limit_kbps_enabled` (Boolean) Enable egress rate limiting for the port profile. Defaults to `false`. +- `forward` (String) The type forwarding to use for the port profile. Can be `all`, `native`, `customize` or `disabled`. Defaults to `native`. +- `full_duplex` (Boolean) Enable full duplex for the port profile. Defaults to `false`. +- `isolation` (Boolean) Enable port isolation for the port profile. Defaults to `false`. +- `lldpmed_enabled` (Boolean) Enable LLDP-MED for the port profile. Defaults to `true`. +- `lldpmed_notify_enabled` (Boolean) Enable LLDP-MED topology change notifications for the port profile. +- `name` (String) The name of the port profile. +- `native_networkconf_id` (String) The ID of network to use as the main network on the port profile. +- `op_mode` (String) The operation mode for the port profile. Can only be `switch` Defaults to `switch`. +- `poe_mode` (String) The POE mode for the port profile. Can be one of `auto`, `passv24`, `passthrough` or `off`. +- `port_security_enabled` (Boolean) Enable port security for the port profile. Defaults to `false`. +- `port_security_mac_address` (Set of String) The MAC addresses associated with the port security for the port profile. +- `priority_queue1_level` (Number) The priority queue 1 level for the port profile. Can be between 0 and 100. +- `priority_queue2_level` (Number) The priority queue 2 level for the port profile. Can be between 0 and 100. +- `priority_queue3_level` (Number) The priority queue 3 level for the port profile. Can be between 0 and 100. +- `priority_queue4_level` (Number) The priority queue 4 level for the port profile. Can be between 0 and 100. +- `site` (String) The name of the site to associate the port profile with. +- `speed` (Number) The link speed to set for the port profile. Can be one of `10`, `100`, `1000`, `2500`, `5000`, `10000`, `20000`, `25000`, `40000`, `50000` or `100000` +- `stormctrl_bcast_enabled` (Boolean) Enable broadcast Storm Control for the port profile. Defaults to `false`. +- `stormctrl_bcast_level` (Number) The broadcast Storm Control level for the port profile. Can be between 0 and 100. +- `stormctrl_bcast_rate` (Number) The broadcast Storm Control rate for the port profile. Can be between 0 and 14880000. +- `stormctrl_mcast_enabled` (Boolean) Enable multicast Storm Control for the port profile. Defaults to `false`. +- `stormctrl_mcast_level` (Number) The multicast Storm Control level for the port profile. Can be between 0 and 100. +- `stormctrl_mcast_rate` (Number) The multicast Storm Control rate for the port profile. Can be between 0 and 14880000. +- `stormctrl_type` (String) The type of Storm Control to use for the port profile. Can be one of `level` or `rate`. +- `stormctrl_ucast_enabled` (Boolean) Enable unknown unicast Storm Control for the port profile. Defaults to `false`. +- `stormctrl_ucast_level` (Number) The unknown unicast Storm Control level for the port profile. Can be between 0 and 100. +- `stormctrl_ucast_rate` (Number) The unknown unicast Storm Control rate for the port profile. Can be between 0 and 14880000. +- `stp_port_mode` (Boolean) Enable spanning tree protocol on the port profile. Defaults to `true`. +- `tagged_networkconf_ids` (Set of String) The IDs of networks to tag traffic with for the port profile. +- `voice_networkconf_id` (String) The ID of network to use as the voice network on the port profile. ### Read-Only -- **id** (String) The ID of the port profile. +- `id` (String) The ID of the port profile. diff --git a/docs/resources/setting_mgmt.md b/docs/resources/setting_mgmt.md index 8e10202..5f2b79d 100644 --- a/docs/resources/setting_mgmt.md +++ b/docs/resources/setting_mgmt.md @@ -28,26 +28,26 @@ resource "unifi_setting_mgmt" "example" { ### Optional -- **auto_upgrade** (Boolean) Automatically upgrade device firmware. -- **site** (String) The name of the site to associate the settings with. -- **ssh_enabled** (Boolean) Enable SSH authentication. -- **ssh_key** (Block Set) SSH key. (see [below for nested schema](#nestedblock--ssh_key)) +- `auto_upgrade` (Boolean) Automatically upgrade device firmware. +- `site` (String) The name of the site to associate the settings with. +- `ssh_enabled` (Boolean) Enable SSH authentication. +- `ssh_key` (Block Set) SSH key. (see [below for nested schema](#nestedblock--ssh_key)) ### Read-Only -- **id** (String) The ID of the settings. +- `id` (String) The ID of the settings. ### Nested Schema for `ssh_key` Required: -- **name** (String) Name of SSH key. -- **type** (String) Type of SSH key, e.g. ssh-rsa. +- `name` (String) Name of SSH key. +- `type` (String) Type of SSH key, e.g. ssh-rsa. Optional: -- **comment** (String) Comment. -- **key** (String) Public SSH key. +- `comment` (String) Comment. +- `key` (String) Public SSH key. diff --git a/docs/resources/setting_usg.md b/docs/resources/setting_usg.md index 0ac5931..98daf2f 100644 --- a/docs/resources/setting_usg.md +++ b/docs/resources/setting_usg.md @@ -17,15 +17,15 @@ description: |- ### Optional -- **dhcp_relay_servers** (List of String) The DHCP relay servers. -- **firewall_guest_default_log** (Boolean) Whether the guest firewall log is enabled. -- **firewall_lan_default_log** (Boolean) Whether the LAN firewall log is enabled. -- **firewall_wan_default_log** (Boolean) Whether the WAN firewall log is enabled. -- **multicast_dns_enabled** (Boolean) Whether multicast DNS is enabled. -- **site** (String) The name of the site to associate the settings with. +- `dhcp_relay_servers` (List of String) The DHCP relay servers. +- `firewall_guest_default_log` (Boolean) Whether the guest firewall log is enabled. +- `firewall_lan_default_log` (Boolean) Whether the LAN firewall log is enabled. +- `firewall_wan_default_log` (Boolean) Whether the WAN firewall log is enabled. +- `multicast_dns_enabled` (Boolean) Whether multicast DNS is enabled. +- `site` (String) The name of the site to associate the settings with. ### Read-Only -- **id** (String) The ID of the settings. +- `id` (String) The ID of the settings. diff --git a/docs/resources/site.md b/docs/resources/site.md index b8c840f..2d7d4c8 100644 --- a/docs/resources/site.md +++ b/docs/resources/site.md @@ -23,12 +23,12 @@ resource "unifi_site" "mysite" { ### Required -- **description** (String) The description of the site. +- `description` (String) The description of the site. ### Read-Only -- **id** (String) The ID of the site. -- **name** (String) The name of the site. +- `id` (String) The ID of the site. +- `name` (String) The name of the site. ## Import diff --git a/docs/resources/static_route.md b/docs/resources/static_route.md index 50888c1..c6b20fa 100644 --- a/docs/resources/static_route.md +++ b/docs/resources/static_route.md @@ -42,19 +42,19 @@ resource "unifi_static_route" "interface" { ### Required -- **distance** (Number) The distance of the static route. -- **name** (String) The name of the static route. -- **network** (String) The network subnet address. -- **type** (String) The type of static route. Can be `interface-route`, `nexthop-route`, or `blackhole`. +- `distance` (Number) The distance of the static route. +- `name` (String) The name of the static route. +- `network` (String) The network subnet address. +- `type` (String) The type of static route. Can be `interface-route`, `nexthop-route`, or `blackhole`. ### Optional -- **interface** (String) The interface of the static route (only valid for `interface-route` type). This can be `WAN1`, `WAN2`, or a network ID. -- **next_hop** (String) The next hop of the static route (only valid for `nexthop-route` type). -- **site** (String) The name of the site to associate the static route with. +- `interface` (String) The interface of the static route (only valid for `interface-route` type). This can be `WAN1`, `WAN2`, or a network ID. +- `next_hop` (String) The next hop of the static route (only valid for `nexthop-route` type). +- `site` (String) The name of the site to associate the static route with. ### Read-Only -- **id** (String) The ID of the static route. +- `id` (String) The ID of the static route. diff --git a/docs/resources/user.md b/docs/resources/user.md index 848118b..bdcaf27 100644 --- a/docs/resources/user.md +++ b/docs/resources/user.md @@ -31,25 +31,25 @@ resource "unifi_user" "test" { ### Required -- **mac** (String) The MAC address of the user. -- **name** (String) The name of the user. +- `mac` (String) The MAC address of the user. +- `name` (String) The name of the user. ### Optional -- **allow_existing** (Boolean) Specifies whether this resource should just take over control of an existing user. Defaults to `true`. -- **blocked** (Boolean) Specifies whether this user should be blocked from the network. -- **dev_id_override** (Number) Override the device fingerprint. -- **fixed_ip** (String) A fixed IPv4 address for this user. -- **network_id** (String) The network ID for this user. -- **note** (String) A note with additional information for the user. -- **site** (String) The name of the site to associate the user with. -- **skip_forget_on_destroy** (Boolean) Specifies whether this resource should tell the controller to "forget" the user on destroy. Defaults to `false`. -- **user_group_id** (String) The user group ID for the user. +- `allow_existing` (Boolean) Specifies whether this resource should just take over control of an existing user. Defaults to `true`. +- `blocked` (Boolean) Specifies whether this user should be blocked from the network. +- `dev_id_override` (Number) Override the device fingerprint. +- `fixed_ip` (String) A fixed IPv4 address for this user. +- `network_id` (String) The network ID for this user. +- `note` (String) A note with additional information for the user. +- `site` (String) The name of the site to associate the user with. +- `skip_forget_on_destroy` (Boolean) Specifies whether this resource should tell the controller to "forget" the user on destroy. Defaults to `false`. +- `user_group_id` (String) The user group ID for the user. ### Read-Only -- **hostname** (String) The hostname of the user. -- **id** (String) The ID of the user. -- **ip** (String) The IP address of the user. +- `hostname` (String) The hostname of the user. +- `id` (String) The ID of the user. +- `ip` (String) The IP address of the user. diff --git a/docs/resources/user_group.md b/docs/resources/user_group.md index a5a0de9..978eda4 100644 --- a/docs/resources/user_group.md +++ b/docs/resources/user_group.md @@ -26,17 +26,17 @@ resource "unifi_user_group" "wifi" { ### Required -- **name** (String) The name of the user group. +- `name` (String) The name of the user group. ### Optional -- **qos_rate_max_down** (Number) The QOS maximum download rate. Defaults to `-1`. -- **qos_rate_max_up** (Number) The QOS maximum upload rate. Defaults to `-1`. -- **site** (String) The name of the site to associate the user group with. +- `qos_rate_max_down` (Number) The QOS maximum download rate. Defaults to `-1`. +- `qos_rate_max_up` (Number) The QOS maximum upload rate. Defaults to `-1`. +- `site` (String) The name of the site to associate the user group with. ### Read-Only -- **id** (String) The ID of the user group. +- `id` (String) The ID of the user group. ## Import diff --git a/docs/resources/wlan.md b/docs/resources/wlan.md index 3e28ea6..8e27a20 100644 --- a/docs/resources/wlan.md +++ b/docs/resources/wlan.md @@ -55,46 +55,46 @@ resource "unifi_wlan" "wifi" { ### Required -- **name** (String) The SSID of the network. -- **security** (String) The type of WiFi security for this network. Valid values are: `wpapsk`, `wpaeap`, and `open`. -- **user_group_id** (String) ID of the user group to use for this network. +- `name` (String) The SSID of the network. +- `security` (String) The type of WiFi security for this network. Valid values are: `wpapsk`, `wpaeap`, and `open`. +- `user_group_id` (String) ID of the user group to use for this network. ### Optional -- **ap_group_ids** (Set of String) IDs of the AP groups to use for this network. -- **hide_ssid** (Boolean) Indicates whether or not to hide the SSID from broadcast. -- **is_guest** (Boolean) Indicates that this is a guest WLAN and should use guest behaviors. -- **l2_isolation** (Boolean) Isolates stations on layer 2 (ethernet) level Defaults to `false`. -- **mac_filter_enabled** (Boolean) Indicates whether or not the MAC filter is turned of for the network. -- **mac_filter_list** (Set of String) List of MAC addresses to filter (only valid if `mac_filter_enabled` is `true`). -- **mac_filter_policy** (String) MAC address filter policy (only valid if `mac_filter_enabled` is `true`). Defaults to `deny`. -- **minimum_data_rate_2g_kbps** (Number) Set minimum data rate control for 2G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `1000`, `2000`, `5500`, `6000`, `9000`, `11000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`. -- **minimum_data_rate_5g_kbps** (Number) Set minimum data rate control for 5G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `6000`, `9000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`. -- **multicast_enhance** (Boolean) Indicates whether or not Multicast Enhance is turned of for the network. -- **network_id** (String) ID of the network for this SSID -- **no2ghz_oui** (Boolean) Connect high performance clients to 5 GHz only Defaults to `true`. -- **passphrase** (String, Sensitive) The passphrase for the network, this is only required if `security` is not set to `open`. -- **pmf_mode** (String) Enable Protected Management Frames. This cannot be disabled if using WPA 3. Valid values are `required`, `optional` and `disabled`. Defaults to `disabled`. -- **radius_profile_id** (String) ID of the RADIUS profile to use when security `wpaeap`. You can query this via the `unifi_radius_profile` data source. -- **schedule** (Block List) Start and stop schedules for the WLAN (see [below for nested schema](#nestedblock--schedule)) -- **site** (String) The name of the site to associate the wlan with. -- **uapsd** (Boolean) Enable Unscheduled Automatic Power Save Delivery Defaults to `false`. -- **wlan_band** (String) Radio band your WiFi network will use. -- **wpa3_support** (Boolean) Enable WPA 3 support (security must be `wpapsk` and PMF must be turned on). -- **wpa3_transition** (Boolean) Enable WPA 3 and WPA 2 support (security must be `wpapsk` and `wpa3_support` must be true). +- `ap_group_ids` (Set of String) IDs of the AP groups to use for this network. +- `hide_ssid` (Boolean) Indicates whether or not to hide the SSID from broadcast. +- `is_guest` (Boolean) Indicates that this is a guest WLAN and should use guest behaviors. +- `l2_isolation` (Boolean) Isolates stations on layer 2 (ethernet) level Defaults to `false`. +- `mac_filter_enabled` (Boolean) Indicates whether or not the MAC filter is turned of for the network. +- `mac_filter_list` (Set of String) List of MAC addresses to filter (only valid if `mac_filter_enabled` is `true`). +- `mac_filter_policy` (String) MAC address filter policy (only valid if `mac_filter_enabled` is `true`). Defaults to `deny`. +- `minimum_data_rate_2g_kbps` (Number) Set minimum data rate control for 2G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `1000`, `2000`, `5500`, `6000`, `9000`, `11000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`. +- `minimum_data_rate_5g_kbps` (Number) Set minimum data rate control for 5G devices, in Kbps. Use `0` to disable minimum data rates. Valid values are: `6000`, `9000`, `12000`, `18000`, `24000`, `36000`, `48000`, and `54000`. +- `multicast_enhance` (Boolean) Indicates whether or not Multicast Enhance is turned of for the network. +- `network_id` (String) ID of the network for this SSID +- `no2ghz_oui` (Boolean) Connect high performance clients to 5 GHz only Defaults to `true`. +- `passphrase` (String, Sensitive) The passphrase for the network, this is only required if `security` is not set to `open`. +- `pmf_mode` (String) Enable Protected Management Frames. This cannot be disabled if using WPA 3. Valid values are `required`, `optional` and `disabled`. Defaults to `disabled`. +- `radius_profile_id` (String) ID of the RADIUS profile to use when security `wpaeap`. You can query this via the `unifi_radius_profile` data source. +- `schedule` (Block List) Start and stop schedules for the WLAN (see [below for nested schema](#nestedblock--schedule)) +- `site` (String) The name of the site to associate the wlan with. +- `uapsd` (Boolean) Enable Unscheduled Automatic Power Save Delivery Defaults to `false`. +- `wlan_band` (String) Radio band your WiFi network will use. +- `wpa3_support` (Boolean) Enable WPA 3 support (security must be `wpapsk` and PMF must be turned on). +- `wpa3_transition` (Boolean) Enable WPA 3 and WPA 2 support (security must be `wpapsk` and `wpa3_support` must be true). ### Read-Only -- **id** (String) The ID of the network. +- `id` (String) The ID of the network. ### Nested Schema for `schedule` Required: -- **block_end** (String) Time of day to end the block. -- **block_start** (String) Time of day to start the block. -- **day_of_week** (String) Day of week for the block. Valid values are `sun`, `mon`, `tue`, `wed`, `thu`, `fri`, `sat`. +- `block_end` (String) Time of day to end the block. +- `block_start` (String) Time of day to start the block. +- `day_of_week` (String) Day of week for the block. Valid values are `sun`, `mon`, `tue`, `wed`, `thu`, `fri`, `sat`. ## Import diff --git a/examples/data-sources/unifi_network/data-source.tf b/examples/data-sources/unifi_network/data-source.tf index 15e2c63..5c51ab3 100644 --- a/examples/data-sources/unifi_network/data-source.tf +++ b/examples/data-sources/unifi_network/data-source.tf @@ -1,6 +1,6 @@ #retrieve network data by unifi network name data "unifi_network" "lan_network" { - name = "LAN" + name = "Default" } #retrieve network data from user record diff --git a/go.mod b/go.mod index 7359765..4941a63 100644 --- a/go.mod +++ b/go.mod @@ -1,21 +1,76 @@ module github.com/paultyng/terraform-provider-unifi -go 1.16 +go 1.18 // replace github.com/paultyng/go-unifi => ../go-unifi // replace github.com/hashicorp/terraform-plugin-docs => ../../hashicorp/terraform-plugin-docs // replace github.com/hashicorp/terraform-plugin-sdk/v2 => ../../hashicorp/terraform-plugin-sdk require ( - github.com/agext/levenshtein v1.2.3 // indirect - github.com/go-test/deep v1.0.4 // indirect - github.com/hashicorp/go-version v1.5.0 - github.com/hashicorp/terraform-plugin-docs v0.10.1 - github.com/hashicorp/terraform-plugin-sdk/v2 v2.16.0 - github.com/hashicorp/yamux v0.0.0-20200609203250-aecfd211c9ce // indirect - github.com/mitchellh/go-wordwrap v1.0.1 // indirect - github.com/oklog/run v1.1.0 // indirect - github.com/paultyng/go-unifi v1.25.3 - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506 // indirect + github.com/hashicorp/go-version v1.6.0 + github.com/hashicorp/terraform-plugin-docs v0.12.0 + github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0 + github.com/paultyng/go-unifi v1.25.4 +) + +require ( + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver/v3 v3.1.1 // indirect + github.com/Masterminds/sprig/v3 v3.2.2 // indirect + github.com/agext/levenshtein v1.2.3 // indirect + github.com/apparentlymart/go-cidr v1.1.0 // indirect + github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect + github.com/armon/go-radix v1.0.0 // indirect + github.com/bgentry/speakeasy v0.1.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/fatih/color v1.13.0 // indirect + github.com/go-test/deep v1.0.8 // indirect + github.com/golang/protobuf v1.5.2 // indirect + github.com/google/go-cmp v0.5.8 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-checkpoint v0.5.0 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect + github.com/hashicorp/go-hclog v1.2.1 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-plugin v1.4.4 // indirect + github.com/hashicorp/go-uuid v1.0.3 // indirect + github.com/hashicorp/hc-install v0.4.0 // indirect + github.com/hashicorp/hcl/v2 v2.13.0 // indirect + github.com/hashicorp/logutils v1.0.0 // indirect + github.com/hashicorp/terraform-exec v0.17.2 // indirect + github.com/hashicorp/terraform-json v0.14.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.9.1 // indirect + github.com/hashicorp/terraform-plugin-log v0.4.1 // indirect + github.com/hashicorp/terraform-registry-address v0.0.0-20220510144317-d78f4a47ae27 // indirect + github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect + github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect + github.com/huandu/xstrings v1.3.2 // indirect + github.com/imdario/mergo v0.3.13 // indirect + github.com/mattn/go-colorable v0.1.12 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect + github.com/mitchellh/cli v1.1.4 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/posener/complete v1.2.3 // indirect + github.com/russross/blackfriday v1.6.0 // indirect + github.com/shopspring/decimal v1.3.1 // indirect + github.com/spf13/cast v1.5.0 // indirect + github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect + github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect + github.com/vmihailenco/tagparser v0.1.2 // indirect + github.com/zclconf/go-cty v1.10.0 // indirect + golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect + golang.org/x/net v0.0.0-20220630215102-69896b714898 // indirect + golang.org/x/sys v0.0.0-20220702020025-31831981b65f // indirect + golang.org/x/text v0.3.7 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20220630174209-ad1d48641aa7 // indirect + google.golang.org/grpc v1.47.0 // indirect + google.golang.org/protobuf v1.28.0 // indirect ) diff --git a/go.sum b/go.sum index fdb4275..7d29d24 100644 --- a/go.sum +++ b/go.sum @@ -16,18 +16,13 @@ github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 h1:YoJbenK9C6 github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo= github.com/acomagu/bufpipe v1.0.3 h1:fxAGrHZTgQ9w5QqVItgzwj235/uYZYgbXitB+dLupOk= github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= -github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= -github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/apparentlymart/go-cidr v1.1.0 h1:2mAhrMoF+nhXqxTzSZMUzDHkLjmIHC+Zzn4tdgBZjnU= github.com/apparentlymart/go-cidr v1.1.0/go.mod h1:EBcsNrHc3zQeuaeCeCtQruQm+n9/YjEn/vI25Lg7Gwc= -github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 h1:MzVXffFUye+ZcSR6opIgz9Co7WcDx6ZcY+RjfFHoA0I= -github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= -github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0= github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= @@ -45,8 +40,8 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -58,14 +53,13 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= -github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= @@ -76,9 +70,8 @@ github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI github.com/go-git/go-git-fixtures/v4 v4.2.1/go.mod h1:K8zd3kDUAykwTdDCr+I0per6Y6vMiRR/nnVTBtavnB0= github.com/go-git/go-git/v5 v5.4.2 h1:BXyZu9t0VkbiHtqrsvdq39UDhGJTl1h55VW6CSC4aY4= github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti4ihgckDc= -github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= -github.com/go-test/deep v1.0.4 h1:u2CU3YKy9I2pmu9pX0eq50wCgjfGIt539SqR7FbHiho= -github.com/go-test/deep v1.0.4/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= +github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= +github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -105,7 +98,6 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -124,51 +116,46 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9n github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= -github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= -github.com/hashicorp/go-hclog v1.2.0 h1:La19f8d7WIlm4ogzNHB0JGqs5AUDAZ2UfCY4sJXcJdM= -github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v1.2.1 h1:YQsLlGDJgwhXFpucSPyVbCBviQtjlHv3jLTlp8YmtEw= +github.com/hashicorp/go-hclog v1.2.1/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.4.3 h1:DXmvivbWD5qdiBts9TpBC7BYL1Aia5sxbRgQB+v6UZM= -github.com/hashicorp/go-plugin v1.4.3/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= +github.com/hashicorp/go-plugin v1.4.4 h1:NVdrSdFRt3SkZtNckJ6tog7gbpRrcbOjQi/rgF7JYWQ= +github.com/hashicorp/go-plugin v1.4.4/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.4.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.5.0 h1:O293SZ2Eg+AAYijkVK3jR786Am1bhDEh2GHT0tIVE5E= github.com/hashicorp/go-version v1.5.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/hc-install v0.3.1/go.mod h1:3LCdWcCDS1gaHC9mhHCGbkYfoY6vdsKohGjugbZdZak= -github.com/hashicorp/hc-install v0.3.2 h1:oiQdJZvXmkNcRcEOOfM5n+VTsvNjWQeOjfAoO6dKSH8= -github.com/hashicorp/hc-install v0.3.2/go.mod h1:xMG6Tr8Fw1WFjlxH0A9v61cW15pFwgEGqEz0V4jisHs= -github.com/hashicorp/hcl/v2 v2.12.0 h1:PsYxySWpMD4KPaoJLnsHwtK5Qptvj/4Q6s0t4sUxZf4= -github.com/hashicorp/hcl/v2 v2.12.0/go.mod h1:FwWsfWEjyV/CMj8s/gqAuiviY72rJ1/oayI9WftqcKg= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/hc-install v0.4.0 h1:cZkRFr1WVa0Ty6x5fTvL1TuO1flul231rWkGH92oYYk= +github.com/hashicorp/hc-install v0.4.0/go.mod h1:5d155H8EC5ewegao9A4PUTMNPZaq+TbOzkJJZ4vrXeI= +github.com/hashicorp/hcl/v2 v2.13.0 h1:0Apadu1w6M11dyGFxWnmhhcMjkbAiKCv7G1r/2QgCNc= +github.com/hashicorp/hcl/v2 v2.13.0/go.mod h1:e4z5nxYlWNPdDSNYX+ph14EvWYMFm3eP0zIUqPc2jr0= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/terraform-exec v0.16.1 h1:NAwZFJW2L2SaCBVZoVaH8LPImLOGbPLkSHy0IYbs2uE= -github.com/hashicorp/terraform-exec v0.16.1/go.mod h1:aj0lVshy8l+MHhFNoijNHtqTJQI3Xlowv5EOsEaGO7M= -github.com/hashicorp/terraform-json v0.13.0/go.mod h1:y5OdLBCT+rxbwnpxZs9kGL7R9ExU76+cpdY8zHwoazk= +github.com/hashicorp/terraform-exec v0.17.2 h1:EU7i3Fh7vDUI9nNRdMATCEfnm9axzTnad8zszYZ73Go= +github.com/hashicorp/terraform-exec v0.17.2/go.mod h1:tuIbsL2l4MlwwIZx9HPM+LOV9vVyEfBYu2GsO1uH3/8= github.com/hashicorp/terraform-json v0.14.0 h1:sh9iZ1Y8IFJLx+xQiKHGud6/TSUCM0N8e17dKDpqV7s= github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM= -github.com/hashicorp/terraform-plugin-docs v0.10.1 h1:jiVYfhJ/hVXDAQN2XjLK3WH1A/YHgFCrFXPpxibvmjc= -github.com/hashicorp/terraform-plugin-docs v0.10.1/go.mod h1:47ZcsxMUJxAjGzHf+dZ9q78oYf4PeJxO1N+i5XDtXBc= -github.com/hashicorp/terraform-plugin-go v0.9.0 h1:FvLY/3z4SNVatPZdoFcyrlNbCar+WyyOTv5X4Tp+WZc= -github.com/hashicorp/terraform-plugin-go v0.9.0/go.mod h1:EawBkgjBWNf7jiKnVoyDyF39OSV+u6KUX+Y73EPj3oM= -github.com/hashicorp/terraform-plugin-log v0.3.0/go.mod h1:EjueSP/HjlyFAsDqt+okpCPjkT4NDynAe32AeDC4vps= -github.com/hashicorp/terraform-plugin-log v0.4.0 h1:F3eVnm8r2EfQCe2k9blPIiF/r2TT01SHijXnS7bujvc= -github.com/hashicorp/terraform-plugin-log v0.4.0/go.mod h1:9KclxdunFownr4pIm1jdmwKRmE4d6HVG2c9XDq47rpg= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.16.0 h1:9fjPgCenJqnbjo95SDcbJ+YdLyEC1N35cwKWcRWhJTQ= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.16.0/go.mod h1:hLa0sTiySU/AWEgV2GxJh0/pQIqcCmm30IPja9N9lTg= -github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 h1:1FGtlkJw87UsTMg5s8jrekrHmUPUJaMcu6ELiVhQrNw= -github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896/go.mod h1:bzBPnUIkI0RxauU8Dqo+2KrZZ28Cf48s8V6IHt3p4co= +github.com/hashicorp/terraform-plugin-docs v0.12.0 h1:EAvFVEoV/wj15t/VSeKVpnAd+BBnIxzYepAnScBWrU4= +github.com/hashicorp/terraform-plugin-docs v0.12.0/go.mod h1:HVn60yjtl4XxLINPgNmPCwX8SQ4T99Ut9CTD/ac6i5w= +github.com/hashicorp/terraform-plugin-go v0.9.1 h1:vXdHaQ6aqL+OF076nMSBV+JKPdmXlzG5mzVDD04WyPs= +github.com/hashicorp/terraform-plugin-go v0.9.1/go.mod h1:ItjVSlQs70otlzcCwlPcU8FRXLdO973oYFRZwAOxy8M= +github.com/hashicorp/terraform-plugin-log v0.4.1 h1:xpbmVhvuU3mgHzLetOmx9pkOL2rmgpu302XxddON6eo= +github.com/hashicorp/terraform-plugin-log v0.4.1/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0 h1:Qr5fWNg1SPSfCRMtou67Y6Kcy9UnMYRNlIJTKRuUvXU= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0/go.mod h1:b+LFg8WpYgFgvEBP/6Htk5H9/pJp1V1E8NJAekfH2Ws= +github.com/hashicorp/terraform-registry-address v0.0.0-20220510144317-d78f4a47ae27 h1:IOawOnLgKntezAV3oJs17rkhXha+h0EF5OMjb2KFlYc= +github.com/hashicorp/terraform-registry-address v0.0.0-20220510144317-d78f4a47ae27/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI= +github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c h1:D8aRO6+mTqHfLsK/BC3j5OAoogv1WLRWzY1AaTo3rBg= +github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= -github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= -github.com/hashicorp/yamux v0.0.0-20200609203250-aecfd211c9ce h1:7UnVY3T/ZnHUrfviiAgIUjg2PXxsQfs5bphsG8F7Keo= -github.com/hashicorp/yamux v0.0.0-20200609203250-aecfd211c9ce/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 h1:xixZ2bWeofWV68J+x6AzmKuVM/JWCQwkWm6GW/MUR6I= +github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= @@ -181,30 +168,24 @@ github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOl github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE= -github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 h1:DowS9hvgyYSX4TO5NpyC606/Z4SxnNYbT+WX27or6Ck= github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= -github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= @@ -215,11 +196,8 @@ github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa1 github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= -github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= @@ -229,12 +207,10 @@ github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zx github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce h1:RPclfga2SEJmgMmz2k+Mg7cowZ8yv4Trqw9UsJby758= -github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4v2r9jz+c9i1IfIttS/OkmLfrk1jne5hs= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/paultyng/go-unifi v1.25.3 h1:tJ6BU4NfPMJlgv+CUx9syQA5KcHcQ3tIQ1JckApHHaE= -github.com/paultyng/go-unifi v1.25.3/go.mod h1:teuvaWmUF8t1TqCPYAZz6MYfiSGNZjIEprAjjHVxcSs= +github.com/paultyng/go-unifi v1.25.4 h1:pPSGigKnlEQHgEG66tGRx23dDP7dGWctjcdjT0qZagw= +github.com/paultyng/go-unifi v1.25.4/go.mod h1:+01v4qRT8NwDHbMj/40FaHn+0yB7y9mifvDbkcs7UvA= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -245,14 +221,11 @@ github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSg github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= -github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -260,17 +233,19 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= -github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.7.5 h1:s5PTfem8p8EbKQOctVV53k6jCJt3UX4IEJzwh+C324Q= +github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/tj/assert v0.0.3 h1:Df/BlaZ20mq6kuai7f5z2TvPFiwC3xaWJSDQNiIS3Rk= github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= @@ -279,25 +254,21 @@ github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaU github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack/v4 v4.3.12 h1:07s4sz9IReOgdikxLTKNbBdqDMLsjPKXwvCazn8G65U= github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4= -github.com/vmihailenco/tagparser v0.1.1 h1:quXMXlA39OCbd2wAdTsGDlK9RkOk6Wuw+x37wVyIuWY= github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= +github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc= +github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= github.com/xanzy/ssh-agent v0.3.0 h1:wUMzuKtKilRgBAD1sUb8gOwwRr2FGoBVumcjoOACClI= github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0= github.com/xor-gate/ar v0.0.0-20170530204233-5c72ae81e2b7/go.mod h1:TCWCUPhQU1j7axqROa/VHnlgJGHthAOqJZahg7b/DUc= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= -github.com/zclconf/go-cty v1.8.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= -github.com/zclconf/go-cty v1.9.1/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty v1.10.0 h1:mp9ZXQeIcN8kAwuqorjH+Q+njbJKjLrvB2yIh4q7U+0= github.com/zclconf/go-cty v1.10.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -305,15 +276,13 @@ golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM= -golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d h1:sK3txAijHtOK88l68nt020reeT1ZdKLIYetKl95FzVY= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= -golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -325,14 +294,15 @@ golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191009170851-d66e71096ffb/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210326060303-6b1517762897/go.mod h1:uSPa2vr4CLtc/ILN5odXGNXS6mhrKVzTaCXzk9m6W3k= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220630215102-69896b714898 h1:K7wO6V1IrczY9QOQ2WkVpw4JQSwCd52UsxVEirZUfiw= +golang.org/x/net v0.0.0-20220630215102-69896b714898/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -340,34 +310,35 @@ golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502175342-a43fa875dd82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220702020025-31831981b65f h1:xdsejrW/0Wf2diT5CPp3XmKUNbr7Xvw8kYilQ+6qjRY= +golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -381,7 +352,6 @@ golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200713011307-fd294ab11aed/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -390,28 +360,22 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20170818010345-ee236bd376b0/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200711021454-869866162049/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506 h1:uLBY0yHDCj2PMQ98KWDSIDFwn9zK2zh+tgWtbvPPBjI= -google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/genproto v0.0.0-20220630174209-ad1d48641aa7 h1:q4zUJDd0+knPFB9x20S3vnxzlYNBbt8Yd7zBMVMteeM= +google.golang.org/genproto v0.0.0-20220630174209-ad1d48641aa7/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.45.0 h1:NEpgUqV3Z+ZjkqMsxMg11IaDrXY4RY6CQukSGK0uI1M= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0/go.mod h1:DNq5QpG7LJqD2AamLZ7zvKE0DEpVl2BSEVjFycAAjRY= +google.golang.org/grpc v1.47.0 h1:9n77onPX5F3qfFCqjy9dhn8PbNQsIKeVU04J9G7umt8= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -420,7 +384,6 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= @@ -433,7 +396,6 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -442,7 +404,8 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA= gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/internal/provider/data_network_test.go b/internal/provider/data_network_test.go index 9b02284..b15c54a 100644 --- a/internal/provider/data_network_test.go +++ b/internal/provider/data_network_test.go @@ -1,19 +1,32 @@ package provider import ( + "fmt" "testing" + "github.com/hashicorp/go-version" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" ) func TestAccDataNetwork_byName(t *testing.T) { + defaultName := "Default" + v, err := version.NewVersion(testClient.Version()) + if err != nil { + t.Fatalf("error parsing version: %s", err) + } + if v.LessThan(controllerV7) { + defaultName = "LAN" + } + resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { preCheck(t) }, + PreCheck: func() { + preCheck(t) + }, ProviderFactories: providerFactories, // TODO: CheckDestroy: , Steps: []resource.TestStep{ { - Config: testAccDataNetworkConfig_byName, + Config: testAccDataNetworkConfig_byName(defaultName), Check: resource.ComposeTestCheckFunc( // testCheckNetworkExists(t, "name"), ), @@ -23,13 +36,24 @@ func TestAccDataNetwork_byName(t *testing.T) { } func TestAccDataNetwork_byID(t *testing.T) { + defaultName := "Default" + v, err := version.NewVersion(testClient.Version()) + if err != nil { + t.Fatalf("error parsing version: %s", err) + } + if v.LessThan(controllerV7) { + defaultName = "LAN" + } + resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { preCheck(t) }, + PreCheck: func() { + preCheck(t) + }, ProviderFactories: providerFactories, // TODO: CheckDestroy: , Steps: []resource.TestStep{ { - Config: testAccDataNetworkConfig_byID, + Config: testAccDataNetworkConfig_byID(defaultName), Check: resource.ComposeTestCheckFunc( // testCheckNetworkExists(t, "name"), ), @@ -38,18 +62,22 @@ func TestAccDataNetwork_byID(t *testing.T) { }) } -const testAccDataNetworkConfig_byName = ` +func testAccDataNetworkConfig_byName(name string) string { + return fmt.Sprintf(` data "unifi_network" "lan" { - name = "LAN" + name = %q +} +`, name) } -` -const testAccDataNetworkConfig_byID = ` +func testAccDataNetworkConfig_byID(name string) string { + return fmt.Sprintf(` data "unifi_network" "lan" { - name = "LAN" + name = %q } data "unifi_network" "lan_id" { id = data.unifi_network.lan.id } -` +`, name) +} diff --git a/internal/provider/resource_setting_usg.go b/internal/provider/resource_setting_usg.go index b9747a5..3a57935 100644 --- a/internal/provider/resource_setting_usg.go +++ b/internal/provider/resource_setting_usg.go @@ -92,6 +92,7 @@ func resourceSettingUsg() *schema.Resource { func resourceSettingUsgUpdateResourceData(d *schema.ResourceData, meta interface{}, setting *unifi.SettingUsg) error { c := meta.(*client) + //nolint // GetOkExists is deprecated, but using here: if mdns, hasMdns := d.GetOkExists("multicast_dns_enabled"); hasMdns { if v := c.ControllerVersion(); v.GreaterThanOrEqual(controllerV7) { return fmt.Errorf("multicast_dns_enabled is not supported on controller version %v", c.ControllerVersion())