From cf5dfa77e17d273aaebca21a0b44902d587fac04 Mon Sep 17 00:00:00 2001 From: Jan Gutter Date: Thu, 13 Jul 2017 21:52:26 +0200 Subject: [PATCH] Add support for virtio-forwarder VNIC type * This patch adds support for the virtio-forwarder VNIC type. * 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. * Corresponding neutron-lib change: https://review.openstack.org/#/c/483530/ * Nova spec for Agilio OVS enablement: https://specs.openstack.org/openstack/nova-specs/specs/pike/approved/netronome-smartnic-enablement.html Change-Id: Idbc8071afe95f8594b40e2f93e5411e7185f946f Signed-off-by: Jan Gutter --- doc/source/cli/command-objects/port.rst | 8 ++++---- openstackclient/network/v2/port.py | 5 +++-- .../add-virtio-forwarder-vnic-type-bad939c6a868b9e9.yaml | 9 +++++++++ 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 releasenotes/notes/add-virtio-forwarder-vnic-type-bad939c6a868b9e9.yaml diff --git a/doc/source/cli/command-objects/port.rst b/doc/source/cli/command-objects/port.rst index 2102288bd..37814a959 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 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 @@ -262,8 +262,8 @@ Set port properties .. option:: --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 diff --git a/openstackclient/network/v2/port.py b/openstackclient/network/v2/port.py index 1409a194b..d7f197e01 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='', 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 000000000..b98b7c5da --- /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.