/vpcs/{vpcs_id}/nio ------------------------------ .. contents:: POST /vpcs/{vpcs_id}/nio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADD NIO to a VPCS Parameters ********** - **vpcs_id**: Id of VPCS instance Response status codes ************************** - **201**: Success of creation of NIO - **409**: Conflict Input ******* Types +++++++++ Ethernet ^^^^^^^^^^^^^^^^ Generic Ethernet Network Input/Output .. raw:: html
NameMandatoryTypeDescription
ethernet_devicestringEthernet device name e.g. eth0
typeenumPossible values: nio_generic_ethernet
LinuxEthernet ^^^^^^^^^^^^^^^^ Linux Ethernet Network Input/Output .. raw:: html
NameMandatoryTypeDescription
ethernet_devicestringEthernet device name e.g. eth0
typeenumPossible values: nio_linux_ethernet
NULL ^^^^^^^^^^^^^^^^ NULL Network Input/Output .. raw:: html
NameMandatoryTypeDescription
typeenumPossible values: nio_null
TAP ^^^^^^^^^^^^^^^^ TAP Network Input/Output .. raw:: html
NameMandatoryTypeDescription
tap_devicestringTAP device name e.g. tap0
typeenumPossible values: nio_tap
UDP ^^^^^^^^^^^^^^^^ UDP Network Input/Output .. raw:: html
NameMandatoryTypeDescription
lportintegerLocal port
rhoststringRemote host
rportintegerRemote port
typeenumPossible values: nio_udp
UNIX ^^^^^^^^^^^^^^^^ UNIX Network Input/Output .. raw:: html
NameMandatoryTypeDescription
local_filestringpath to the UNIX socket file (local)
remote_filestringpath to the UNIX socket file (remote)
typeenumPossible values: nio_unix
VDE ^^^^^^^^^^^^^^^^ VDE Network Input/Output .. raw:: html
NameMandatoryTypeDescription
control_filestringpath to the VDE control file
local_filestringpath to the VDE control file
typeenumPossible values: nio_vde
Body +++++++++ .. raw:: html
NameMandatoryTypeDescription
idintegerVPCS device instance ID
nioUDP, Ethernet, LinuxEthernet, TAP, UNIX, VDE, NULLNetwork Input/Output
portintegerPort number
port_idintegerUnique port identifier for the VPCS instance
Sample session *************** .. literalinclude:: examples/post_vpcsvpcsidnio.txt