Skip to content

Commit 8e9c8d0

Browse files
committed
feat(tests): Add more tests and examples for panos_zone
1 parent e18a916 commit 8e9c8d0

File tree

2 files changed

+468
-127
lines changed

2 files changed

+468
-127
lines changed

assets/terraform/examples/resources/panos_zone/resource.tf

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11

22
resource "panos_zone" "zone" {
3-
depends_on = [
4-
panos_ethernet_interface.iface1, panos_ethernet_interface.iface2
5-
]
6-
73
location = {
84
template = {
95
name = panos_template.example.name
@@ -22,7 +18,11 @@ resource "panos_zone" "zone" {
2218
enable_user_identification = true
2319

2420
network = {
25-
layer3 = ["ethernet1/1", "ethernet1/2"]
21+
layer3 = [
22+
panos_ethernet_interface.iface1.name,
23+
panos_ethernet_interface.iface2.name,
24+
panos_tunnel_interface.iface3.name,
25+
]
2626
enable_packet_buffer_protection = true
2727
}
2828
}
@@ -49,7 +49,6 @@ resource "panos_ethernet_interface" "iface1" {
4949
}
5050

5151
resource "panos_ethernet_interface" "iface2" {
52-
5352
location = {
5453
template = {
5554
name = panos_template.example.name
@@ -62,3 +61,12 @@ resource "panos_ethernet_interface" "iface2" {
6261
layer3 = {}
6362
}
6463

64+
resource "panos_tunnel_interface" "iface3" {
65+
location = {
66+
template = {
67+
name = panos_template.example.name
68+
}
69+
}
70+
71+
name = "tunnel.1"
72+
}

0 commit comments

Comments
 (0)