def create_http_policy_set_for_redirect_url(self, vs_obj, redirect_uri, avi_config, tenant_name, tenant_ref, enable_ssl):
    '\n        This function defines that create http policy for redirect url\n        :param vs_obj: object of VS\n        :param redirect_uri: redirect uri\n        :param avi_config: dict of AVi\n        :param tenant_name: name of tenant\n        :param tenant_ref: tenant ref\n        :param enable_ssl: flag for enabling ssl\n        :return: None\n        '
    redirect_uri = str(redirect_uri).replace('"', '')
    action = self.build_redirect_action_dict(redirect_uri, enable_ssl)
    policy_obj = {'name': (vs_obj['name'] + '-redirect-policy'), 'tenant_ref': tenant_ref, 'http_request_policy': {'rules': [{'index': 0, 'name': (vs_obj['name'] + '-redirect-policy-rule-0'), 'match': {'path': {'match_case': 'INSENSITIVE', 'match_str': ['/'], 'match_criteria': 'EQUALS'}}, 'redirect_action': action}]}}
    updated_http_policy_ref = self.get_object_ref(policy_obj['name'], OBJECT_TYPE_HTTP_POLICY_SET, tenant_name)
    http_policies = {'index': 11, 'http_policy_set_ref': updated_http_policy_ref}
    if (not vs_obj.get('http_policies')):
        vs_obj['http_policies'] = []
    else:
        ind = max([policies['index'] for policies in vs_obj['http_policies']])
        http_policies['index'] = (ind + 1)
    vs_obj['http_policies'].append(http_policies)
    avi_config['HTTPPolicySet'].append(policy_obj)
This function defines that create http policy for redirect url
:param vs_obj: object of VS
:param redirect_uri: redirect uri
:param avi_config: dict of AVi
:param tenant_name: name of tenant
:param tenant_ref: tenant ref
:param enable_ssl: flag for enabling ssl
:return: None
def create_http_policy_set_for_redirect_url(self, vs_obj, redirect_uri, avi_config, tenant_name, tenant_ref, enable_ssl):
    '\n        This function defines that create http policy for redirect url\n        :param vs_obj: object of VS\n        :param redirect_uri: redirect uri\n        :param avi_config: dict of AVi\n        :param tenant_name: name of tenant\n        :param tenant_ref: tenant ref\n        :param enable_ssl: flag for enabling ssl\n        :return: None\n        '
    redirect_uri = str(redirect_uri).replace('"', )
    action = self.build_redirect_action_dict(redirect_uri, enable_ssl)
    policy_obj = {'name': (vs_obj['name'] + '-redirect-policy'), 'tenant_ref': tenant_ref, 'http_request_policy': {'rules': [{'index': 0, 'name': (vs_obj['name'] + '-redirect-policy-rule-0'), 'match': {'path': {'match_case': 'INSENSITIVE', 'match_str': ['/'], 'match_criteria': 'EQUALS'}}, 'redirect_action': action}]}}
    updated_http_policy_ref = self.get_object_ref(policy_obj['name'], OBJECT_TYPE_HTTP_POLICY_SET, tenant_name)
    http_policies = {'index': 11, 'http_policy_set_ref': updated_http_policy_ref}
    if (not vs_obj.get('http_policies')):
        vs_obj['http_policies'] = []
    else:
        ind = max([policies['index'] for policies in vs_obj['http_policies']])
        http_policies['index'] = (ind + 1)
    vs_obj['http_policies'].append(http_policies)
    avi_config['HTTPPolicySet'].append(policy_obj)