Hello,
I'm trying to recompose a deployed vapp and change the RetainNetInfoAcrossDeployments from false to true. But it doesn't work.
I use a php code like the following one to prepare the Configuration section.
$obj = new VMware_VCloud_API_NetworkConfigurationType() ;
$obj->setFenceMode($fenceMode) ;
$obj->setParentNetwork($parentNetwork) ;
$obj->setIpScope($ipScope) ;
$obj->setFeatures($features) ;
$obj->setRetainNetInfoAcrossDeployments(1) ;
and it return an xml code like the following one:
<NetworkConfigSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="application/vnd.vmware.vcloud.networkConfigSection+xml">
<ovf:Info>This is about networkConfigSection</ovf:Info>
<NetworkConfig networkName="test">
<Description>A good configuration description</Description>
<Configuration>
<FenceMode>natRouted</FenceMode>
<RetainNetInfoAcrossDeployments>true</RetainNetInfoAcrossDeployments>
<Features>
<FirewallService>
<IsEnabled>true</IsEnabled>
</FirewallService>
<NatService>
<IsEnabled>true</IsEnabled>
<NatType>portForwarding</NatType>
<Policy>allowTraffic</Policy>
</NatService>
</Features>
</Configuration>
<IsDeployed>false</IsDeployed>
</NetworkConfig>
</NetworkConfigSection>
I use that object with $sdkVapp->modifyNetworkConfigSettings() method to apply the changes.
and only the RetainNetInfoAcrossDeployments parameters does not change. The only way to change the value is to do it using the vcloud director GUI.
Any Idea where I made a mistake ? OR is there a problem with PHP SDK or the Vclouc API ?
thanks,
Yann