Merge "NSX-V: Prevent LBaaS L7 policy creation for HTTPS listeners"
This commit is contained in:
commit
1d270acbd9
@ -217,6 +217,14 @@ class EdgeL7PolicyManager(base_mgr.EdgeLoadbalancerBaseManager):
|
|||||||
msg = _(
|
msg = _(
|
||||||
'No suitable Edge found for listener %s') % pol.listener_id
|
'No suitable Edge found for listener %s') % pol.listener_id
|
||||||
raise n_exc.BadRequest(resource='edge-lbaas', msg=msg)
|
raise n_exc.BadRequest(resource='edge-lbaas', msg=msg)
|
||||||
|
|
||||||
|
if (pol.listener.protocol == lb_const.LB_PROTOCOL_HTTPS or
|
||||||
|
pol.listener.protocol == lb_const.LB_PROTOCOL_TERMINATED_HTTPS):
|
||||||
|
msg = _(
|
||||||
|
'L7 policy is not supported for %(prot)s listener %(ls)s') % {
|
||||||
|
'prot': pol.listener.protocol, 'ls': pol.listener_id}
|
||||||
|
raise n_exc.BadRequest(resource='edge-lbaas', msg=msg)
|
||||||
|
|
||||||
edge_id = lb_binding['edge_id']
|
edge_id = lb_binding['edge_id']
|
||||||
app_rule = policy_to_application_rule(pol)
|
app_rule = policy_to_application_rule(pol)
|
||||||
app_rule_id = None
|
app_rule_id = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user