def is_shared_same_vip(self, vs, cs_vs_list, avi_config, tenant_name, cloud_name, tenant_ref, cloud_ref, controller_version, prefix, input_vrf=None):
    '\n        This function check for vs sharing same vip\n        :param vs: Name of vs\n        :param cs_vs_list: List of vs\n        :param avi_config: avi config dict\n        :param tenant_name: Name of tenant\n        :param cloud_name: Name of cloud\n        :param tenant_ref: Reference of tenant\n        :param cloud_ref: Reference of cloud\n        :param controller_version: controller version\n        :param prefix: prefix for objects\n        :param input_vrf: VRF name input\n        :return: None\n        '
    if (parse_version(controller_version) >= parse_version('17.1')):
        shared_vip = [v for v in cs_vs_list if ((v['vsvip_ref'].split('name=')[1].split('-')[0] == vs['vsvip_ref'].split('name=')[1].split('-')[0]) and (v['services'][0]['port'] == vs['services'][0]['port']))]
    else:
        shared_vip = [v for v in cs_vs_list if ((v['ip_address']['addr'] == vs['ip_address']['addr']) and (v['services'][0]['port'] == vs['services'][0]['port']))]
    if input_vrf:
        vrf_ref = self.get_object_ref(input_vrf, 'vrfcontext', cloud_name=cloud_name)
    else:
        vrf_ref = self.get_object_ref('global', 'vrfcontext', cloud_name=cloud_name)
    if shared_vip:
        return True
    elif (parse_version(controller_version) >= parse_version('17.1')):
        vsvip = vs['vsvip_ref'].split('name=')[1].split('-')[0]
        self.create_update_vsvip(vsvip, avi_config['VsVip'], tenant_ref, cloud_ref, prefix=prefix, vrf_ref=vrf_ref)
        name = (vsvip + '-vsvip')
        if prefix:
            name = (((prefix + '-') + vsvip) + '-vsvip')
        updated_vsvip_ref = self.get_object_ref(name, 'vsvip', tenant_name, cloud_name)
        vs['vsvip_ref'] = updated_vsvip_ref
This function check for vs sharing same vip
:param vs: Name of vs
:param cs_vs_list: List of vs
:param avi_config: avi config dict
:param tenant_name: Name of tenant
:param cloud_name: Name of cloud
:param tenant_ref: Reference of tenant
:param cloud_ref: Reference of cloud
:param controller_version: controller version
:param prefix: prefix for objects
:param input_vrf: VRF name input
:return: None
def is_shared_same_vip(self, vs, cs_vs_list, avi_config, tenant_name, cloud_name, tenant_ref, cloud_ref, controller_version, prefix, input_vrf=None):
    '\n        This function check for vs sharing same vip\n        :param vs: Name of vs\n        :param cs_vs_list: List of vs\n        :param avi_config: avi config dict\n        :param tenant_name: Name of tenant\n        :param cloud_name: Name of cloud\n        :param tenant_ref: Reference of tenant\n        :param cloud_ref: Reference of cloud\n        :param controller_version: controller version\n        :param prefix: prefix for objects\n        :param input_vrf: VRF name input\n        :return: None\n        '
    if (parse_version(controller_version) >= parse_version('17.1')):
        shared_vip = [v for v in cs_vs_list if ((v['vsvip_ref'].split('name=')[1].split('-')[0] == vs['vsvip_ref'].split('name=')[1].split('-')[0]) and (v['services'][0]['port'] == vs['services'][0]['port']))]
    else:
        shared_vip = [v for v in cs_vs_list if ((v['ip_address']['addr'] == vs['ip_address']['addr']) and (v['services'][0]['port'] == vs['services'][0]['port']))]
    if input_vrf:
        vrf_ref = self.get_object_ref(input_vrf, 'vrfcontext', cloud_name=cloud_name)
    else:
        vrf_ref = self.get_object_ref('global', 'vrfcontext', cloud_name=cloud_name)
    if shared_vip:
        return True
    elif (parse_version(controller_version) >= parse_version('17.1')):
        vsvip = vs['vsvip_ref'].split('name=')[1].split('-')[0]
        self.create_update_vsvip(vsvip, avi_config['VsVip'], tenant_ref, cloud_ref, prefix=prefix, vrf_ref=vrf_ref)
        name = (vsvip + '-vsvip')
        if prefix:
            name = (((prefix + '-') + vsvip) + '-vsvip')
        updated_vsvip_ref = self.get_object_ref(name, 'vsvip', tenant_name, cloud_name)
        vs['vsvip_ref'] = updated_vsvip_ref