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

Can't update Default Firewall Rule #153

Closed
fdhex opened this issue Mar 14, 2019 · 3 comments
Closed

Can't update Default Firewall Rule #153

fdhex opened this issue Mar 14, 2019 · 3 comments

Comments

@fdhex
Copy link

fdhex commented Mar 14, 2019

In Edge Firewall update, I can't seem to be able to edit the imported bottom rule.

I get the following error from the NSX-T API in the end:

* nsxt_firewall_section.section_bottom: Error during FirewallSection 944eb72d-7a70-4086-9df6-f2bf26c334b5 update: Status: 400 , Body: {
  "httpStatus" : "BAD_REQUEST",
  "error_code" : 100077,
  "module_name" : "NSX Firewall",
  "error_message" : "Default rule found at invalid position: 944eb72d-7a70-4086-9df6-f2bf26c334b5, should be at end of list"
}

I would like to be able to change the default from ALLOW to DROP, no other changes whatsoever. Outcome of terraform apply is

Terraform will perform the following actions:

  ~ nsxt_firewall_section.section_bottom
      rule.0.action: "ALLOW" => "DROP"
@annakhm
Copy link
Collaborator

annakhm commented Mar 14, 2019

Hi @fdhex, you should be able to control FW section order with recent fix https://github.com/terraform-providers/terraform-provider-nsxt/pull/150.
Unfortunately this fix is not released yet.

@fdhex
Copy link
Author

fdhex commented Mar 14, 2019

Actually not really since the default rule within a section (of a T0 edge firewall) cannot be deleted/added, it needs to be edited in place with its id (see merge request https://github.com/terraform-providers/terraform-provider-nsxt/pull/154). Once this is specified, the edit works, also with Edge Firewall (LogicalRouter type FW section).

@annakhm annakhm closed this as completed Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants