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

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

The newest version!
????2?4com/vmware/vim25/mo/samples/network/AddVirtualSwitchjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis6Lcom/vmware/vim25/mo/samples/network/AddVirtualSwitch;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;5Usage: java AddVirtualNic   
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+sjin-dev1.eng.vmware.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;?java/lang/StringBuilder?Successful created : 
?&
????append-(Ljava/lang/String;)Ljava/lang/StringBuilder;
????toString()Ljava/lang/String;args[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
SourceFileAddVirtualSwitch.java!/*??
3
	8
?*??????!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}?
???
??:?????Y?????????
?%79;>?$>(A+B.C2E8F;G?HAGDHJGOJVM_NfOoRxS~T?U?V?W?Z?[?\?]?^?_?`?a?b?d?e?
???(???+???.???2???8???;???V???_???x???	?V??
?F??? ?????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy