1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-26 19:29:58 -05:00

update vcenter README files

This commit is contained in:
Tianhao He 2017-01-24 17:29:00 -08:00
parent f831791ef3
commit 72a5072887
3 changed files with 2 additions and 48 deletions

View File

@ -2,7 +2,7 @@ This directory contains samples for the vSphere infrastructure and virtual machi
* Run all samples under vcenter folder using main.py in samples.vsphere.vcenter.setup package. Please see the [README](../../../README.md#running-a-complex-sample) for more details. * Run all samples under vcenter folder using main.py in samples.vsphere.vcenter.setup package. Please see the [README](../../../README.md#running-a-complex-sample) for more details.
* Run an individual sample in an existing environment. You can either pass the environment parameters through command line arguments or specify them in setup.py in the setup package. * Run an individual sample in an existing environment. You can either pass the environment parameters through command line arguments or specify them in testbed.py in the setup package.
For example, to run the create_default_vm sample in the vsphere.samples.vcenter.vm.create package: For example, to run the create_default_vm sample in the vsphere.samples.vcenter.vm.create package:

View File

@ -21,25 +21,3 @@ This directory contains samples for vCenter virtual machine APIs:
* Configure Memory settings of a virtual machine - hardware/memory.py * Configure Memory settings of a virtual machine - hardware/memory.py
* Configure Parallel ports for a virtual machine - hardware/parallel.py * Configure Parallel ports for a virtual machine - hardware/parallel.py
* Configure Serial ports for a virtual machine - hardware/serial.py * Configure Serial ports for a virtual machine - hardware/serial.py
You have two options to run samples inside this package:
1. Run the whole sample suite which contains all vcenter samples using main.py
in samples.vsphere.vcenter.setup package.
Please see the README in the setup package for detailed steps.
2. Run an individual sample in an existing environment.
You can either pass the testbed settings through command line
arguments or specify them in setup.py in the setup package.
For example, to run the create_default_vm sample in the samples.vsphere.vcenter.vm.create package:
* $ cd /path/to/vsphere-automation-sdk-python-samples/bin
* Run the sample with the testbed settings specified in setup.py in a Linux machine:
$ ./run_sample.sh ../samples/vsphere/vcenter/vm/create/create_default_vm.py -v
* Or specify the credentials using command line parameters:
$ ./run_sample.sh ../samples/vsphere/vcenter/vm/create/create_default_vm.py -s <server> -u <username> -p <password> -v

View File

@ -1,24 +0,0 @@
This directory contains the samples for the vCenter VM hardware APIs.
You have two options to run samples inside this package:
1. Run the whole test suite contains all vcenter samples using main.py in
setup package. Please see README in setup package for detailed steps.
2. Run individual sample on existing environment. You can either pass the
environment parameters through command line arguments or specify them in
setup.py in setup package. TODO: have property file in each test folder.
For example, to run memory sample in vcenter.vm.hardware package:
* Navigate to bin folder.
* To run the sample with settings specified in setup.py
in linux machine:
$ ./run_sample.sh ../samples/vcenter/vm/hardware/memory.py
* Or specify the credentials via command line input:
$ ./run_sample.sh ../samples/vcenter/vm/hardware/memory.py \
-s <server> -u <username> -p <password> -n <vm_name>