Hi all,
I try to correctly collect NAT and firewall settings and recreate them in a new vApp using vCloud PHP SDK.
I tried to gather those settings from:
VMware_VCloud_API_FirewallServiceType::getFirewallRule and VMware_VCloud_API_NatServiceType::getNatRule for NAT.
and set the them back to a newly vApp.
I tried everything but was not able to prepare and set them.
Always got the following error: "Invalid NAT rule containing vAppScopedVmId toApp and nic index 1. Either the VM is not connected to the network or it is configured with DHCP addressing mode. NAT rule cannot be configured for nics with DHCP addressing mode."
Could somebody help me to solve this riddle?
A good example is really appreciated!
Thanks in advance!
--
Vladimir