diff --git a/octavia_f5/restclient/as3objects/service.py b/octavia_f5/restclient/as3objects/service.py index 8a800a70..75631f9c 100644 --- a/octavia_f5/restclient/as3objects/service.py +++ b/octavia_f5/restclient/as3objects/service.py @@ -83,6 +83,12 @@ def get_esd_entities(servicetype, esd): if compression: service_args['profileHTTPCompression'] = as3.BigIP(compression) + if servicetype == const.SERVICE_HTTPS: + # HTTP redirect + redirect = esd.get('redirect80') + if redirect: + service_args['redirect80'] = True + return service_args diff --git a/octavia_f5/utils/esd_repo.py b/octavia_f5/utils/esd_repo.py index 1f75ff08..b4cb5312 100644 --- a/octavia_f5/utils/esd_repo.py +++ b/octavia_f5/utils/esd_repo.py @@ -172,5 +172,7 @@ def verify_tag(self, tag): 'lbaas_persist': { 'value_type': six.string_types}, 'lbaas_fallback_persist': { - 'value_type': six.string_types} + 'value_type': six.string_types}, + 'redirect80': { + 'value_type': bool} }