Merge "network: Add support for vnic-type vdpa"

This commit is contained in:
Zuul 2021-03-31 18:40:32 +00:00 committed by Gerrit Code Review
commit 8e3dde03f9
2 changed files with 13 additions and 5 deletions

View File

@ -255,11 +255,15 @@ def _add_updatable_args(parser):
parser.add_argument(
'--vnic-type',
metavar='<vnic-type>',
choices=['direct', 'direct-physical', 'macvtap',
'normal', 'baremetal', 'virtio-forwarder'],
help=_("VNIC type for this port (direct | direct-physical | "
"macvtap | normal | baremetal | virtio-forwarder, "
"default: normal)")
choices=(
'direct', 'direct-physical', 'macvtap',
'normal', 'baremetal', 'virtio-forwarder', 'vdpa'
),
help=_(
"VNIC type for this port (direct | direct-physical | "
"macvtap | normal | baremetal | virtio-forwarder | vdpa, "
"default: normal)"
),
)
parser.add_argument(
'--host',

View File

@ -0,0 +1,4 @@
---
features:
- |
The ``port create --vnic-type`` option now accepts a ``vdpa`` value.