Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with NAT Rule creation on NAT64 #717

Closed
burnsjared0415 opened this issue Feb 16, 2022 · 0 comments · Fixed by #725
Closed

Issue with NAT Rule creation on NAT64 #717

burnsjared0415 opened this issue Feb 16, 2022 · 0 comments · Fixed by #725
Assignees
Labels

Comments

@burnsjared0415
Copy link

Describe the bug

I am trying to create a rule to create a NAT64 rule and think the code is right but need some help to see what i am doing wrong: error is Some error has occurred. (code 500130)

code:

Creation of NAT Rules for with NAT64 Action

resource "nsxt_policy_nat_rule" "nat_rule_list_nat64" {
for_each = var.nat_rule_creation_list_nat64
display_name = each.value.display_name
action = each.value.action
source_networks = each.value.source_networks
destination_networks = each.value.destination_networks
translated_networks = each.value.translated_networks
gateway_path = data.nsxt_policy_tier1_gateway.tier1_gateway.path
logging = false
firewall_match = each.value.firewall_match
service = data.nsxt_policy_service.nat64_service.path
}

variable
variable "nat_rule_creation_list_nat64" {
description = ""
type = map(object({
display_name = string
action = string
source_networks = list(string)
destination_networks = list(string)
translated_networks = list(string)
firewall_match = string
}))
default = {
"config_1" = {
display_name = "test_nat64"
action = "NAT64"
source_networks = ["2002:db8:0:0:0:0:0:0"]
destination_networks = ["2001:db8:122:344::/96"]
translated_networks = ["192.0.2.33"]
firewall_match = "BYPASS"
}
}
}

Reproduction steps

1.Try to create a rule with NAT64 Code
2.
3.
...

Expected behavior

Create the Rule, i tried all this info manually first and it works

Additional context

No response

@annakhm annakhm self-assigned this Mar 16, 2022
@annakhm annakhm linked a pull request Mar 16, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants