1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-22 09:39:58 -05:00
Commit Graph

163 Commits

Author SHA1 Message Date
Kyle Ruddy
b8554584c2 Remove DHCP Column from Output
Not every logical switch contains DHCP IP Pool information. Removing
the DHCP column from being output.

Resolving the Following Error:
(VMWonAWSDemo) kruddy-m02:vsphere-automation-sdk-python kyleruddy$
python3 ./samples/vmc/networks/logical_network_crud.py -r $refreshtoken
-o $orgid -s $sddcid --network-name 'Python-SDK-LogicalNetwork' -c

# Example: Add a logical network to the compute gateway
  Compute Gateway ID: edge-2

# New logical network "Python-SDK-LogicalNetwork" is added

# Example: List all logical networks
Traceback (most recent call last):
  File "./samples/vmc/networks/logical_network_crud.py", line 208, in
<module>
    main()
  File "./samples/vmc/networks/logical_network_crud.py", line 201, in
main
    logical_network_crud.get_logical_network()
  File "./samples/vmc/networks/logical_network_crud.py", line 134, in
get_logical_network
    self.print_output(networks)
  File "./samples/vmc/networks/logical_network_crud.py", line 192, in
print_output
    network.dhcp_configs.ip_pools[0].ip_range])
AttributeError: 'NoneType' object has no attribute 'ip_pools'
2018-03-21 17:34:28 -04:00
Tianhao He
2ab8622b32
Merge pull request #49 from tianhao64/master
Add exception handling for sddc samples to get detailed error message
2018-03-14 10:03:56 -07:00
Tianhao He
08028b54dd Add exception handling for sddc samples to get detailed error message
Signed-off-by: Tianhao He <het@vmware.com>
2018-03-13 17:35:12 -07:00
Tianhao He
5347716f83
Merge pull request #48 from tianhao64/master
VMware Cloud on AWS M3 release
2018-03-08 14:44:51 -08:00
Tianhao He
aae89a9af0 VMware Cloud on AWS M3 release
* Support VMware Cloud on AWS Networking APIs and add a few samples.
* Added vsphere_client module to simplify login and API invocation.
* Modified existing samples to use vsphere_client.
* Update on vm template APIs.

Signed-off-by: Tianhao He <het@vmware.com>
2018-03-08 13:15:46 -08:00
Tianhao He
8febd6904f remove empty tasks folder 2018-01-09 14:07:03 -08:00
Tianhao He
4dfae31677
Merge pull request #41 from tianhao64/master
Add hok token support for sso.py
2017-12-08 10:39:54 -08:00
Tianhao He
9db63a9577 Add hok token support for sso.py
Make the sso.py python3 compatible.
Add acquire token by token support.
Add hok token support.

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-12-08 10:35:56 -08:00
Tianhao He
1cd0d5dd39
Remove --no-cache from the install cmd
The option is not needed. Also it seems the option is not working on Ubuntu.
2017-12-05 23:55:42 -08:00
Tianhao He
fd6fff995a
Merge pull request #40 from tianhao64/master
Add VMware Cloud on AWS APIs
2017-12-05 16:37:40 -08:00
Tianhao He
775dbeffa9 Add VMware Cloud on AWS APIs
Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-12-05 16:24:30 -08:00
Tianhao He
32ce0831ed Update vapiconnect.py 2017-10-20 09:23:36 -07:00
Tianhao He
29bd63ba91 Update vapiconnect.py 2017-10-19 18:39:34 -07:00
Tianhao He
d2c2d2280e Update README.md 2017-10-09 16:22:08 -07:00
Steve Trefethen
22efbcd382 Fix API Reference link which is currently "not found". 2017-08-30 11:34:34 -07:00
Tianhao He
755a79f560 Merge pull request #34 from tianhao64/master
Updated bindings for vSphere 6.6.1 release
2017-08-29 15:30:56 -07:00
Tianhao He
a3e9688fdc Updated bindings for vSphere 6.6.1 release
1. Updated bindings for vSphere 6.6.1 release for VMware Cloud 1.1
2. Update password and remove IP from testbed.py
3. Package vSphere Automation runtime and bindings in wheel format.
4. Update travis test commend.

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-08-29 15:27:52 -07:00
Tianhao He
8503fcd9a0 Merge pull request #30 from tianhao64/master
Improve sample code
2017-08-18 04:49:14 -07:00
Tianhao He
abe05ece27 Improve sample code
1. Make sample code more consistent
2. Improve input parameter parser

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-08-18 04:46:18 -07:00
Tianhao He
47e6c610c4 Merge pull request #29 from tianhao64/master
Remove run_sample.sh and add a password arg for main.py
2017-08-17 11:39:01 -07:00
Pavan Bidkar
44222e1dee Fixed argument name in main.py to vcenterpassword, which was differing with build_arg_parser() from setup_cli.py. Added Argument in help text (#3)
Signed-off-by: Pavan Bidkar pbidkar@vmware.com

Signed-off-by: pgbidkar <pbidkar@vmware.com>
2017-08-17 11:23:35 -07:00
Tianhao He
be279fb622 add vc password parameter 2017-08-17 00:27:34 -07:00
Tianhao He
ade24a262f remove bin directory 2017-08-16 22:40:55 -07:00
Tianhao He
58b044feec Update default vc password 2017-08-16 13:54:58 -07:00
Tianhao He
bdda4be0dd Merge pull request #28 from tianhao64/master
update sample template and doc
2017-08-08 11:58:55 -07:00
Tianhao He
1e090f252f update sample template and doc
Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-08-08 11:58:05 -07:00
Tianhao He
2d232fd3a2 Merge pull request #27 from pgbidkar/master
Sample to demonstrate Cert Verification while connecting to vCenter s…
2017-07-18 08:43:46 -07:00
pgbidkar
77204240db Modified cert_path argument help message to align with requests package help message for cert_path argument
Signed-off-by: Pavan Bidkar pbidkar@vmware.com

Sample to demonstrate Cert Verification while connecting to vCenter server Updated README.md for common package description

Signed-off-by: pgbidkar <pbidkar@vmware.com>

Sample to demonstrate Cert Verification while connecting to vCenter server
Signed-off-by: Pavan Bidkar pbidkar@vmware.com

Signed-off-by: pgbidkar <pbidkar@vmware.com>

Modified cert_path argument help message to align with requests package help message for cert_path argument
Signed-off-by: Pavan Bidkar pbidkar@vmware.com

Signed-off-by: pgbidkar <pbidkar@vmware.com>
2017-07-18 12:51:23 +05:30
Tianhao He
a94fff411e Update sample template (#25)
Use service manager to connect to both vAPI and VIM services

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-06-29 15:19:40 -07:00
Tianhao He
44a785b456 Add sample template file (#24)
Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-06-22 15:14:36 -07:00
Pavan Bidkar
2415e4eef6 Sample is not failing if Cluster Name argument passed is not Valid.Assering Cluster presense in setup method instead of execution method (#23)
Signed-off-by: Pavan Bidkar <pbidkar@vmware.com>

Sample is not failing with Clustername passed is not Valid.
Validating Cluster presence in setup method instead of execution

Signed-off-by: Pavan Bidkar <pbidkar@vmware.com>
2017-05-15 09:14:03 -07:00
Tianhao He
8fd515441d Merge pull request #22 from pgbidkar/master
SSO samples are failing with 6.0 vCenter server. com.vmware.vapi.vcen…
2017-05-05 08:10:55 -07:00
PavanBidkar
f4c82a3d07 SSO samples are failing with 6.0 vCenter server. com.vmware.vapi.vcenter_client.DataCenter module is not present in 6.0. Removed Datacenter listing after connection is successful
Signed-off-by: PavanBidkar <pbidkar@vmware.com>

SSO samples are failing with 6.0 vCenter server. com.vmware.vapi.vcenter_client.DataCenter module is not present in 6.0. Removed Datacenter listing after connection is successful
Added Create & Delete for Tag and Tag Category to verify connection is successful.

Signed-off-by: PavanBidkar <pbidkar@vmware.com>

SSO samples are failing with 6.0 vCenter server. com.vmware.vapi.vcenter_client.DataCenter module is not present in 6.0. Removed Datacenter listing after connection is successful
Added Create & Delete Tag Category to verify connection is successful. Removed Tag Creation and Deletion to have basic API call instead of multiple calls.

Signed-off-by: PavanBidkar <pbidkar@vmware.com>

SSO samples are failing with 6.0 vCenter server. com.vmware.vapi.vcenter_client.DataCenter module is not present in 6.0. Removed Datacenter listing after connection is successful
Added Create & Delete Tag Category to verify connection is successful. Removed Tag Creation and Deletion to have basic API call instead of multiple calls.

Signed-off-by: PavanBidkar <pbidkar@vmware.com>
2017-05-05 12:18:45 +05:30
Tianhao He
8c2281403a Merge pull request #19 from pgbidkar/master
Adding New Sample to Delete User specified Virtual Machine
2017-05-02 23:42:26 -07:00
PavanBidkar
e96de924f8 Adding New Sample to Delete User specified Virtual Machine
Signed-off-by: Pavan Bidkar <pbidkar@vmware.com>

Fixed Formatting issue

Signed-off-by: Pavan Bidkar <pbidkar@vmware.com>

Fixed PEP8 suggested format Issue.Added new line at the end of file

Signed-off-by: PavanBidkar <pbidkar@vmware.com>
2017-05-02 13:56:23 +05:30
Tianhao He
fd9b86bb20 Merge pull request #21 from tianhao64/master
update travis-ci file
2017-04-28 15:01:26 -07:00
Tianhao He
c03e86be5a update travis-ci file
Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-04-28 14:58:42 -07:00
Tianhao He
46b7c426cc Merge pull request #18 from pgbidkar/master
Sample was failing if wsdl file location is passed as ../samples/vsph…
2017-04-17 10:10:13 -07:00
PavanBidkar
61f3e72771 Sample was failing if wsdl file location is passed as ../samples/vsphere/sso/wsdl/lookupservice.wsdl.
Modified Samples to convert passed wsdl file path to abspath
Added If condition to check wsdlpath is passed

Signed-off-by: PavanBidkar <pbidkar@vmware.com>

Modified if conition, removed optional braces

Signed-off-by: PavanBidkar <pbidkar@vmware.com>
2017-04-17 13:48:38 +05:30
Tianhao He
55691f29d2 Merge pull request #17 from liboshi/master
Fix typo error, remove whitespace.
2017-04-06 10:09:29 -07:00
Boshi Li
0978900696 Fix typo error, remove whitespace.
Signed-off-by: Boshi Li <boshil@vmware.com>
2017-04-06 16:15:46 +08:00
Tianhao He
61bd21f9ce Merge pull request #15 from kmruddy/master
Update configuration inputs
2017-04-03 12:56:38 -07:00
Kyle Ruddy
bd1eaf1ed1 Update configuration inputs
Update the configuration inputs to point to the “VM” designated values.

Signed-off-by: Kyle Ruddy <kmruddy@gmail.com>
2017-04-03 14:39:00 -04:00
Tianhao He
91c837eb69 Merge pull request #14 from tianhao64/master
Remove the output file before creating the parallel port
2017-03-24 20:49:24 -07:00
Tianhao He
ca53102df4 Remove the output file before creating the parallel port
Need to make the same fix as the one in #13 for parallel port.
Also move the cleanup_backends to the main sample run to make
sure the output file is always deleted.

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-03-24 20:21:27 -07:00
Tianhao He
0bafaf380c Merge pull request #13 from tianhao64/master
Remove the output file before creating new serial port
2017-03-24 15:37:46 -07:00
Tianhao He
43c25d0b61 Remove the output file before creating new serial port
When re-run the sample without cleanup previous port the power
on peration may time out due to the output file exist already.
Remove the file before creating new port and add notes to
help avoiding this.

Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-03-24 15:30:02 -07:00
Tianhao He
6847135029 Merge pull request #12 from vmware/tianhao64-patch-1
Remove source from doc package.
2017-03-22 12:57:59 -07:00
Tianhao He
44ca8169ab Remove source from doc package.
Signed-off-by: Tianhao He <tianhao64@users.noreply.github.com>
2017-03-22 12:48:44 -07:00
Tianhao He
4693db2a39 Merge pull request #6 from pgbidkar/master
Adding ESXPASSWORD as commandline argument. ESXPassword cannot be har…
2017-03-20 12:43:47 -07:00