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

com.vmware.vim25.mo.samples.network.AddNIC.class Maven / Gradle / Ivy

The newest version!
????2?*com/vmware/vim25/mo/samples/network/AddNICjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis,Lcom/vmware/vim25/mo/samples/network/AddNIC;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;.Usage: java AddNIC   
java/io/PrintStream println(Ljava/lang/String;)V"#com/vmware/vim25/mo/ServiceInstance$java/net/URL
#& 
!()6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V+dev.acme.com-ViMaster PortGroup/ViMaster Switch
!123
getRootFolder()Lcom/vmware/vim25/mo/Folder;5&com/vmware/vim25/mo/InventoryNavigator
478&(Lcom/vmware/vim25/mo/ManagedEntity;)V:
HostSystem
4<=>searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;@com/vmware/vim25/mo/HostSystem
?BCDgetHostNetworkSystem)()Lcom/vmware/vim25/mo/HostNetworkSystem;F&com/vmware/vim25/HostVirtualSwitchSpec
E	
EIJKsetNumPorts(I)V
MON%com/vmware/vim25/mo/HostNetworkSystemPQaddVirtualSwitch=(Ljava/lang/String;Lcom/vmware/vim25/HostVirtualSwitchSpec;)VS"com/vmware/vim25/HostPortGroupSpec
R	
RVW setName
RYZK	setVlanId
R\] setVswitchName_"com/vmware/vim25/HostNetworkPolicy
^	
Rbcd	setPolicy'(Lcom/vmware/vim25/HostNetworkPolicy;)V
MfghaddPortGroup'(Lcom/vmware/vim25/HostPortGroupSpec;)Vj#com/vmware/vim25/HostVirtualNicSpec
i	m00:50:56:7d:5e:0b
iop setMacrcom/vmware/vim25/HostIpConfig
q	
quvwsetDhcp(Z)Vy
10.20.143.204
q{| setIpAddress~
255.255.252.0
q?? 
setSubnetMask
i???setIp"(Lcom/vmware/vim25/HostIpConfig;)V?VMKernel
M???
addVirtualNicK(Ljava/lang/String;Lcom/vmware/vim25/HostVirtualNicSpec;)Ljava/lang/String;
!???getServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
???$com/vmware/vim25/mo/ServerConnection?logoutargs[Ljava/lang/String;si%Lcom/vmware/vim25/mo/ServiceInstance;hostnameLjava/lang/String;
portGroupName
switchName
rootFolderLcom/vmware/vim25/mo/Folder;host Lcom/vmware/vim25/mo/HostSystem;hns'Lcom/vmware/vim25/mo/HostNetworkSystem;spec(Lcom/vmware/vim25/HostVirtualSwitchSpec;hpgs$Lcom/vmware/vim25/HostPortGroupSpec;hvns%Lcom/vmware/vim25/HostVirtualNicSpec;hicLcom/vmware/vim25/HostIpConfig;result
StackMapTable
SourceFileAddNIC.java!/*??
1
	(
?*??????!Y?#Y*2?%*2*2?'L*M,N.:+?0::?4Y?69,?;??:?A:?EY?G:?H?L?RY?T:		-?U	?X	?[	?^Y?`?a	?e?iY?k:

l?n?qY?s:?tx?z}?
???
??:??+?????
?%579<=$<(?+@.A2C8D;E?FAEDFJEOHVK_LfMoPxQ~R?S?T?U?X?Y?Z?[?\?]?^?_?`?b?c?
???(???+???.???2???8???;???V???_???xu??	?F??
?6????????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy