def clone_pool(self, pool_name, cloned_for, avi_config, userprefix=None):
    '\n        This function used for cloning shared pools in netscaler.\n        :param pool_name: name of pool\n        :param cloned_for: cloned for\n        :param avi_config: avi config dict\n        :param userprefix: prefix for objects\n        :return: None\n        '
    pools = [pool for pool in avi_config['Pool'] if (pool['name'] == pool_name)]
    if pools:
        pool_obj = copy.deepcopy(pools[0])
        pname = pool_obj['name']
        pool_name = re.sub('[:]', '-', ('%s-%s' % (pname, cloned_for)))
        pool_obj['name'] = pool_name
        avi_config['Pool'].append(pool_obj)
        LOG.info(('Same pool reference to other object. Clone Pool %s for %s' % (pool_name, cloned_for)))
        return pool_obj['name']
    return None
This function used for cloning shared pools in netscaler.
:param pool_name: name of pool
:param cloned_for: cloned for
:param avi_config: avi config dict
:param userprefix: prefix for objects
:return: None
def clone_pool(self, pool_name, cloned_for, avi_config, userprefix=None):
    '\n        This function used for cloning shared pools in netscaler.\n        :param pool_name: name of pool\n        :param cloned_for: cloned for\n        :param avi_config: avi config dict\n        :param userprefix: prefix for objects\n        :return: None\n        '
    pools = [pool for pool in avi_config['Pool'] if (pool['name'] == pool_name)]
    if pools:
        pool_obj = copy.deepcopy(pools[0])
        pname = pool_obj['name']
        pool_name = re.sub('[:]', '-', ('%s-%s' % (pname, cloned_for)))
        pool_obj['name'] = pool_name
        avi_config['Pool'].append(pool_obj)
        LOG.info(('Same pool reference to other object. Clone Pool %s for %s' % (pool_name, cloned_for)))
        return pool_obj['name']
    return None