første xml update
[virt-orchestrator.git] / vFLOWER / content / Actions / com.vmware.library.vc.networking / getVirtualEthernetCardDvPortgroupBackingInfo.action.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <dunes-script-module name="getVirtualEthernetCardDvPortgroupBackingInfo" result-type="Any" api-version="3.1.0" id="ab9f91c2-4a4b-4b7c-b7b1-aca3b32ff087" version="0.1.1" allowed-operations="fv">
3     <description>The virtual Ethernet card backing class. (uses Distributed Virtual Portgroup as input instead of VC:Network object)</description>
4
5     <param n="deviceName" t="string">The name of the device on the host system.</param>
6
7     <param n="network" t="VC:DistributedVirtualPortgroup">Reference to the network managed object to which this backing applies. This is not used during configuration.</param>
8
9     <script encoded="false">
10 if (deviceName == null) {
11         deviceName = network.name;
12 }
13 var connection = new VcDistributedVirtualSwitchPortConnection();
14 connection.PortgroupKey = network.id;
15 connection.SwitchUuid = network.config.distributedVirtualSwitch.uuid;
16 backing = new VcVirtualEthernetCardDistributedVirtualPortBackingInfo();
17 backing.Port = connection;
18
19 return backing;
20     </script>
21 </dunes-script-module>