network: Add support for vnic-type vdpa

Extend 'port create' to support vinc-type vdpa as introduced by neutron
in [1].

[1] https://review.opendev.org/c/openstack/neutron/+/760047

Change-Id: I635c5269f4e8fc55f234c98e85fced87b39fce81
This commit is contained in:
Sean Mooney 2021-03-03 20:20:00 +00:00 committed by Stephen Finucane
parent 86bca18b74
commit 6f82165979
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.