Add a new network device to the VM
put/vm.add-net
Request body
Example request
{
"tap": "tap",
"host_mac": "host_mac",
"num_queues": 6,
"offload_ufo": true,
"queue_size": 1,
"offload_csum": true,
"ip": "192.168.249.1",
"rate_limiter_config": {
"ops": {
"size": 0,
"one_time_burst": 0,
"refill_time": 0
},
"bandwidth": {
"size": 0,
"one_time_burst": 0,
"refill_time": 0
}
},
"mac": "mac",
"mtu": 3,
"pci_segment": 2,
"offload_tso": true,
"vhost_mode": "Client",
"iommu": false,
"vhost_socket": "vhost_socket",
"vhost_user": false,
"id": "id",
"mask": "255.255.255.0"
}Response
The new device was successfully added to the VM instance.
Example response
{
"bdf": "bdf",
"id": "id"
}