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:
parent
86bca18b74
commit
6f82165979
@ -255,11 +255,15 @@ def _add_updatable_args(parser):
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--vnic-type',
|
'--vnic-type',
|
||||||
metavar='<vnic-type>',
|
metavar='<vnic-type>',
|
||||||
choices=['direct', 'direct-physical', 'macvtap',
|
choices=(
|
||||||
'normal', 'baremetal', 'virtio-forwarder'],
|
'direct', 'direct-physical', 'macvtap',
|
||||||
help=_("VNIC type for this port (direct | direct-physical | "
|
'normal', 'baremetal', 'virtio-forwarder', 'vdpa'
|
||||||
"macvtap | normal | baremetal | virtio-forwarder, "
|
),
|
||||||
"default: normal)")
|
help=_(
|
||||||
|
"VNIC type for this port (direct | direct-physical | "
|
||||||
|
"macvtap | normal | baremetal | virtio-forwarder | vdpa, "
|
||||||
|
"default: normal)"
|
||||||
|
),
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--host',
|
'--host',
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The ``port create --vnic-type`` option now accepts a ``vdpa`` value.
|
Loading…
x
Reference in New Issue
Block a user