Add examples for port profile

This commit is contained in:
James Toyer
2021-02-18 21:52:12 +00:00
committed by Paul Tyng
parent acb960186b
commit 097aa6c225
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
data "unifi_port_profile" "all" {
}

View File

@@ -0,0 +1,21 @@
variable "vlan_id" {
default = 10
}
resource "unifi_network" "vlan" {
name = "wifi-vlan"
purpose = "corporate"
subnet = "10.0.0.1/24"
vlan_id = var.vlan_id
dhcp_start = "10.0.0.6"
dhcp_stop = "10.0.0.254"
dhcp_enabled = true
}
resource "unifi_port_profile" "poe_disabled" {
name = "POE Disabled"
native_networkconf_id = unifi_network.vlan.id
poe_mode = "off"
}