Add Virtual NIC operation for the VIS adapter
The Add Virtual NIC operation updates the configuration of a host network to add a virtual NIC.
The following table describes the elements for this request.
Adapter request elements for the Add Virtual NIC operation
Element | Definition | Required |
|---|---|---|
<operation-type> | Defines the type of the operation: Host | No |
<operation-name> | Defines the name of the operation: Add_Virtual_NIC | Yes |
<soap-url> | Specifies the URL for the remote SOAP service running on the VMware VirtualCenter | No |
<transport> | Specifies the transport protocol for the message | No |
<user-name> | Specifies the user name that is used for HTTP basic authentication on the VMware Virtual Center | No |
<password> | Specifies the password corresponding to <user-name> | Conditional; required if <user-name> is specified |
<parameters> | Contains the elements required to execute the operation | Yes |
<host-system> | DNS name of the host on the network to which the virtual NIC is to be added | Yes |
<vnic-list> | Contains the list of virtual switches network adapters configured for use by the host operating system network adapter | Yes |
The following code sample shows a sample adapter request for the Add Virtual NICC operation.
Sample adapter request for the Add Virtual NIC operation
<operation-type>Host</operation-type>
<operation-name>Add_Virtual_NIC</operation-name>
<soap-url></soap-url>
<transport></transport>
<username></username>
<password></password>
<parameters>
<host-system>xyz.bmc.com</host-system>
<config>
<vnic-list>
<vnic>
<portgroup>Virtual Machine Network 2</portgroup>
<spec>
<ip>
<dhcp>false</dhcp>
<ip-address>127.21.10.10</ip-address>
<subnet-mask>255.255.255.0</subnet-mask>
</ip>
<mac></mac>
</spec>
</vnic>
</vnic-list>
</config>
</parameters>
</vmware-infrastructure-request>
The following code sample shows the response for the sample Add Virtual NIC operation.
Sample adapter response for the Add Virtual NIC operation
<metadata>
<status>success</status>
</metadata>
<AddVirtualNICResponse>
<returnval>
<vnicDevice>portgroup7</vnicDevice>
</returnval>
</AddVirtualNICResponse>
</vmware-infrastructure-response>
The following table describes the response elements.
Adapter response elements for the Add Virtual NIC operation
Element | Definition |
|---|---|
<vnicDevice> | The Virtual NIC name added to the Port group |