From 72a5072887bf9cf39e9350cc6e0596fba2d2443d Mon Sep 17 00:00:00 2001 From: Tianhao He Date: Tue, 24 Jan 2017 17:29:00 -0800 Subject: [PATCH] update vcenter README files --- samples/vsphere/vcenter/README.md | 2 +- samples/vsphere/vcenter/vm/README.md | 24 +------------------ samples/vsphere/vcenter/vm/hardware/README.md | 24 ------------------- 3 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 samples/vsphere/vcenter/vm/hardware/README.md diff --git a/samples/vsphere/vcenter/README.md b/samples/vsphere/vcenter/README.md index 43073b91..41c8386a 100644 --- a/samples/vsphere/vcenter/README.md +++ b/samples/vsphere/vcenter/README.md @@ -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 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: diff --git a/samples/vsphere/vcenter/vm/README.md b/samples/vsphere/vcenter/vm/README.md index 0e46ca78..1556a388 100644 --- a/samples/vsphere/vcenter/vm/README.md +++ b/samples/vsphere/vcenter/vm/README.md @@ -20,26 +20,4 @@ This directory contains samples for vCenter virtual machine APIs: * Configure Floppy settings for a virtual machine - hardware/floppy.py * Configure Memory settings of a virtual machine - hardware/memory.py * Configure Parallel ports for a virtual machine - hardware/parallel.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 + * Configure Serial ports for a virtual machine - hardware/serial.py \ No newline at end of file diff --git a/samples/vsphere/vcenter/vm/hardware/README.md b/samples/vsphere/vcenter/vm/hardware/README.md deleted file mode 100644 index cc686e24..00000000 --- a/samples/vsphere/vcenter/vm/hardware/README.md +++ /dev/null @@ -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 -u -p -n \ No newline at end of file