All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.vim25.mo.samples.vm.VmNicOp.class Maven / Gradle / Ivy

The newest version!
????2+&com/vmware/vim25/mo/samples/vm/VmNicOpjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis(Lcom/vmware/vim25/mo/samples/vm/VmNicOp;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;DUsage: java VmNicOp      
java/io/PrintStream println(Ljava/lang/String;)V"op - add|remove$2name - NIC name when remove; Network name when add
&'(exit(I)V*#com/vmware/vim25/mo/ServiceInstance,java/net/URL
+. 
)016(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
)345
getRootFolder()Lcom/vmware/vim25/mo/Folder;7&com/vmware/vim25/mo/InventoryNavigator
69:&(Lcom/vmware/vim25/mo/ManagedEntity;)V<VirtualMachine
6>?@searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;B"com/vmware/vim25/mo/VirtualMachineDjava/lang/StringBuilderFNo VM 
C.
CIJKappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;M found
COPQtoString()Ljava/lang/String;
)STUgetServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
WYX$com/vmware/vim25/mo/ServerConnectionZlogout\)com/vmware/vim25/VirtualMachineConfigSpec
[	
_`agetNICDeviceConfigSpect(Lcom/vmware/vim25/mo/VirtualMachine;Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/VirtualDeviceConfigSpec;c(com/vmware/vim25/VirtualDeviceConfigSpec
[efgsetDeviceChange.([Lcom/vmware/vim25/VirtualDeviceConfigSpec;)V
AijkreconfigVM_TaskG(Lcom/vmware/vim25/VirtualMachineConfigSpec;)Lcom/vmware/vim25/mo/Task;
moncom/vmware/vim25/mo/TaskpQ	waitForMersuccesstDone with NIC for VM:vFailed with NIC for VM:args[Ljava/lang/String;vmnameLjava/lang/String;opnamesi%Lcom/vmware/vim25/mo/ServiceInstance;
rootFolderLcom/vmware/vim25/mo/Folder;vm$Lcom/vmware/vim25/mo/VirtualMachine;vmConfigSpec+Lcom/vmware/vim25/VirtualMachineConfigSpec;nicSpec*Lcom/vmware/vim25/VirtualDeviceConfigSpec;resulttaskLcom/vmware/vim25/mo/Task;
StackMapTablex?java/lang/String?com/vmware/vim25/mo/Folder
b	
A???	getConfig-()Lcom/vmware/vim25/VirtualMachineConfigInfo;?add
????equalsIgnoreCase(Ljava/lang/String;)Z
???doesNetworkNameExist9(Lcom/vmware/vim25/mo/VirtualMachine;Ljava/lang/String;)Z	???1com/vmware/vim25/VirtualDeviceConfigSpecOperation??3Lcom/vmware/vim25/VirtualDeviceConfigSpecOperation;
b???setOperation6(Lcom/vmware/vim25/VirtualDeviceConfigSpecOperation;)V?com/vmware/vim25/VirtualPCNet32
?	?6com/vmware/vim25/VirtualEthernetCardNetworkBackingInfo
?	
??? 
setDeviceName?	generated
???$com/vmware/vim25/VirtualEthernetCard? setAddressType
????
setBacking.(Lcom/vmware/vim25/VirtualDeviceBackingInfo;)V
???(setKey
b???	setDevice#(Lcom/vmware/vim25/VirtualDevice;)V?remove
???)com/vmware/vim25/VirtualMachineConfigInfo??getHardware$()Lcom/vmware/vim25/VirtualHardware;
??? com/vmware/vim25/VirtualHardware??	getDevice#()[Lcom/vmware/vim25/VirtualDevice;	????
???com/vmware/vim25/VirtualDevice??
getDeviceInfo ()Lcom/vmware/vim25/Description;
???com/vmware/vim25/Description?QgetLabelvmConfigInfo+Lcom/vmware/vim25/VirtualMachineConfigInfo;nic&Lcom/vmware/vim25/VirtualEthernetCard;
nicBacking8Lcom/vmware/vim25/VirtualEthernetCardNetworkBackingInfo;vds![Lcom/vmware/vim25/VirtualDevice;iI?
A???
getRuntime.()Lcom/vmware/vim25/VirtualMachineRuntimeInfo;
A???getEnvironmentBrowser*()Lcom/vmware/vim25/mo/EnvironmentBrowser;
???*com/vmware/vim25/VirtualMachineRuntimeInfo??getHost+()Lcom/vmware/vim25/ManagedObjectReference;?com/vmware/vim25/mo/HostSystem
AS
???R(Lcom/vmware/vim25/mo/ServerConnection;Lcom/vmware/vim25/ManagedObjectReference;)V
??&com/vmware/vim25/mo/EnvironmentBrowserqueryConfigTargetA(Lcom/vmware/vim25/mo/HostSystem;)Lcom/vmware/vim25/ConfigTarget;
com/vmware/vim25/ConfigTarget
getNetwork/()[Lcom/vmware/vim25/VirtualMachineNetworkInfo;

*com/vmware/vim25/VirtualMachineNetworkInfo
#()Lcom/vmware/vim25/NetworkSummary;
com/vmware/vim25/NetworkSummaryisAccessible()Z
QgetNamenetName
vmRuntimeInfo,Lcom/vmware/vim25/VirtualMachineRuntimeInfo;
envBrowser(Lcom/vmware/vim25/mo/EnvironmentBrowser;hmor)Lcom/vmware/vim25/ManagedObjectReference;host Lcom/vmware/vim25/mo/HostSystem;cfgLcom/vmware/vim25/ConfigTarget;nets-[Lcom/vmware/vim25/VirtualMachineNetworkInfo;
netSummary!Lcom/vmware/vim25/NetworkSummary;''com/vmware/vim25/ManagedObjectReference#
SourceFileVmNicOp.java!/*??
<
	U*?????!??#??%*2L*2M*2N?)Y?+Y*2?-*2*2?/:?2:?6Y?8;+?=?A:?'??CYE?G+?HL?H?N??R?V??[Y?]:,-?^::	?!?bYS?d?h:

?l:		q???CYs?G+?H?N????CYu?G+?H?N??R?V?
?%@BDEG#I'J+K/M3NDMIPPQTRVQYR_QdTiV?W?X?\?[?`?_?b?c?e?f?e?g?h?k?m?q?tupwx'?yz+?{z/?|zI?}~P??d????n???e???b?z	???
?-#?i????)?A?7[b?`a???bY??N*??:?+???F*,???>-??????Y??:??Y??:,?????????-??-??+???M?Ŷ?:-?Ѷ?6?.2??? 2?Ӷ?,???-2??-???????
z|{}??&?/?6?8?>?E?L?R?X?Z?c?k?m?n?q?t?z???????????????\	????{z?|z??????/+??8"??m@??w6????Zb???'???O
f*??M*??N,??:??Y*????:-??:?:6?&2?	:		??	?+???????????
>??
?????'?.?4?>?F?R?T?d?f
f??fza
\VG'? !.8"#13??>$%	?'?4	A???&?(?)*




© 2015 - 2024 Weber Informatics LLC | Privacy Policy