def set_rules_index_for_http_policy_set(self, avi_config):
    '\n        Update index as per avi protobuf requirements\n        :param avi_config: avi config dict\n        :return: None\n        '
    http_policy_sets = avi_config['HTTPPolicySet']
    for http_policy_set in http_policy_sets:
        rules = http_policy_set['http_request_policy']['rules']
        rules = sorted(rules, key=(lambda d: int(d['index'])))
        for (index, rule) in enumerate(rules):
            rule['index'] = index
Update index as per avi protobuf requirements
:param avi_config: avi config dict
:return: None
def set_rules_index_for_http_policy_set(self, avi_config):
    '\n        Update index as per avi protobuf requirements\n        :param avi_config: avi config dict\n        :return: None\n        '
    http_policy_sets = avi_config['HTTPPolicySet']
    for http_policy_set in http_policy_sets:
        rules = http_policy_set['http_request_policy']['rules']
        rules = sorted(rules, key=(lambda d: int(d['index'])))
        for (index, rule) in enumerate(rules):
            rule['index'] = index