/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_device✔stringEthernet device name e.g. eth0
type✔enumPossible values: nio_generic_ethernet
LinuxEthernet ^^^^^^^^^^^^^^^^ Linux Ethernet Network Input/Output .. raw:: html
NameMandatoryTypeDescription
ethernet_device✔stringEthernet device name e.g. eth0
type✔enumPossible values: nio_linux_ethernet
NULL ^^^^^^^^^^^^^^^^ NULL Network Input/Output .. raw:: html
NameMandatoryTypeDescription
type✔enumPossible values: nio_null
TAP ^^^^^^^^^^^^^^^^ TAP Network Input/Output .. raw:: html
NameMandatoryTypeDescription
tap_device✔stringTAP device name e.g. tap0
type✔enumPossible values: nio_tap
UDP ^^^^^^^^^^^^^^^^ UDP Network Input/Output .. raw:: html
NameMandatoryTypeDescription
lport✔integerLocal port
rhost✔stringRemote host
rport✔integerRemote port
type✔enumPossible values: nio_udp
UNIX ^^^^^^^^^^^^^^^^ UNIX Network Input/Output .. raw:: html
NameMandatoryTypeDescription
local_file✔stringpath to the UNIX socket file (local)
remote_file✔stringpath to the UNIX socket file (remote)
type✔enumPossible values: nio_unix
VDE ^^^^^^^^^^^^^^^^ VDE Network Input/Output .. raw:: html
NameMandatoryTypeDescription
control_file✔stringpath to the VDE control file
local_file✔stringpath to the VDE control file
type✔enumPossible values: nio_vde
Body +++++++++ .. raw:: html
NameMandatoryTypeDescription
id✔integerVPCS device instance ID
nio✔UDP, Ethernet, LinuxEthernet, TAP, UNIX, VDE, NULLNetwork Input/Output
port✔integerPort number
port_id✔integerUnique port identifier for the VPCS instance
Sample session *************** .. literalinclude:: examples/post_vpcsvpcsidnio.txt