Skip to content

Commit

Permalink
Add xenorchestra_network example that was uncommitted (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelnano committed Aug 21, 2023
1 parent 7e47f7f commit ed97076
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/resources/xenorchestra_network/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
data "xenorchestra_host" "host1" {
name_label = "Your host"
}

data "xenorchestra_pif" "pif" {
device = "eth0"
vlan = -1
host_id = data.xenorchestra_host.host1.id
}

resource "xenorchestra_network" "network" {
name_label = "new network name"
pool_id = data.xenorchestra_host.host1.pool_id
pif_id = data.xenorchestra_pif.pif.id
vlan = 22
}

0 comments on commit ed97076

Please sign in to comment.