Modified: vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm?rev=1793929&r1=1793928&r2=1793929&view=diff ============================================================================== --- vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm (original) +++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning.pm Thu May 4 23:22:17 2017 @@ -32,7 +32,7 @@ VCL::Module::Provisioning - VCL provisio =cut -############################################################################## +############################################################################### package VCL::Module::Provisioning; # Specify the lib path using FindBin @@ -56,13 +56,13 @@ use File::Basename; use VCL::utils; -############################################################################## +############################################################################### =head1 OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 node_status @@ -146,7 +146,7 @@ sub node_status { return 'READY'; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_image_repository_search_paths @@ -184,7 +184,7 @@ sub get_image_repository_search_paths { return @search_paths; } ## end sub get_image_repository_search_paths -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 retrieve_image @@ -459,7 +459,7 @@ sub retrieve_image { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 wait_for_power_off @@ -537,7 +537,7 @@ sub wait_for_power_off { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// 1; __END__
Modified: vcl/trunk/managementnode/lib/VCL/Module/Provisioning/Lab.pm URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/Lab.pm?rev=1793929&r1=1793928&r2=1793929&view=diff ============================================================================== --- vcl/trunk/managementnode/lib/VCL/Module/Provisioning/Lab.pm (original) +++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning/Lab.pm Thu May 4 23:22:17 2017 @@ -32,7 +32,7 @@ VCL::Provisioning::Lab - VCL module to s =cut -############################################################################## +############################################################################### package VCL::Module::Provisioning::Lab; # Specify the lib path using FindBin @@ -55,13 +55,13 @@ use English qw(-no_match_vars); use VCL::utils; -############################################################################## +############################################################################### =head1 OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 load @@ -101,7 +101,7 @@ sub load { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 node_status @@ -133,7 +133,7 @@ sub node_status { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 power_reset @@ -147,7 +147,7 @@ sub power_reset { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 unload @@ -161,7 +161,7 @@ sub unload { return 0; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// 1; __END__ Modified: vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm?rev=1793929&r1=1793928&r2=1793929&view=diff ============================================================================== --- vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm (original) +++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm Thu May 4 23:22:17 2017 @@ -36,7 +36,7 @@ VCL::Module::Provisioning::VMware::VIM_S =cut -############################################################################## +############################################################################### package VCL::Module::Provisioning::VMware::VIM_SSH; # Specify the lib path using FindBin @@ -59,13 +59,13 @@ use diagnostics; use English '-no_match_vars'; use VCL::utils; -############################################################################## +############################################################################### =head1 PRIVATE OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 initialize @@ -144,7 +144,7 @@ sub initialize { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _run_vim_cmd @@ -310,7 +310,7 @@ sub _run_vim_cmd { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _services_restart @@ -367,7 +367,7 @@ sub _services_restart { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _check_service_pid @@ -479,7 +479,7 @@ sub _check_service_pid { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_vm_list @@ -538,7 +538,7 @@ sub _get_vm_list { return \%vms; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_vm_id @@ -581,7 +581,7 @@ sub _get_vm_id { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_vm_summary @@ -710,7 +710,7 @@ sub _get_vm_summary { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_info @@ -822,7 +822,7 @@ sub _get_datastore_info { return $datastore_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_task_ids @@ -907,7 +907,7 @@ sub _get_task_ids { return @task_ids; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_task_info @@ -996,7 +996,7 @@ sub _get_task_info { return $task_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _wait_for_task @@ -1086,13 +1086,13 @@ sub _wait_for_task { return; } -############################################################################## +############################################################################### =head1 API OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_registered_vms @@ -1124,7 +1124,7 @@ sub get_registered_vms { return @vmx_paths; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_power_state @@ -1189,7 +1189,7 @@ sub get_vm_power_state { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_power_on @@ -1264,7 +1264,7 @@ sub vm_power_on { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_power_off @@ -1346,7 +1346,7 @@ sub vm_power_off { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_suspend @@ -1427,7 +1427,7 @@ sub vm_suspend { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_register @@ -1521,7 +1521,7 @@ sub vm_register { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_unregister @@ -1610,7 +1610,7 @@ sub vm_unregister { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_type @@ -1726,7 +1726,7 @@ sub get_virtual_disk_type { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_controller_type @@ -1878,7 +1878,7 @@ sub get_virtual_disk_controller_type { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_hardware_version @@ -2019,7 +2019,7 @@ sub get_virtual_disk_hardware_version { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_network_names @@ -2090,7 +2090,7 @@ sub get_network_names { return @network_names; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 create_snapshot @@ -2154,7 +2154,7 @@ sub create_snapshot { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 remove_snapshots @@ -2214,7 +2214,7 @@ sub remove_snapshots { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 snapshot_exists @@ -2277,7 +2277,7 @@ sub snapshot_exists { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_cpu_core_count @@ -2325,7 +2325,7 @@ sub get_cpu_core_count { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_cpu_speed @@ -2373,7 +2373,7 @@ sub get_cpu_speed { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_total_memory @@ -2415,7 +2415,7 @@ sub get_total_memory { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_license_info @@ -2523,7 +2523,7 @@ sub get_license_info { return $license_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_config_option_descriptor_info @@ -2596,7 +2596,7 @@ sub get_config_option_descriptor_info { return $config_option_descriptor_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_highest_vm_hardware_version_key @@ -2634,7 +2634,7 @@ sub get_highest_vm_hardware_version_key return $highest_vm_hardware_version_key; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_config_option_info @@ -2690,7 +2690,7 @@ sub get_config_option_info { return $result->{'vim.vm.ConfigOption'}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_config_option_guest_os_info @@ -2754,7 +2754,7 @@ sub get_config_option_guest_os_info { return $config_option_guest_os_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_supported_guest_os_ids @@ -2820,7 +2820,7 @@ sub get_supported_guest_os_ids { return @supported_guest_os_ids; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _print_compatible_guest_os_hardware_versions @@ -3010,7 +3010,7 @@ sub _print_compatible_guest_os_hardware_ return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_host_capability_info @@ -3102,7 +3102,7 @@ sub get_host_capability_info { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_nested_virtualization_supported @@ -3142,7 +3142,7 @@ sub is_nested_virtualization_supported { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _parse_vim_cmd_output @@ -3276,7 +3276,7 @@ sub _parse_vim_cmd_output { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_vm_virtual_disk_file_layout @@ -3375,7 +3375,7 @@ sub _get_vm_virtual_disk_file_layout { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_virtual_disk_file_paths @@ -3438,7 +3438,7 @@ sub get_vm_virtual_disk_file_paths { return @virtual_disks; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_cpu_usage @@ -3494,7 +3494,7 @@ sub get_vm_cpu_usage { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 firewall_ruleset_allow_ip @@ -3555,7 +3555,7 @@ sub firewall_ruleset_allow_ip { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 firewall_ruleset_enable @@ -3596,7 +3596,7 @@ sub firewall_ruleset_enable { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_firewall_ruleset_info @@ -3761,7 +3761,7 @@ sub get_firewall_ruleset_info { return $ruleset_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_matching_firewall_ruleset_info @@ -3853,7 +3853,7 @@ sub get_matching_firewall_ruleset_info { return $matching_ruleset_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_firewall_port_allowed @@ -3959,7 +3959,7 @@ sub is_firewall_port_allowed { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 DESTROY @@ -3980,7 +3980,7 @@ sub DESTROY { notify($ERRORS{'DEBUG'}, 0, "vim-cmd call count: $self->{vim_cmd_calls}") if ($self->{vim_cmd_calls}); } ## end sub DESTROY -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// 1; __END__ Modified: vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm?rev=1793929&r1=1793928&r2=1793929&view=diff ============================================================================== --- vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm (original) +++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm Thu May 4 23:22:17 2017 @@ -38,7 +38,7 @@ VCL::Module::Provisioning::VMware::VMwar =cut -############################################################################## +############################################################################### package VCL::Module::Provisioning::VMware::VMware; # Specify the lib path using FindBin @@ -67,7 +67,7 @@ use Term::ANSIColor 2.00 qw(:constants c use VCL::utils; -############################################################################## +############################################################################### =head1 CLASS VARIABLES @@ -263,13 +263,13 @@ our $VIM_SSH_PACKAGE = 'VCL::Module::Pro our $VMWARE_CMD_PACKAGE = 'VCL::Module::Provisioning::VMware::vmware_cmd'; -############################################################################## +############################################################################### =head1 OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 initialize @@ -474,7 +474,7 @@ sub initialize { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 node_status @@ -617,7 +617,7 @@ sub node_status { return 'RELOAD'; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 unload @@ -646,7 +646,7 @@ sub unload { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 load @@ -796,7 +796,7 @@ sub load { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 capture @@ -1133,7 +1133,7 @@ sub capture { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_active_vmx_file_path @@ -1311,7 +1311,7 @@ sub get_active_vmx_file_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vmhost_data @@ -1336,7 +1336,7 @@ sub vmhost_data { return $self->{vmhost_data}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 api @@ -1369,7 +1369,7 @@ sub api { return $self->{api}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmhost_datastructure @@ -1426,7 +1426,7 @@ sub get_vmhost_datastructure { return $vmhost_data; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmhost_os_object @@ -1488,7 +1488,7 @@ sub get_vmhost_os_object { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmhost_api_object @@ -1556,7 +1556,7 @@ sub get_vmhost_api_object { return $api; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 remove_existing_vms @@ -1660,7 +1660,7 @@ sub remove_existing_vms { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 prepare_vmx @@ -1957,7 +1957,7 @@ sub prepare_vmx { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_ethernet_adapter_configuration @@ -2065,7 +2065,7 @@ sub get_vm_ethernet_adapter_configuratio return @adapters; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 prepare_vmdk @@ -2265,7 +2265,7 @@ sub prepare_vmdk { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_vmx_vmdk_volume_shared @@ -2324,7 +2324,7 @@ sub is_vmx_vmdk_volume_shared { return $self->{vmx_vmdk_volume_shared}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_volume_total_space @@ -2347,7 +2347,7 @@ sub get_vmx_volume_total_space { return $self->{vmx_total_space}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_volume_total_space @@ -2370,7 +2370,7 @@ sub get_vmdk_volume_total_space { return $self->{vmdk_total_space}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 check_vmhost_disk_space @@ -2471,7 +2471,7 @@ sub check_vmhost_disk_space { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 reclaim_vmhost_disk_space @@ -2963,7 +2963,7 @@ sub reclaim_vmhost_disk_space { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_vmdk_compatible @@ -3011,7 +3011,7 @@ sub is_vmdk_compatible { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_file_path @@ -3052,7 +3052,7 @@ sub get_vmx_file_path { return $vmx_file_path; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_base_directory_path @@ -3136,7 +3136,7 @@ sub get_vmx_base_directory_path { return $vmx_base_directory_normal_path; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_url_base_directory_path @@ -3186,7 +3186,7 @@ sub get_vmx_url_base_directory_path { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_intermediate_directory_path @@ -3231,7 +3231,7 @@ sub get_vmx_intermediate_directory_path return $intermediate_directory_path || ''; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_directory_name @@ -3291,7 +3291,7 @@ sub get_vmx_directory_name { return "$computer_short_name\_$image_id-v$image_revision"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_directory_path @@ -3329,7 +3329,7 @@ sub get_vmx_directory_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_file_name @@ -3366,7 +3366,7 @@ sub get_vmx_file_name { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 set_vmx_file_path @@ -3419,7 +3419,7 @@ sub set_vmx_file_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_reference_vmx_file_name @@ -3441,7 +3441,7 @@ sub get_reference_vmx_file_name { return "$image_name.vmx.reference"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_file_path @@ -3496,7 +3496,7 @@ sub get_vmdk_file_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_file_path_dedicated @@ -3531,7 +3531,7 @@ sub get_vmdk_file_path_dedicated { return "$vmdk_directory_path_dedicated/$vmdk_directory_name_dedicated.vmdk"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_file_path_shared @@ -3566,7 +3566,7 @@ sub get_vmdk_file_path_shared { return "$vmdk_directory_path_shared/$vmdk_directory_name_shared.vmdk"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_base_directory_path @@ -3612,7 +3612,7 @@ sub get_vmdk_base_directory_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_base_directory_path_shared @@ -3655,7 +3655,7 @@ sub get_vmdk_base_directory_path_shared } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_base_directory_path_dedicated @@ -3708,7 +3708,7 @@ sub get_vmdk_base_directory_path_dedicat } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_directory_name @@ -3754,7 +3754,7 @@ sub get_vmdk_directory_name { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_directory_name_dedicated @@ -3784,7 +3784,7 @@ sub get_vmdk_directory_name_dedicated { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_directory_name_shared @@ -3814,7 +3814,7 @@ sub get_vmdk_directory_name_shared { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_directory_path @@ -3856,7 +3856,7 @@ sub get_vmdk_directory_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_directory_path_dedicated @@ -3890,7 +3890,7 @@ sub get_vmdk_directory_path_dedicated { return "$vmdk_base_directory_path/$vmdk_directory_name_dedicated"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_directory_path_shared @@ -3924,7 +3924,7 @@ sub get_vmdk_directory_path_shared { return "$vmdk_base_directory_path/$vmdk_directory_name_shared"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_file_prefix @@ -3962,7 +3962,7 @@ sub get_vmdk_file_prefix { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_file_name @@ -3999,7 +3999,7 @@ sub get_vmdk_file_name { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 set_vmdk_file_path @@ -4049,7 +4049,7 @@ sub set_vmdk_file_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 check_file_paths @@ -4115,7 +4115,7 @@ sub check_file_paths { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_image_repository_path @@ -4135,7 +4135,7 @@ sub get_image_repository_path { return $self->get_repository_vmdk_directory_path(); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_image_repository_search_paths @@ -4181,7 +4181,7 @@ sub get_image_repository_search_paths { return @repository_search_paths; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_repository_vmdk_base_directory_path @@ -4229,7 +4229,7 @@ sub get_repository_vmdk_base_directory_p } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_repository_vmdk_directory_path @@ -4259,7 +4259,7 @@ sub get_repository_vmdk_directory_path { return "$repository_vmdk_base_directory/$image_name"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_repository_vmdk_file_path @@ -4283,7 +4283,7 @@ sub get_repository_vmdk_file_path { return "$repository_vmdk_directory_path/$image_name.vmdk"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_vm_dedicated @@ -4335,7 +4335,7 @@ sub is_vm_dedicated { return $self->{vm_dedicated}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_vmdk_file_shared @@ -4407,7 +4407,7 @@ sub is_vmdk_file_shared { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_vmdk_directory_shared @@ -4469,7 +4469,7 @@ sub is_vmdk_directory_shared { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_vm_registered @@ -4511,7 +4511,7 @@ sub is_vm_registered { return 0; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_image_size @@ -4539,7 +4539,7 @@ sub get_image_size { return round($image_size_bytes / 1024 / 1024); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_image_size_bytes @@ -4638,7 +4638,7 @@ sub get_image_size_bytes { return $image_size_bytes; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 does_image_exist @@ -4740,7 +4740,7 @@ sub does_image_exist { return 0; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmdk_parameter_value @@ -4804,7 +4804,7 @@ sub get_vmdk_parameter_value { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_disk_adapter_type @@ -4869,7 +4869,7 @@ sub get_vm_disk_adapter_type { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_virtual_hardware_version @@ -4996,7 +4996,7 @@ sub get_vm_virtual_hardware_version { return $hardware_version; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_os_configuration @@ -5067,7 +5067,7 @@ sub get_vm_os_configuration { return $self->{vm_os_configuration}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_guest_os @@ -5191,7 +5191,7 @@ sub get_vm_guest_os { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_cpu_socket_limit @@ -5213,7 +5213,7 @@ sub get_vm_cpu_socket_limit { return $vm_os_configuration->{"cpu_socket_limit"}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_ethernet_adapter_type @@ -5253,7 +5253,7 @@ sub get_vm_ethernet_adapter_type { return $vm_os_configuration->{"ethernet-virtualDev"}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_ram @@ -5293,7 +5293,7 @@ sub get_vm_ram { return $image_minram_mb; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_cpu_configuration @@ -5402,7 +5402,7 @@ sub get_vm_cpu_configuration { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_cpu_limit @@ -5449,7 +5449,7 @@ sub get_vm_cpu_limit { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 find_datastore_files @@ -5496,7 +5496,7 @@ sub find_datastore_files { return @file_paths_pruned; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_file_paths @@ -5534,7 +5534,7 @@ sub get_vmx_file_paths { return @all_vmx_paths; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmx_info @@ -5701,7 +5701,7 @@ sub get_vmx_info { return $self->{vmx_info}{$vmx_file_path}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_reference_vmx_info @@ -5786,7 +5786,7 @@ sub get_reference_vmx_info { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 delete_vm @@ -5907,7 +5907,7 @@ sub delete_vm { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_additional_vmdk_bytes_required @@ -5956,7 +5956,7 @@ sub get_vm_additional_vmdk_bytes_require return $self->{additional_vmdk_bytes_required}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_additional_vmx_bytes_required @@ -6014,7 +6014,7 @@ sub get_vm_additional_vmx_bytes_required return $self->{additional_vmx_bytes_required}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 copy_vmdk @@ -6438,7 +6438,7 @@ sub copy_vmdk { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 move_vmdk @@ -6730,7 +6730,7 @@ sub move_vmdk { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 check_multiextent @@ -6793,7 +6793,7 @@ sub check_multiextent { return 0; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 power_on @@ -6835,7 +6835,7 @@ sub power_on { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 power_off @@ -6864,7 +6864,7 @@ sub power_off { return $self->api->vm_power_off($vmx_file_path); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 power_reset @@ -6895,7 +6895,7 @@ sub power_reset { return$self->power_on($vmx_file_path); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 power_status @@ -6924,7 +6924,7 @@ sub power_status { return $self->api->get_vm_power_state($vmx_file_path); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 snapshot @@ -6960,7 +6960,7 @@ sub snapshot { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmhost_product_name @@ -7009,7 +7009,7 @@ sub get_vmhost_product_name { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 post_maintenance_action @@ -7049,7 +7049,7 @@ sub post_maintenance_action { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_repository_mounted_on_vmhost @@ -7085,11 +7085,11 @@ sub is_repository_mounted_on_vmhost { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_datastore_info @@ -7135,7 +7135,7 @@ sub get_datastore_info { return $datastore_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_names @@ -7166,7 +7166,7 @@ sub _get_datastore_names { return @datastore_names; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_object @@ -7210,7 +7210,7 @@ sub _get_datastore_object { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_path @@ -7256,7 +7256,7 @@ sub _get_datastore_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_root_normal_path @@ -7299,7 +7299,7 @@ sub _get_datastore_root_normal_path { return $datastore_info->{$datastore_name}{normal_path}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_root_url_path @@ -7342,7 +7342,7 @@ sub _get_datastore_root_url_path { return $datastore_info->{$datastore_name}{url}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_url @@ -7391,7 +7391,7 @@ sub _get_datastore_url { return $url; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_normal_path @@ -7445,7 +7445,7 @@ sub _get_normal_path { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_url_path @@ -7501,7 +7501,7 @@ sub _get_url_path { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_name @@ -7557,7 +7557,7 @@ sub _get_datastore_name { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_parent_directory_normal_path @@ -7605,7 +7605,7 @@ sub _get_parent_directory_normal_path { return $parent_directory_normal_path; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_parent_directory_datastore_path @@ -7648,7 +7648,7 @@ sub _get_parent_directory_datastore_path return normalize_file_path($datastore_path); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_parent_directory_name @@ -7693,7 +7693,7 @@ sub _get_parent_directory_name { return $parent_directory_name; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_file_name @@ -7735,7 +7735,7 @@ sub _get_file_name { return normalize_file_path($file_name); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_file_base_name @@ -7773,7 +7773,7 @@ sub _get_file_base_name { return $file_base_name; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_relative_datastore_path @@ -7832,7 +7832,7 @@ sub _get_relative_datastore_path { return $relative_datastore_path; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_file_path_computer_name @@ -7893,7 +7893,7 @@ sub _get_file_path_computer_name { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _clean_vm_name Parameters : $vm_name @@ -7943,7 +7943,7 @@ sub _clean_vm_name { return $vm_name; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _check_datastore_paths @@ -8084,7 +8084,7 @@ sub _check_datastore_paths { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 configure_vmhost_dedicated_ssh_key @@ -8166,7 +8166,7 @@ sub configure_vmhost_dedicated_ssh_key { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 set_image_repository_permissions @@ -8261,7 +8261,7 @@ sub set_image_repository_permissions { return 0; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 setup_get_menu @@ -8280,7 +8280,7 @@ sub setup_get_menu { }; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 setup_vm_host_operations @@ -8387,7 +8387,7 @@ sub setup_vm_host_operations { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 setup_purge_datastore_images @@ -8639,7 +8639,7 @@ sub setup_purge_datastore_images { return $self->setup_purge_images_helper($datastore_base_path, \@purgable_imagerevisions); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 setup_purge_repository_images @@ -8767,7 +8767,7 @@ sub setup_purge_repository_images { return $self->setup_purge_images_helper($repository_base_path, \@purgable_imagerevisions); } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 setup_purge_images_helper @@ -8896,7 +8896,7 @@ sub setup_purge_images_helper { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_datastore_image_names @@ -8969,7 +8969,7 @@ sub get_datastore_imagerevision_names { return @datastore_imagerevision_names; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 configure_root_ssh_key @@ -9032,7 +9032,7 @@ sub configure_root_ssh_key { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 add_ssh_root_key_to_authorized_keys @@ -9125,7 +9125,7 @@ sub add_ssh_root_key_to_authorized_keys } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 add_ssh_host_key_to_known_hosts @@ -9218,7 +9218,7 @@ sub add_ssh_host_key_to_known_hosts { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 copy_file_to_another_host @@ -9269,7 +9269,7 @@ sub copy_file_to_another_host { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 setup_migrate_vm @@ -9346,7 +9346,7 @@ sub setup_migrate_vm { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 migrate_vm @@ -10143,7 +10143,7 @@ sub migrate_vm { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 migrate_revert_source @@ -10199,7 +10199,7 @@ sub migrate_revert_source { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_datastore_directory_semaphore @@ -10265,7 +10265,7 @@ sub get_datastore_directory_semaphore { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// 1; __END__ Modified: vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm?rev=1793929&r1=1793928&r2=1793929&view=diff ============================================================================== --- vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm (original) +++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm Thu May 4 23:22:17 2017 @@ -36,7 +36,7 @@ VCL::Module::Provisioning::VMware::vSphe =cut -############################################################################## +############################################################################### package VCL::Module::Provisioning::VMware::vSphere_SDK; # Specify the lib path using FindBin @@ -61,13 +61,13 @@ use List::Util qw(max); use VCL::utils; -############################################################################## +############################################################################### =head1 API OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 initialize @@ -188,7 +188,7 @@ sub initialize { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_registered_vms @@ -254,7 +254,7 @@ sub get_registered_vms { return @vmx_paths; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_register @@ -311,7 +311,7 @@ sub vm_register { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_unregister @@ -381,7 +381,7 @@ sub vm_unregister { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_power_on @@ -426,7 +426,7 @@ sub vm_power_on { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_power_off @@ -471,7 +471,7 @@ sub vm_power_off { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_power_state @@ -522,7 +522,7 @@ sub get_vm_power_state { return $return_power_state; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 copy_virtual_disk @@ -1018,7 +1018,7 @@ EOF return $destination_path; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 move_virtual_disk @@ -1118,7 +1118,7 @@ sub move_virtual_disk { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 create_nfs_datastore @@ -1238,7 +1238,7 @@ sub create_nfs_datastore { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_controller_type @@ -1300,7 +1300,7 @@ sub get_virtual_disk_controller_type { return $return_controller_type; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_type @@ -1353,7 +1353,7 @@ sub get_virtual_disk_type { return $disk_type; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_hardware_version @@ -1396,7 +1396,7 @@ sub get_virtual_disk_hardware_version { return $hardware_version; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmware_product_name @@ -1433,7 +1433,7 @@ sub get_vmware_product_name { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vmware_product_version @@ -1469,7 +1469,7 @@ sub get_vmware_product_version { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_restricted @@ -1542,13 +1542,13 @@ sub is_restricted { return 0; } -############################################################################## +############################################################################### =head1 OS FUNCTIONALITY OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 create_directory @@ -1603,7 +1603,7 @@ sub create_directory { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 delete_file @@ -1666,7 +1666,7 @@ sub delete_file { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 copy_file @@ -1733,7 +1733,7 @@ sub copy_file { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 copy_file_to @@ -1796,7 +1796,7 @@ sub copy_file_to { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 copy_file_from @@ -1876,7 +1876,7 @@ sub copy_file_from { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_file_contents @@ -1934,7 +1934,7 @@ sub get_file_contents { return @$output; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 move_file @@ -1999,7 +1999,7 @@ sub move_file { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 file_exists @@ -2061,7 +2061,7 @@ sub file_exists { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_file_size @@ -2124,7 +2124,7 @@ sub get_file_size { return $total_size_bytes; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 find_files @@ -2212,7 +2212,7 @@ sub find_files { return @file_paths; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_total_space @@ -2256,7 +2256,7 @@ sub get_total_space { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_available_space @@ -2299,7 +2299,7 @@ sub get_available_space { return $available_bytes; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_cpu_core_count @@ -2340,7 +2340,7 @@ sub get_cpu_core_count { return $self->{cpu_core_count}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_cpu_speed @@ -2383,7 +2383,7 @@ sub get_cpu_speed { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_total_memory @@ -2422,7 +2422,7 @@ sub get_total_memory { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_license_info @@ -2500,13 +2500,13 @@ sub get_license_info { return $license_info; } -############################################################################## +############################################################################### =head1 PRIVATE OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_service_content @@ -2546,7 +2546,7 @@ sub _get_service_content { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_view @@ -2613,7 +2613,7 @@ sub _get_view { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _find_entity_view @@ -2708,7 +2708,7 @@ sub _find_entity_view { return $views[0]; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _find_entity_views @@ -2819,7 +2819,7 @@ sub _find_entity_views { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_file_info @@ -2976,7 +2976,7 @@ sub _get_file_info { return \%file_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datacenter_view @@ -3031,7 +3031,7 @@ sub _get_datacenter_view { return $self->{datacenter_view_object}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datacenter_name @@ -3052,7 +3052,7 @@ sub _get_datacenter_name { return $datacenter_view_object->{name}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_cluster_view @@ -3088,7 +3088,7 @@ sub _get_cluster_view { return $self->{cluster_view_object}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_host_system_views @@ -3112,7 +3112,7 @@ sub _get_host_system_views { return @host_system_views; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_host_system_view @@ -3169,7 +3169,7 @@ sub _get_host_system_view { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_resource_pool_view @@ -3316,7 +3316,7 @@ sub _get_resource_pool_view { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_vm_folder_view @@ -3396,7 +3396,7 @@ sub _get_vm_folder_view { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_managed_object_path @@ -3473,7 +3473,7 @@ sub _get_managed_object_path { return "$parent_path/$name"; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_parent_managed_object_view @@ -3555,7 +3555,7 @@ sub _get_parent_managed_object_view { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_vm_view @@ -3594,7 +3594,7 @@ sub _get_vm_view { return $self->{vm_view_objects}{$vmx_path}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_virtual_disk_manager_view @@ -3633,7 +3633,7 @@ sub _get_virtual_disk_manager_view { return $self->{virtual_disk_manager_object}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_file_manager_view @@ -3663,7 +3663,7 @@ sub _get_file_manager_view { return $self->{file_manager_object}; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_object @@ -3710,7 +3710,7 @@ sub _get_datastore_object { return; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_info @@ -3787,7 +3787,7 @@ sub _get_datastore_info { return $datastore_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 create_snapshot @@ -3829,7 +3829,7 @@ sub create_snapshot { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 snapshot_exists @@ -3864,7 +3864,7 @@ sub snapshot_exists { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _is_vcenter @@ -3891,7 +3891,7 @@ sub _is_vcenter { return ($api_type =~ /VirtualCenter/) ? 1 : 0; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _mo_ref_to_string @@ -3940,7 +3940,7 @@ sub _mo_ref_to_string { return $return_string; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_host_network_info @@ -4047,7 +4047,7 @@ sub get_host_network_info { return $host_network_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_network_names @@ -4073,7 +4073,7 @@ sub get_network_names { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 add_ethernet_adapter @@ -4211,7 +4211,7 @@ sub add_ethernet_adapter { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_multiextent_disabled @@ -4282,7 +4282,7 @@ sub is_multiextent_disabled { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_virtual_disk_file_paths @@ -4336,7 +4336,7 @@ sub get_vm_virtual_disk_file_paths { return @virtual_disks; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 is_nested_virtualization_supported @@ -4380,7 +4380,7 @@ sub is_nested_virtualization_supported { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 DESTROY @@ -4405,7 +4405,7 @@ sub DESTROY { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// 1; __END__ Modified: vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vmware_cmd.pm URL: http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vmware_cmd.pm?rev=1793929&r1=1793928&r2=1793929&view=diff ============================================================================== --- vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vmware_cmd.pm (original) +++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vmware_cmd.pm Thu May 4 23:22:17 2017 @@ -35,7 +35,7 @@ VCL::Module::Provisioning::VMware::vmwar =cut -############################################################################## +############################################################################### package VCL::Module::Provisioning::VMware::vmware_cmd; # Specify the lib path using FindBin @@ -57,13 +57,13 @@ use diagnostics; use VCL::utils; -############################################################################## +############################################################################### =head1 PRIVATE OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 initialize @@ -115,7 +115,7 @@ sub initialize { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _run_vmware_cmd @@ -152,13 +152,13 @@ sub _run_vmware_cmd { } } -############################################################################## +############################################################################### =head1 API OBJECT METHODS =cut -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_registered_vms @@ -186,7 +186,7 @@ sub get_registered_vms { return @vmx_file_paths; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_vm_power_state @@ -243,7 +243,7 @@ sub get_vm_power_state { return $vm_power_state; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_power_on @@ -310,7 +310,7 @@ sub vm_power_on { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_power_off @@ -377,7 +377,7 @@ sub vm_power_off { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_register @@ -426,7 +426,7 @@ sub vm_register { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 vm_unregister @@ -494,7 +494,7 @@ sub vm_unregister { return 1; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_controller_type @@ -544,7 +544,7 @@ sub get_virtual_disk_controller_type { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_type @@ -596,7 +596,7 @@ sub get_virtual_disk_type { } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 get_virtual_disk_hardware_version @@ -643,7 +643,7 @@ sub get_virtual_disk_hardware_version { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 _get_datastore_info @@ -746,7 +746,7 @@ sub _get_datastore_info { return \%datastore_info; } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// =head2 create_snapshot @@ -787,7 +787,7 @@ sub create_snapshot { } } -#///////////////////////////////////////////////////////////////////////////// +#////////////////////////////////////////////////////////////////////////////// 1; __END__
