You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output from the generated file import-firewall-rules.tf is below
# Generated by vcd_resource_list - 2024-03-25T09:02:44+02:00
# Import directive for vcd_nsxv_firewall_rule TTO-1.TTO-1_oVDC.TTO-1_EDGE.firewall
import {
to = vcd_nsxv_firewall_rule.firewall-131289
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.firewall"
}
# Import directive for vcd_nsxv_firewall_rule TTO-1.TTO-1_oVDC.TTO-1_EDGE.dhcp
import {
to = vcd_nsxv_firewall_rule.dhcp-131290
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.dhcp"
}
# Import directive for vcd_nsxv_firewall_rule TTO-1.TTO-1_oVDC.TTO-1_EDGE.dns
import {
to = vcd_nsxv_firewall_rule.dns-131291
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.dns"
}
# Import directive for vcd_nsxv_firewall_rule TTO-1.TTO-1_oVDC.TTO-1_EDGE.Allow_ICMP1
import {
to = vcd_nsxv_firewall_rule.Allow_ICMP1-131090
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.Allow_ICMP1"
}
# Import directive for vcd_nsxv_firewall_rule TTO-1.TTO-1_oVDC.TTO-1_EDGE.Allow_ICMP
import {
to = vcd_nsxv_firewall_rule.Allow_ICMP-131128
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.Allow_ICMP"
}
# Import directive for vcd_nsxv_firewall_rule TTO-1.TTO-1_oVDC.TTO-1_EDGE.default rule for ingress traffic
import {
to = vcd_nsxv_firewall_rule.default rule for ingress traffic-131287
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.default rule for ingress traffic"
}
1. All generated IDs are incorrect
Id from the generated file are
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.firewall"
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.dhcp"
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.dns"
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.Allow_ICMP1"
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.Allow_ICMP"
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.default rule for ingress traffic"
it should be
TTO-1.TTO-1_oVDC.TTO-1_EDGE.TTO-1_EDGE.firewall
Actual Behavior
but the generated ID is
TTO-1.TTO-1_oVDC.TTO-1_EDGE.firewall
2. Firewall rules with spaces in their names, which also include the default rule "default rule for ingress traffic"
are processed incorrectly. Spaces should be replaced with some symbol, e.g., an underscore, as spaces are prohibited in Terraform.
Expected Behavior
# Import directive for vcd_nsxv_firewall_rule TTO-1.TTO-1_oVDC.TTO-1_EDGE.default rule for ingress traffic
import {
to = vcd_nsxv_firewall_rule.default rule for ingress traffic-131287
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.default_rule_for_ingress_traffic"
}
Actual Behavior
# Import directive for vcd_nsxv_firewall_rule TTO-1.TTO-1_oVDC.TTO-1_EDGE.default rule for ingress traffic
import {
to = vcd_nsxv_firewall_rule.default rule for ingress traffic-131287
id = "TTO-1.TTO-1_oVDC.TTO-1_EDGE.default rule for ingress traffic"
}
The text was updated successfully, but these errors were encountered:
Hi,
I found several issues while running the command data vcd_resource_list with vcd_nsxv_firewall_rule.
Terraform Version
Terraform v1.7.5
on windows_amd64
Affected Resource(s)
vcd_resource_list with vcd_nsxv_firewall_rule
The output from the generated file import-firewall-rules.tf is below
1. All generated IDs are incorrect
Id from the generated file are
id getting from the command below are different.
output
Expected Behavior
it should be
TTO-1.TTO-1_oVDC.TTO-1_EDGE.TTO-1_EDGE.firewall
Actual Behavior
but the generated ID is
TTO-1.TTO-1_oVDC.TTO-1_EDGE.firewall
2. Firewall rules with spaces in their names, which also include the default rule "default rule for ingress traffic"
are processed incorrectly. Spaces should be replaced with some symbol, e.g., an underscore, as spaces are prohibited in Terraform.
Expected Behavior
}
Actual Behavior
The text was updated successfully, but these errors were encountered: