første xml update
[virt-orchestrator.git] / vFLOWER / content / Actions / com.vmware.library.vc.vm.network / isSupportedNic.action.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <dunes-script-module name="isSupportedNic" result-type="boolean" api-version="3.1.0" id="1a602835-21c5-4420-baa0-52a5559edf87" version="0.1.2" allowed-operations="fv">
3     <description>Checks whether the given object is instance of supported Network interface controller</description>
4
5     <param n="nic" t="Any">Object to test</param>
6
7     <script encoded="false">
8 return (nic instanceof VcVirtualE1000
9     || nic instanceof VcVirtualE1000e
10     || nic instanceof VcVirtualPCNet32
11     || nic instanceof VcVirtualVmxnet
12     || nic instanceof VcVirtualVmxnet2
13     || nic instanceof VcVirtualVmxnet3
14     || nic instanceof VcVirtualSriovEthernetCard);
15     </script>
16 </dunes-script-module>