UKCloud / maloja

A Python toolkit for use with your VMware cloud. You can survey existing infrastructure and automate the task of building VApps.
Apache License 2.0
2 stars 0 forks source link

Prove RecomposeVApp works on Skeleton #7

Closed tundish closed 8 years ago

tundish commented 8 years ago
  xml = """<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
             <RecomposeVAppParams
              xmlns="http://www.vmware.com/vcloud/v1.5"
              xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"
              xmlns:environment_1="http://schemas.dmtf.org/ovf/environment/1">
              <Description> "api deployed vm" </Description>
                  <SourcedItem sourceDelete="false">
                      <Source href="%s"/>
                  </SourcedItem>
              <AllEULAsAccepted>true</AllEULAsAccepted>
              </RecomposeVAppParams>""" % (self.vapp_template)
tundish commented 8 years ago
<RecomposeVAppParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:environment_1="http://schemas.dmtf.org/ovf/environment/1">  
    <SourcedItem sourceDelete="false">  
<Source href="https://10.75.119.142/api/vAppTemplate/vm-6c9b3bf8-00c2-48ec-9825-9198d50d0812" name="test2"/>  
 <InstantiationParams>  
<NetworkConnectionSection ovf:required="false">   
<ovf:Info>Specifies the available VM network connections</ovf:Info>  
<NetworkConnection network="ONet_OSS" needsCustomization="true">  
<NetworkConnectionIndex>0</NetworkConnectionIndex>  
<IpAddress>192.168.0.23</IpAddress>  
<IsConnected>false</IsConnected>  
<IpAddressAllocationMode>MANUAL</IpAddressAllocationMode>  
</NetworkConnection>  
 </NetworkConnectionSection>   
</InstantiationParams>  
 <NetworkAssignment innerNetwork="PXE BOOT" containerNetwork="ONet_OSS"/>  
   </SourcedItem>  
</RecomposeVAppParams>