Plenty of writes now works and an expanded example exists in the terraform directory
This commit is contained in:
1 parent
a6f1019175
commit
fb8d468943
15 files changed
+1344
-74
No files matched your search
+17
-5
@@ -1,21 +1,33 @@
|
||||
output "system_description" {
|
||||
description = "Everything read back from the switch's System Description page."
|
||||
value = data.hpe1810_system_description.this
|
||||
value = data.hpe1810_system_description.draupnir01
|
||||
}
|
||||
|
||||
output "system_name" {
|
||||
value = data.hpe1810_system_description.this.name
|
||||
value = data.hpe1810_system_description.draupnir01.name
|
||||
}
|
||||
|
||||
output "port_summary" {
|
||||
value = data.hpe1810_port_summary.this.ports
|
||||
value = data.hpe1810_port_summary.draupnir01.ports
|
||||
}
|
||||
|
||||
output "port_24" {
|
||||
description = "The uplink port -- verifying it's readable without touching it."
|
||||
value = [for p in data.hpe1810_port_summary.this.ports : p if p.Interface == "24"]
|
||||
value = [for p in data.hpe1810_port_summary.draupnir01.ports : p if p.Interface == "24"]
|
||||
}
|
||||
|
||||
output "mac_table" {
|
||||
value = data.hpe1810_mac_table.this
|
||||
value = data.hpe1810_mac_table.draupnir01
|
||||
}
|
||||
|
||||
output "managed_port_status" {
|
||||
description = "physical_type/link_status per port managed via hpe1810_port."
|
||||
value = {
|
||||
for k, p in hpe1810_port.draupnir01 : k => {
|
||||
admin_mode = p.admin_mode
|
||||
link_speed = p.link_speed
|
||||
physical_type = p.physical_type
|
||||
link_status = p.link_status
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user