Add missing translation to LBaaSv2 listener

Protocol translation was missing for application profile template field.

Change-Id: If42773b79814e16b3e7820c580cfce5192c5025c
This commit is contained in:
Kobi Samoray 2016-03-06 15:53:37 +02:00 committed by garyk
parent 63a12ec964
commit 512ed7e72a
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ def listener_to_edge_app_profile(listener, edge_cert_id):
'name': listener.id,
'serverSslEnabled': False,
'sslPassthrough': False,
'template': listener.protocol,
'template': lb_const.PROTOCOL_MAP[listener.protocol],
}
if (listener.protocol == lb_const.LB_PROTOCOL_HTTPS

View File

@ -38,7 +38,7 @@ LISTENER_ID = 'xxx-111'
EDGE_APP_PROFILE_ID = 'appp-x'
EDGE_APP_PROF_DEF = {'sslPassthrough': False, 'insertXForwardedFor': False,
'serverSslEnabled': False, 'name': LISTENER_ID,
'template': 'HTTP'}
'template': 'http'}
EDGE_VIP_ID = 'vip-aaa'
EDGE_VIP_DEF = {'protocol': 'http', 'name': 'vip_' + LISTENER_ID,
'connectionLimit': 0, 'defaultPoolId': None,