Realize the support of instance to usb device, that is, add, delete, change and check the function of usb device.
1. show the host's usb device:expand the interface of nova- API, and provide an API entry.For convenience, you can add an action to trigger the interface by calling /os-hypervisors
2: attach_usb: call API interface, input vendor and product values, call compute.Manager. Attach_usb method, call driver.py to modify conf file to increase vendor and product values, call nova/objects/ instance_
3: detach_usb: with attach_usb.
4: show_usb: show the usb that has been mounted to the virtual machine,call API interface, input server_id, call nova/objects/ instance_
Note:
Rebuild, resize, delete, migrate/
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- wang
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
API:
1./os-hyperviso
2./servers/
{
"usbAttachment":
{
"vendor": "***"
"product": "***"
}
}
3./servers/
4./servers/