-
Notifications
You must be signed in to change notification settings - Fork 85
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
Update nsxt_nat_rule with firewall_match #950
Conversation
7fcfaf9
to
c8dc410
Compare
@@ -245,41 +239,43 @@ func resourceNsxtNatRuleUpdate(d *schema.ResourceData, m interface{}) error { | |||
//match_service := d.Get("match_service").(*NsServiceElement) | |||
matchSourceNetwork := d.Get("match_source_network").(string) | |||
natPass := d.Get("nat_pass").(bool) | |||
firewallMatch := model.NatRule_FIREWALL_MATCH_MATCH_INTERNAL_ADDRESS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we know what version this was added in?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nat_pass was removed at 4.0.0
firewall_match exists in 2.4 - it seemed old enough so I didn't check earlier versions...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I should keep the code which uses the old API for pre-4.0.0 environments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think current code should be good, I would run the test against 3.0.0 to be sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
firewall_match attribute replace nat_pass in nsxt_nat_rule resource. Signed-off-by: Kobi Samoray <[email protected]>
c8dc410
to
f7dff16
Compare
/test-all |
firewall_match attribute replace nat_pass in nsxt_nat_rule resource.
Fixes: #945