Merge "Set firewall_match in Policy NAT Rule to Bypass by Default"

This commit is contained in:
Zuul 2020-05-26 19:29:50 +00:00 committed by Gerrit Code Review
commit 19fe4ac438
2 changed files with 6 additions and 4 deletions

View File

@ -260,11 +260,13 @@ class TestPolicyTransaction(policy_testcase.TestPolicyApi):
nat_rule1 = {"action": constants.NAT_ACTION_SNAT,
"display_name": "snat rule",
"id": nat_rule_id1,
"resource_type": "PolicyNatRule"}
"resource_type": "PolicyNatRule",
"firewall_match": constants.NAT_FIREWALL_MATCH_BYPASS}
nat_rule2 = {"action": constants.NAT_ACTION_DNAT,
"display_name": "dnat rule",
"id": nat_rule_id2,
"resource_type": "PolicyNatRule"}
"resource_type": "PolicyNatRule",
"firewall_match": constants.NAT_FIREWALL_MATCH_BYPASS}
policy_nat = {"id": "USER",
"resource_type": "PolicyNat",

View File

@ -1610,7 +1610,7 @@ class NsxPolicyTier0NatRuleApi(NsxPolicyResourceBase):
source_network=IGNORE,
destination_network=IGNORE,
translated_network=IGNORE,
firewall_match=IGNORE,
firewall_match=constants.NAT_FIREWALL_MATCH_BYPASS,
action=IGNORE,
sequence_number=IGNORE,
log=IGNORE,
@ -1700,7 +1700,7 @@ class NsxPolicyTier1NatRuleApi(NsxPolicyResourceBase):
source_network=IGNORE,
destination_network=IGNORE,
translated_network=IGNORE,
firewall_match=IGNORE,
firewall_match=constants.NAT_FIREWALL_MATCH_BYPASS,
action=IGNORE,
sequence_number=IGNORE,
log=IGNORE,