Add the metadata lb back
The router will be added a load balancer for metadata, so we need to keep it when we create lb using lbaas v2 api. Change-Id: If1b0a36570cd9330c695604ed181fde0996e2eee
This commit is contained in:
@@ -253,9 +253,9 @@ def get_lbaas_fw_section_id(vcns):
|
|||||||
|
|
||||||
def enable_edge_acceleration(vcns, edge_id):
|
def enable_edge_acceleration(vcns, edge_id):
|
||||||
with locking.LockManager.get_lock(edge_id):
|
with locking.LockManager.get_lock(edge_id):
|
||||||
config = {
|
# Query the existing load balancer config in case metadata lb is set
|
||||||
'accelerationEnabled': True,
|
_, config = vcns.get_loadbalancer_config(edge_id)
|
||||||
'enabled': True,
|
config['accelerationEnabled'] = True
|
||||||
'featureType': 'loadbalancer_4.0'}
|
config['enabled'] = True
|
||||||
|
config['featureType'] = 'loadbalancer_4.0'
|
||||||
vcns.enable_service_loadbalancer(edge_id, config)
|
vcns.enable_service_loadbalancer(edge_id, config)
|
||||||
|
|||||||
Reference in New Issue
Block a user