Skip to content

Commit

Permalink
Update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Dec 17, 2024
1 parent 5d243d0 commit c1de5d9
Show file tree
Hide file tree
Showing 126 changed files with 1,720 additions and 1,720 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceCellularFirewallRulesConfig() string {
config := `resource "meraki_appliance_cellular_firewall_rules" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` comment = "Allow TCP traffic to subnet with HTTP servers."` + "\n"
config += ` dest_cidr = "192.168.1.0/24"` + "\n"
config += ` dest_port = "443"` + "\n"
config += ` policy = "allow"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` src_cidr = "Any"` + "\n"
config += ` src_port = "Any"` + "\n"
config += ` syslog_enabled = false` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` comment = "Allow TCP traffic to subnet with HTTP servers."` + "\n"
config += ` dest_cidr = "192.168.1.0/24"` + "\n"
config += ` dest_port = "443"` + "\n"
config += ` policy = "allow"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` src_cidr = "Any"` + "\n"
config += ` src_port = "Any"` + "\n"
config += ` syslog_enabled = false` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceConnectivityMonitoringDestinationsConfig() string {
config := `resource "meraki_appliance_connectivity_monitoring_destinations" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` destinations = [{` + "\n"
config += ` default = true` + "\n"
config += ` description = "Google"` + "\n"
config += ` ip = "1.2.3.4"` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` destinations = [{` + "\n"
config += ` default = true` + "\n"
config += ` description = "Google"` + "\n"
config += ` ip = "1.2.3.4"` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceContentFilteringConfig() string {
config := `resource "meraki_appliance_content_filtering" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` url_category_list_size = "topSites"` + "\n"
config += ` allowed_url_patterns = ["http://www.example.org"]` + "\n"
config += ` blocked_url_categories = ["meraki:contentFiltering/category/C1"]` + "\n"
config += ` blocked_url_patterns = ["http://www.example.com"]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` url_category_list_size = "topSites"` + "\n"
config += ` allowed_url_patterns = ["http://www.example.org"]` + "\n"
config += ` blocked_url_categories = ["meraki:contentFiltering/category/C1"]` + "\n"
config += ` blocked_url_patterns = ["http://www.example.com"]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceFirewallSettingsConfig() string {
config := `resource "meraki_appliance_firewall_settings" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` spoofing_protection_ip_source_guard_mode = "block"` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` spoofing_protection_ip_source_guard_mode = "block"` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceFirewalledServiceConfig() string {
config := `resource "meraki_appliance_firewalled_service" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` service = "ICMP"` + "\n"
config += ` access = "restricted"` + "\n"
config += ` allowed_ips = ["123.123.123.1"]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` service = "ICMP"` + "\n"
config += ` access = "restricted"` + "\n"
config += ` allowed_ips = ["123.123.123.1"]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceInboundCellularFirewallRulesConfig() string {
config := `resource "meraki_appliance_inbound_cellular_firewall_rules" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` comment = "Allow TCP traffic to subnet with HTTP servers."` + "\n"
config += ` dest_cidr = "2001::1/64"` + "\n"
config += ` dest_port = "443"` + "\n"
config += ` policy = "allow"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` src_cidr = "Any"` + "\n"
config += ` src_port = "Any"` + "\n"
config += ` syslog_enabled = false` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` comment = "Allow TCP traffic to subnet with HTTP servers."` + "\n"
config += ` dest_cidr = "2001::1/64"` + "\n"
config += ` dest_port = "443"` + "\n"
config += ` policy = "allow"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` src_cidr = "Any"` + "\n"
config += ` src_port = "Any"` + "\n"
config += ` syslog_enabled = false` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceInboundFirewallRulesConfig() string {
config := `resource "meraki_appliance_inbound_firewall_rules" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` comment = "Allow TCP traffic to subnet with HTTP servers."` + "\n"
config += ` dest_cidr = "192.168.1.0/24"` + "\n"
config += ` dest_port = "443"` + "\n"
config += ` policy = "allow"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` src_cidr = "Any"` + "\n"
config += ` src_port = "Any"` + "\n"
config += ` syslog_enabled = false` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` comment = "Allow TCP traffic to subnet with HTTP servers."` + "\n"
config += ` dest_cidr = "192.168.1.0/24"` + "\n"
config += ` dest_port = "443"` + "\n"
config += ` policy = "allow"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` src_cidr = "Any"` + "\n"
config += ` src_port = "Any"` + "\n"
config += ` syslog_enabled = false` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceL3FirewallRulesConfig() string {
config := `resource "meraki_appliance_l3_firewall_rules" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` comment = "Allow TCP traffic to subnet with HTTP servers."` + "\n"
config += ` dest_cidr = "192.168.1.0/24"` + "\n"
config += ` dest_port = "443"` + "\n"
config += ` policy = "allow"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` src_cidr = "Any"` + "\n"
config += ` src_port = "Any"` + "\n"
config += ` syslog_enabled = false` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` comment = "Allow TCP traffic to subnet with HTTP servers."` + "\n"
config += ` dest_cidr = "192.168.1.0/24"` + "\n"
config += ` dest_port = "443"` + "\n"
config += ` policy = "allow"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` src_cidr = "Any"` + "\n"
config += ` src_port = "Any"` + "\n"
config += ` syslog_enabled = false` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceL7FirewallRulesConfig() string {
config := `resource "meraki_appliance_l7_firewall_rules" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` policy = "deny"` + "\n"
config += ` type = "host"` + "\n"
config += ` value = "google.com"` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` policy = "deny"` + "\n"
config += ` type = "host"` + "\n"
config += ` value = "google.com"` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceNetworkSecurityIntrusionConfig() string {
config := `resource "meraki_appliance_network_security_intrusion" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` ids_rulesets = "balanced"` + "\n"
config += ` mode = "prevention"` + "\n"
config += ` protected_networks_use_default = false` + "\n"
config += ` protected_networks_excluded_cidr = ["10.0.0.0/8"]` + "\n"
config += ` protected_networks_included_cidr = ["10.0.0.0/8"]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` ids_rulesets = "balanced"` + "\n"
config += ` mode = "prevention"` + "\n"
config += ` protected_networks_use_default = false` + "\n"
config += ` protected_networks_excluded_cidr = ["10.0.0.0/8"]` + "\n"
config += ` protected_networks_included_cidr = ["10.0.0.0/8"]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceOneToManyNATRulesConfig() string {
config := `resource "meraki_appliance_one_to_many_nat_rules" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` public_ip = "146.11.11.13"` + "\n"
config += ` uplink = "internet1"` + "\n"
config += ` port_rules = [{` + "\n"
config += ` local_ip = "192.168.128.1"` + "\n"
config += ` local_port = "443"` + "\n"
config += ` name = "Rule 1"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` public_port = "9443"` + "\n"
config += ` allowed_ips = ["any"]` + "\n"
config += ` }]` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` public_ip = "146.11.11.13"` + "\n"
config += ` uplink = "internet1"` + "\n"
config += ` port_rules = [{` + "\n"
config += ` local_ip = "192.168.128.1"` + "\n"
config += ` local_port = "443"` + "\n"
config += ` name = "Rule 1"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` public_port = "9443"` + "\n"
config += ` allowed_ips = ["any"]` + "\n"
config += ` }]` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,18 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiApplianceOneToOneNATRulesConfig() string {
config := `resource "meraki_appliance_one_to_one_nat_rules" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` lan_ip = "192.168.128.22"` + "\n"
config += ` name = "Service behind NAT"` + "\n"
config += ` public_ip = "146.12.3.33"` + "\n"
config += ` uplink = "internet1"` + "\n"
config += ` allowed_inbound = [{` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` allowed_ips = ["10.82.112.0/24"]` + "\n"
config += ` destination_ports = ["80"]` + "\n"
config += ` }]` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` lan_ip = "192.168.128.22"` + "\n"
config += ` name = "Service behind NAT"` + "\n"
config += ` public_ip = "146.12.3.33"` + "\n"
config += ` uplink = "internet1"` + "\n"
config += ` allowed_inbound = [{` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` allowed_ips = ["10.82.112.0/24"]` + "\n"
config += ` destination_ports = ["80"]` + "\n"
config += ` }]` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ data "meraki_organization" "test" {

func testAccDataSourceMerakiApplianceOrganizationSecurityIntrusionConfig() string {
config := `resource "meraki_appliance_organization_security_intrusion" "test" {` + "\n"
config += ` organization_id = data.meraki_organization.test.id` + "\n"
config += ` allowed_rules = [{` + "\n"
config += ` message = "SQL sa login failed"` + "\n"
config += ` rule_id = "meraki:intrusion/snort/GID/01/SID/688"` + "\n"
config += ` }]` + "\n"
config += ` organization_id = data.meraki_organization.test.id` + "\n"
config += ` allowed_rules = [{` + "\n"
config += ` message = "SQL sa login failed"` + "\n"
config += ` rule_id = "meraki:intrusion/snort/GID/01/SID/688"` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiAppliancePortForwardingRulesConfig() string {
config := `resource "meraki_appliance_port_forwarding_rules" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` lan_ip = "192.168.128.1"` + "\n"
config += ` local_port = "442-443"` + "\n"
config += ` name = "Description of Port Forwarding Rule"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` public_port = "8100-8101"` + "\n"
config += ` uplink = "both"` + "\n"
config += ` allowed_ips = ["any"]` + "\n"
config += ` }]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` rules = [{` + "\n"
config += ` lan_ip = "192.168.128.1"` + "\n"
config += ` local_port = "442-443"` + "\n"
config += ` name = "Description of Port Forwarding Rule"` + "\n"
config += ` protocol = "tcp"` + "\n"
config += ` public_port = "8100-8101"` + "\n"
config += ` uplink = "both"` + "\n"
config += ` allowed_ips = ["any"]` + "\n"
config += ` }]` + "\n"
config += `}` + "\n"

config += `
Expand Down
14 changes: 7 additions & 7 deletions internal/provider/data_source_meraki_appliance_port_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ resource "meraki_appliance_vlans_settings" "test" {

func testAccDataSourceMerakiAppliancePortConfig() string {
config := `resource "meraki_appliance_port" "test" {` + "\n"
config += ` network_id = meraki_appliance_vlans_settings.test.network_id` + "\n"
config += ` port_id = "12"` + "\n"
config += ` access_policy = "open"` + "\n"
config += ` drop_untagged_traffic = false` + "\n"
config += ` enabled = true` + "\n"
config += ` type = "access"` + "\n"
config += ` vlan = 1` + "\n"
config += ` network_id = meraki_appliance_vlans_settings.test.network_id` + "\n"
config += ` port_id = "12"` + "\n"
config += ` access_policy = "open"` + "\n"
config += ` drop_untagged_traffic = false` + "\n"
config += ` enabled = true` + "\n"
config += ` type = "access"` + "\n"
config += ` vlan = 1` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ resource "meraki_network" "test" {

func testAccDataSourceMerakiAppliancePrefixDelegatedStaticConfig() string {
config := `resource "meraki_appliance_prefix_delegated_static" "test" {` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` description = "Prefix on WAN 1 of Long Island Office network"` + "\n"
config += ` prefix = "2002:db8:3c4d:15::/64"` + "\n"
config += ` origin_type = "internet"` + "\n"
config += ` origin_interfaces = ["wan1"]` + "\n"
config += ` network_id = meraki_network.test.id` + "\n"
config += ` description = "Prefix on WAN 1 of Long Island Office network"` + "\n"
config += ` prefix = "2002:db8:3c4d:15::/64"` + "\n"
config += ` origin_type = "internet"` + "\n"
config += ` origin_interfaces = ["wan1"]` + "\n"
config += `}` + "\n"

config += `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ resource "meraki_network_device_claim" "test" {

func testAccDataSourceMerakiApplianceRadioSettingsConfig() string {
config := `resource "meraki_appliance_radio_settings" "test" {` + "\n"
config += ` serial = tolist(meraki_network_device_claim.test.serials)[0]` + "\n"
config += ` five_ghz_settings_channel = 40` + "\n"
config += ` five_ghz_settings_channel_width = 20` + "\n"
config += ` five_ghz_settings_target_power = 15` + "\n"
config += ` two_four_ghz_settings_channel = 11` + "\n"
config += ` two_four_ghz_settings_target_power = 5` + "\n"
config += ` serial = tolist(meraki_network_device_claim.test.serials)[0]` + "\n"
config += ` five_ghz_settings_channel = 40` + "\n"
config += ` five_ghz_settings_channel_width = 20` + "\n"
config += ` five_ghz_settings_target_power = 15` + "\n"
config += ` two_four_ghz_settings_channel = 11` + "\n"
config += ` two_four_ghz_settings_target_power = 5` + "\n"
config += `}` + "\n"

config += `
Expand Down
Loading

0 comments on commit c1de5d9

Please sign in to comment.