diff --git a/cyborgclient/osc/v2/accelerator_request.py b/cyborgclient/osc/v2/accelerator_request.py index 51e7265..18aac00 100644 --- a/cyborgclient/osc/v2/accelerator_request.py +++ b/cyborgclient/osc/v2/accelerator_request.py @@ -249,6 +249,13 @@ class BindAcceleratorRequest(command.ShowOne): metavar="", help=_("Bind device_rp_uuid of the accelerator request") ) + parser.add_argument( + "project_id", + metavar="", + help=_("Bind current user's project_id to the accelerator " + "request. The field requires at least " + "``--os-accelerator-api-version 2.1``.") + ) return parser diff --git a/releasenotes/notes/support-project-id-931fc61c818da675.yaml b/releasenotes/notes/support-project-id-931fc61c818da675.yaml new file mode 100644 index 0000000..a81a23f --- /dev/null +++ b/releasenotes/notes/support-project-id-931fc61c818da675.yaml @@ -0,0 +1,7 @@ +--- +features: + - | + Add support for microversion 2.1, when apply arq patch, ``project_id`` of + current user can be saved in arq, which can forbidden other user to + operate the arq, like this: + ``openstack --os-accelerator-api-version 2.1 accelerator arq bind --fileds project_id``