Skip to content

Commit 8e3dde0

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "network: Add support for vnic-type vdpa"
2 parents 23e7495 + 6f82165 commit 8e3dde0

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

openstackclient/network/v2/port.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,15 @@ def _add_updatable_args(parser):
255255
parser.add_argument(
256256
'--vnic-type',
257257
metavar='<vnic-type>',
258-
choices=['direct', 'direct-physical', 'macvtap',
259-
'normal', 'baremetal', 'virtio-forwarder'],
260-
help=_("VNIC type for this port (direct | direct-physical | "
261-
"macvtap | normal | baremetal | virtio-forwarder, "
262-
"default: normal)")
258+
choices=(
259+
'direct', 'direct-physical', 'macvtap',
260+
'normal', 'baremetal', 'virtio-forwarder', 'vdpa'
261+
),
262+
help=_(
263+
"VNIC type for this port (direct | direct-physical | "
264+
"macvtap | normal | baremetal | virtio-forwarder | vdpa, "
265+
"default: normal)"
266+
),
263267
)
264268
parser.add_argument(
265269
'--host',
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
features:
3+
- |
4+
The ``port create --vnic-type`` option now accepts a ``vdpa`` value.

0 commit comments

Comments
 (0)