Skip to content

Commit d10346b

Browse files
committed
tests(terraform): expand tests for panos_virtual_router
1 parent ab8055c commit d10346b

File tree

2 files changed

+497
-98
lines changed

2 files changed

+497
-98
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
resource "panos_virtual_router" "example" {
2+
name = "vr-1"
3+
location = {
4+
template = "my-template"
5+
}
6+
interfaces = [panos_ethernet_interface.eth1.name, panos_ethernet_interface.eth2.name]
7+
administrative_distances = {
8+
ebgp = 20
9+
ibgp = 200
10+
}
11+
}
12+
13+
resource "panos_ethernet_interface" "eth1" {
14+
name = "ethernet1/1"
15+
location = {
16+
template = "my-template"
17+
}
18+
layer3 = {
19+
ips = [{ name = "10.1.1.1/24" }]
20+
}
21+
}
22+
23+
resource "panos_ethernet_interface" "eth2" {
24+
name = "ethernet1/2"
25+
location = {
26+
template = "my-template"
27+
}
28+
layer3 = {
29+
ips = [{ name = "10.1.2.1/24" }]
30+
}
31+
}
32+
33+
resource "panos_template" "tpl" {
34+
name = "my-template"
35+
location = {
36+
panorama = true
37+
}
38+
}

0 commit comments

Comments
 (0)