def get_base_lun_name(volume):
 base_name = extract_provider_location(volume.provider_location, 'base_lun_name')
 if ((base_name is None) or (base_name == 'None')):
  return volume.name
 return base_name

def get_base_lun_name ( volume ) : base_name = extract_provider_location ( volume . provider_location , 'base_lun_name' ) if ( ( base_name is None ) or ( base_name == 'None' ) ) : return volume . name return base_name
returns base lun name for lun/snapcopy lun .