Merge "NSXv: LBaaS enable acceleration for TCP listener"

This commit is contained in:
Jenkins 2016-12-19 06:26:49 +00:00 committed by Gerrit Code Review
commit 07e5a14abb
2 changed files with 3 additions and 1 deletions

View File

@ -85,6 +85,8 @@ def listener_to_edge_vse(listener, vip_address, default_pool, app_profile_id):
'port': listener.protocol_port, 'port': listener.protocol_port,
'connectionLimit': connection_limit, 'connectionLimit': connection_limit,
'defaultPoolId': default_pool, 'defaultPoolId': default_pool,
'accelerationEnabled': (
listener.protocol == lb_const.LB_PROTOCOL_TCP),
'applicationProfileId': app_profile_id} 'applicationProfileId': app_profile_id}

View File

@ -42,7 +42,7 @@ EDGE_APP_PROF_DEF = {'sslPassthrough': False, 'insertXForwardedFor': False,
EDGE_VIP_ID = 'vip-aaa' EDGE_VIP_ID = 'vip-aaa'
EDGE_VIP_DEF = {'protocol': 'http', 'name': 'vip_' + LISTENER_ID, EDGE_VIP_DEF = {'protocol': 'http', 'name': 'vip_' + LISTENER_ID,
'connectionLimit': 0, 'defaultPoolId': None, 'connectionLimit': 0, 'defaultPoolId': None,
'ipAddress': LB_VIP, 'port': 80, 'ipAddress': LB_VIP, 'port': 80, 'accelerationEnabled': False,
'applicationProfileId': EDGE_APP_PROFILE_ID, 'description': ''} 'applicationProfileId': EDGE_APP_PROFILE_ID, 'description': ''}
LISTENER_BINDING = {'loadbalancer_id': LB_ID, LISTENER_BINDING = {'loadbalancer_id': LB_ID,
'listener_id': LISTENER_ID, 'listener_id': LISTENER_ID,