Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
George Nikolopoulos committed Jul 13, 2021
1 parent b340a28 commit b4c16cb
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/nsmode/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_providers {
citrixadc = {
source = "citrix/citrixadc"
}
}
}
provider "citrixadc" {
endpoint = "http://localhost:8080"
}
4 changes: 4 additions & 0 deletions examples/nsmode/resources.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "citrixadc_nsmode" "tf_nsmode" {
l3 = true
usip = false
}
10 changes: 10 additions & 0 deletions examples/vlan_interface_binding/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_providers {
citrixadc = {
source = "citrix/citrixadc"
}
}
}
provider "citrixadc" {
endpoint = "http://localhost:8080"
}
9 changes: 9 additions & 0 deletions examples/vlan_interface_binding/resources.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "citrixadc_vlan" "tf_vlan" {
vlanid = 40
aliasname = "Management VLAN"
}

resource "citrixadc_vlan_interface_binding" "tf_bind" {
vlanid = citrixadc_vlan.tf_vlan.vlanid
ifnum = "1/1"
}
10 changes: 10 additions & 0 deletions examples/vlan_nsip_binding/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_providers {
citrixadc = {
source = "citrix/citrixadc"
}
}
}
provider "citrixadc" {
endpoint = "http://localhost:8080"
}
18 changes: 18 additions & 0 deletions examples/vlan_nsip_binding/resources.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "citrixadc_vlan" "tf_vlan" {
vlanid = 40
aliasname = "Management VLAN"
}

resource "citrixadc_nsip" "tf_snip" {
ipaddress = "10.222.74.146"
type = "SNIP"
netmask = "255.255.255.0"
icmp = "ENABLED"
state = "ENABLED"
}

resource "citrixadc_vlan_nsip_binding" "tf_bind" {
vlanid = citrixadc_vlan.tf_vlan.vlanid
ipaddress = citrixadc_nsip.tf_snip.ipaddress
netmask = citrixadc_nsip.tf_snip.netmask
}

0 comments on commit b4c16cb

Please sign in to comment.