[baremetal_server] Accessing to VLAN ID #1870
Answered
by
lperdereau
lperdereau
asked this question in
Q&A
-
Hello, I'm looking for a way to access to the VLAN ID. locals {
cps = [
tomap({
cp_public_ip_address : [for ip in scaleway_baremetal_server.control_plane_1.ips : ip if ip.version == "IPv4"][0].address,
vlan_id : scaleway_baremetal_server.control_plane_1.private_network[0].vlan,
}),
tomap({
cp_public_ip_address : [for ip in scaleway_baremetal_server.control_plane_2.ips : ip if ip.version == "IPv4"][0].address,
vlan_id : scaleway_baremetal_server.control_plane_2.private_network[0].vlan,
})
]
} This things raise an error: Do you know how can I get my VLAN ID ? |
Beta Was this translation helpful? Give feedback.
Answered by
lperdereau
Apr 2, 2023
Replies: 1 comment
-
Finally finding a way locals {
cps = [
{
cp_public_ip_address = [for ip in scaleway_baremetal_server.control_plane_1.ips : ip if ip.version == "IPv4"][0].address,
vlan_id = [for pn in scaleway_baremetal_server.control_plane_1.private_network : pn][0].vlan
},
{
cp_public_ip_address = [for ip in scaleway_baremetal_server.control_plane_2.ips : ip if ip.version == "IPv4"][0].address,
vlan_id = [for pn in scaleway_baremetal_server.control_plane_2.private_network : pn][0].vlan
}
]
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lperdereau
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finally finding a way