Skip to content

Commit

Permalink
## 0.2.2-alpha (May 29, 2024)
Browse files Browse the repository at this point in the history
BUGFIXES:
* Manage `null` values for array into objects in `meraki_devices_appliance_uplinks_settings_resource`.
* Manage `null` values for array into objects in `meraki_networks_appliance_security_intrusion_resource`.
* Include exception to expects `400` code instead of `404` in `meraki_networks_group_policies_resource`.
* Attribute `password` is now just am `Optional` parameter, not `Computed` in `meraki_networks_settings_resource`.
* Avoid unexpected or non-existent changes in `meraki_networks_switch_access_policies_resource`.
* Mapping ID post creation in `meraki_networks_switch_stacks_resource`.
* Attribute `default_vlan_id` is now just am `Optional` parameter, not `Computed` in `meraki_networks_wireless_ssids_resource`.
* Attribute `updatestrategy` included in `meraki_networks_wireless_settings_resource`.
* Managing `null` interfaces, to avoid panics in `utils` at `changeUnknowns` function.
  • Loading branch information
fmunozmiranda committed May 29, 2024
1 parent 9b712fa commit 2ba0932
Show file tree
Hide file tree
Showing 64 changed files with 486 additions and 130 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ HOSTNAME=hashicorp.com
NAMESPACE=edu
NAME=meraki
BINARY=terraform-provider-${NAME}
VERSION=0.2.0-alpha
VERSION=0.2.2-alpha
OS_ARCH=darwin_arm64
# OS_ARCH=darwin_amd64
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ terraform {
required_providers {
meraki = {
source = "cisco-open/meraki"
version = "0.2.0-alpha"
version = "0.2.2-alpha"
}
}
}
Expand Down Expand Up @@ -68,7 +68,7 @@ terraform {
required_providers {
meraki = {
source = "hashicorp.com/edu/meraki"
version = "0.2.0-alpha"
version = "0.2.2-alpha"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
2 changes: 1 addition & 1 deletion examples/samples/resources/devices/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
2 changes: 1 addition & 1 deletion examples/samples/resources/gnerate_snapshot/resource.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
terraform {
required_providers {
meraki = {
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
}
}

provider "meraki" {
meraki_debug = "true"
}

resource "meraki_devices_appliance_uplinks_settings" "this" {

serial = "QBSA-TFWJ-U4L9"
interfaces = {
wan1 = {
enabled = true
svis = {
ipv4 = {
assignment_mode = "dynamic"
}
}
vlan_tagging = {
enabled = true
vlan_id = "10"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
terraform {
required_providers {
meraki = {
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
}
}
}



provider "meraki" {
meraki_debug = "true"
}


resource "meraki_devices_management_interface" "sample_firewall_interface" {
serial = "QBSA-TFWJ-U4L9"

wan1 = {
using_static_ip = true
static_ip = "192.168.1.2"
static_gateway_ip = "192.168.1.1"
static_subnet_mask = "255.255.255.0"
static_dns = ["8.8.8.8", "8.8.4.4"]
vlan = null
wan_enabled = "enabled"
}

wan2 = {
using_static_ip = false
wan_enabled = "enabled"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
2 changes: 1 addition & 1 deletion examples/samples/resources/meraki_networks/resource.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
terraform {
required_providers {
meraki = {
source = "hashicorp.com/edu/meraki"
version = "0.2.2-alpha"
}
}

required_version = ">= 1.2.0"
}

provider meraki {
meraki_debug = "true"
}

data "meraki_organizations" "example" {}

data "meraki_networks" "example" {
organization_id = data.meraki_organizations.example.items[0].id
}

resource "meraki_networks_appliance_security_intrusion" "example" {

ids_rulesets = "balanced"
mode = "prevention"
network_id = data.meraki_networks.example.items[0].id
}

output "meraki_networks_appliance_security_intrusion_example" {
value = meraki_networks_appliance_security_intrusion.example
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
terraform {
required_providers {
meraki = {
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
}
}

provider "meraki" {
meraki_debug = "true"
}


resource "meraki_networks_appliance_vlans" "this_vlan_1" {
network_id = "L_828099381482775374"
name = "MGMT"
id = "1"
appliance_ip = "10.76.237.17"
subnet = "10.76.237.16/28"
dhcp_handling = "Run a DHCP server"
dhcp_lease_time = "1 day"
dns_nameservers = "upstream_dns"
dhcp_boot_options_enabled = false
ipv6 = {
enabled = false
}
mandatory_dhcp = {
enabled = false
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
terraform {
required_providers {
meraki = {
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
}
}

provider "meraki" {
meraki_debug = "true"
}


resource "meraki_networks_switch_access_policies" "this_site_access_policy" {
network_id = "L_828099381482775374"
name = "dot1xmab"
radius_servers = [{
host = "192.168.1.2"
port = 1812
secret = "<-blanked->"
}]
radius_accounting_enabled = true
radius_accounting_servers = [{
host = "192.168.1.3"
port = 1813
secret = "<-blanked->"
}]
radius_testing_enabled = true
radius_coa_support_enabled = false
radius_group_attribute = ""
host_mode = "Single-Host"
access_policy_type = "Hybrid authentication"
increase_access_speed = false
dot1x = {
control_direction = "both"
}
radius = {
critical_auth = {
data_vlan_id = 10
suspend_port_bounce = true
voice_vlan_id = "11"
}
failed_auth_vlan_id = 10
re_authentication_interval = null
}
url_redirect_walled_garden_enabled = false
guest_port_bouncing = true
guest_vlan_id = "10"
voice_vlan_clients = true
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
meraki = {
version = "0.2.0-alpha"
version = "0.2.2-alpha"
source = "hashicorp.com/edu/meraki"
# "hashicorp.com/edu/meraki" is the local built source, change to "cisco-en-programmability/meraki" to use downloaded version from registry
}
Expand Down
Loading

0 comments on commit 2ba0932

Please sign in to comment.