Summary:
Removes a device.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
Device to remove. |
|
|
|
|
|
Returns:
OK/Error.
Description:
To manage network devices for Virtuozzo-based systems, use the implementation of this call in the vzaenvm
interface.
The call allows to remove VLAN adapters and network bridges from the Hardware Node that were added to it using the add
call or the Virtuozzo vznetcfg
command-line utility. To delete a device, specify its ID using the id
element of the input structure. When deleting a VLAN adapter, use net_vlanType
as a data type for the net_device
input parameter. When deleting a bridge, use net_bridgeType
.
If a bridge has LAN or VLAN adapters plugged into it, the adapters will be disconnected from it and then the bridge will be deleted.
To retrieve a list of network devices from the Hardware Node, use the list
call.
Example 1:
Removing the eth1.5
VLAN adapter.
Input
<packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/networkm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.0.0">
<target>vzanetworkm</target>
<data>
<vzanetworkm>
<del>
<net_device xsi:type="ns2:net_vlanType">
<ns2:id>eth1.5</ns2:id>
</net_device>
</del>
</vzanetworkm>
</data>
</packet>
Example 2:
Removing the vzbridge5
network bridge.
<packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/networkm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4.0.0">
<target>vzanetworkm</target>
<data>
<vzanetworkm>
<del>
<net_device xsi:type="ns2:net_bridgeType">
<ns2:id>vzbridge5</ns2:id>
</net_device>
</del>
</vzanetworkm>
</data>
</packet>