Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

Get/Set NAT and Firewall rules

$
0
0

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


Viewing all articles
Browse latest Browse all 2039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>