Merge "Validate user access to vip_subnet_id when creating a LB" into stable/train
This commit is contained in:
commit
2e46984202
|
@ -264,7 +264,7 @@ class LoadBalancersController(base.BaseController):
|
||||||
# Validate just the subnet id
|
# Validate just the subnet id
|
||||||
elif load_balancer.vip_subnet_id:
|
elif load_balancer.vip_subnet_id:
|
||||||
subnet = validate.subnet_exists(
|
subnet = validate.subnet_exists(
|
||||||
subnet_id=load_balancer.vip_subnet_id)
|
subnet_id=load_balancer.vip_subnet_id, context=context)
|
||||||
load_balancer.vip_network_id = subnet.network_id
|
load_balancer.vip_network_id = subnet.network_id
|
||||||
if load_balancer.vip_qos_policy_id:
|
if load_balancer.vip_qos_policy_id:
|
||||||
validate.qos_policy_exists(
|
validate.qos_policy_exists(
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fix a bug that allowed a user to create a load balancer on a
|
||||||
|
``vip_subnet_id`` that belongs to another user using the subnet UUID.
|
Loading…
Reference in New Issue