Fixing bug in single-create jinja config generation
Fix detailed generating the config regardless of the presence of the redirect pool backend configuration, sending requests to the default pool backend Change-Id: I84194e6b8cab765fc1c97c0acaaa0c3037320578 Closes-Bug: 1583341
This commit is contained in:
parent
a7ac7ad1cb
commit
7bfd1e20dc
|
@ -103,7 +103,7 @@ bind {{ lb_vip_address }}:{{ listener.protocol_port }} {{
|
|||
{% elif l7policy.action == constants.L7POLICY_ACTION_REDIRECT_TO_URL %}
|
||||
redirect location {{ l7policy.redirect_url }} if{{ l7rule_list_macro(
|
||||
l7policy) }}
|
||||
{% elif l7policy.action == constants.L7POLICY_ACTION_REDIRECT_TO_POOL %}
|
||||
{% elif l7policy.action == constants.L7POLICY_ACTION_REDIRECT_TO_POOL and l7policy.redirect_pool.enabled %}
|
||||
use_backend {{ l7policy.redirect_pool.id }} if{{ l7rule_list_macro(
|
||||
l7policy) }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue