|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.HardwareItem
com.vmware.vcloud.sdk.VirtualNetworkCard
public class VirtualNetworkCard
Helper class to access the Virtual NetworkCard Resource in vCloud API.
RASDType| Constructor Summary | |
|---|---|
VirtualNetworkCard(Integer nicId,
Boolean isConnected,
String networkName,
Boolean isPrimaryNetworkConnection,
IpAddressAllocationModeType ipAddressingMode,
String ipAddress)
Creating a Virtual Network card of default E1000 adapter type. |
|
VirtualNetworkCard(Integer nicId,
Boolean isConnected,
String networkName,
Boolean isPrimaryNetworkConnection,
IpAddressAllocationModeType ipAddressingMode,
String ipAddress,
NetworkAdapterType adapterType)
Creating a Virtual Network card of defined adapter type |
|
VirtualNetworkCard(com.vmware.vcloud.api.rest.schema.ovf.RASDType virtualNetworkCardItem)
Constructor to create a virtualNetworkCard |
|
| Method Summary | |
|---|---|
String |
getIpAddress()
Get the Ip Address |
String |
getIpAddressingMode()
Check the IP adressing mode of the network adapter |
String |
getMacAddress()
Retrieve the mac address of the nic. |
String |
getNetwork()
Retrieve the nics network name. |
boolean |
isConnected()
Check if this network adapter is connected |
boolean |
isPrimaryNetworkConnection()
Check if this is the primary network connection |
void |
resetMacAddress()
Resetting the mac address and then perform the update network cards VM.updateNetworkCards(List). |
void |
updateIpAddress(String ipAddress)
Updating the ip address for the nic in manual ip mode. |
void |
updateNetwork(String networkName)
Updating network connected to the nic. |
| Methods inherited from class com.vmware.vcloud.sdk.HardwareItem |
|---|
getItemResource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VirtualNetworkCard(com.vmware.vcloud.api.rest.schema.ovf.RASDType virtualNetworkCardItem)
virtualNetworkCardItem -
public VirtualNetworkCard(Integer nicId,
Boolean isConnected,
String networkName,
Boolean isPrimaryNetworkConnection,
IpAddressAllocationModeType ipAddressingMode,
String ipAddress)
nicId - Integer - specifying the nic id. There can be only 10 nics attached to a
vm. Ex: You can specify index from 0-9 or 1-10.isConnected - Boolean - is this nic connected or not.networkName - String - Name of the network to which you want to connect this vapp. If
you do not want to connect any network you can specify null or "".isPrimaryNetworkConnection - Boolean - is this nic a primary network connection for the vm. there can
be only 1 primary network connection for a vm.ipAddressingMode - IpAddressAllocationModeTypeipAddress - String - valid ip addressVM.updateNetworkCards(List)
public VirtualNetworkCard(Integer nicId,
Boolean isConnected,
String networkName,
Boolean isPrimaryNetworkConnection,
IpAddressAllocationModeType ipAddressingMode,
String ipAddress,
NetworkAdapterType adapterType)
nicId - Integer - specifying the nic id. There can be only 10 nics attached to a
vm. Ex: You can specify index from 0-9 or 1-10.isConnected - Boolean - is this nic connected or not.networkName - String - Name of the network to which you want to connect this vapp. If
you do not want to connect any network you can specify null or "".isPrimaryNetworkConnection - Boolean - is this nic a primary network connection for the vm. there can
be only 1 primary network connection for a vm.ipAddressingMode - IpAddressAllocationModeTypeipAddress - String - valid ip addressadapterType - NetworkAdapterType - valid RASD network adapter sub typeVM.updateNetworkCards(List)| Method Detail |
|---|
public void resetMacAddress()
VM.updateNetworkCards(List).
VM.updateNetworkCards(List)public String getMacAddress()
public String getIpAddress()
throws VCloudException
VCloudException
public void updateIpAddress(String ipAddress)
throws VCloudException
VM.updateNetworkCards(List)
ipAddress -
VCloudException
public void updateNetwork(String networkName)
throws VCloudException
VM.updateNetworkCards(List)
networkName -
VCloudException
public String getNetwork()
throws VCloudException
VCloudException
VCloudException
public boolean isPrimaryNetworkConnection()
throws VCloudException
VCloudException
public String getIpAddressingMode()
throws VCloudException
VCloudException
public boolean isConnected()
throws VCloudException
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||