34 lines
934 B
Terraform
34 lines
934 B
Terraform
output "system_description" {
|
|
description = "Everything read back from the switch's System Description page."
|
|
value = data.hpe1810_system_description.draupnir01
|
|
}
|
|
|
|
output "system_name" {
|
|
value = data.hpe1810_system_description.draupnir01.name
|
|
}
|
|
|
|
output "port_summary" {
|
|
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.draupnir01.ports : p if p.Interface == "24"]
|
|
}
|
|
|
|
output "mac_table" {
|
|
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
|
|
}
|
|
}
|
|
}
|