summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-20 17:15:53 +0000
committerGerrit Code Review <review@openstack.org>2017-07-20 17:15:53 +0000
commite954fe4eedabe13f89b8e4c120db7f7195e71aae (patch)
treed4b3af91615dfb679d6ed023840d7f7628a7238a
parentac8cac4b63590e3b583faee88b6c481f2f3e9d9a (diff)
parentcf5dfa77e17d273aaebca21a0b44902d587fac04 (diff)
downloadpython-openstackclient-e954fe4eedabe13f89b8e4c120db7f7195e71aae.tar.gz
Merge "Add support for virtio-forwarder VNIC type"
-rw-r--r--doc/source/cli/command-objects/port.rst8
-rw-r--r--openstackclient/network/v2/port.py5
-rw-r--r--releasenotes/notes/add-virtio-forwarder-vnic-type-bad939c6a868b9e9.yaml9
3 files changed, 16 insertions, 6 deletions
diff --git a/doc/source/cli/command-objects/port.rst b/doc/source/cli/command-objects/port.rst
index 2102288b..37814a95 100644
--- a/doc/source/cli/command-objects/port.rst
+++ b/doc/source/cli/command-objects/port.rst
@@ -60,8 +60,8 @@ Create new port
.. option:: --vnic-type <vnic-type>
- VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal,
- default: normal)
+ VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal |
+ virtio-forwarder, default: normal)
.. option:: --binding-profile <binding-profile>
@@ -262,8 +262,8 @@ Set port properties
.. option:: --vnic-type <vnic-type>
- VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal,
- default: normal)
+ VNIC type for this port (direct | direct-physical | macvtap | normal | baremetal |
+ virtio-forwarder, default: normal)
.. option:: --binding-profile <binding-profile>
diff --git a/openstackclient/network/v2/port.py b/openstackclient/network/v2/port.py
index 1409a194..d7f197e0 100644
--- a/openstackclient/network/v2/port.py
+++ b/openstackclient/network/v2/port.py
@@ -248,9 +248,10 @@ def _add_updatable_args(parser):
'--vnic-type',
metavar='<vnic-type>',
choices=['direct', 'direct-physical', 'macvtap',
- 'normal', 'baremetal'],
+ 'normal', 'baremetal', 'virtio-forwarder'],
help=_("VNIC type for this port (direct | direct-physical | "
- "macvtap | normal | baremetal, default: normal)")
+ "macvtap | normal | baremetal | virtio-forwarder, "
+ " default: normal)")
)
# NOTE(dtroyer): --host-id is deprecated in Mar 2016. Do not
# remove before 3.x release or Mar 2017.
diff --git a/releasenotes/notes/add-virtio-forwarder-vnic-type-bad939c6a868b9e9.yaml b/releasenotes/notes/add-virtio-forwarder-vnic-type-bad939c6a868b9e9.yaml
new file mode 100644
index 00000000..b98b7c5d
--- /dev/null
+++ b/releasenotes/notes/add-virtio-forwarder-vnic-type-bad939c6a868b9e9.yaml
@@ -0,0 +1,9 @@
+---
+features:
+ - |
+ The ``virtio-forwarder`` VNIC type has been added as another option for
+ setting the ``--vnic-type`` property on the ``port set`` and
+ ``port create`` commands. This requests a low-latency virtio port inside
+ the instance, likely backed by hardware acceleration. Currently the
+ Agilio OVS external plugin provides support for this, with support from
+ other vendors following soon.