diff options
| author | Jan Gutter <jan.gutter@netronome.com> | 2017-07-13 21:52:26 +0200 |
|---|---|---|
| committer | Jan Gutter <jan.gutter@netronome.com> | 2017-07-19 14:41:04 +0200 |
| commit | cf5dfa77e17d273aaebca21a0b44902d587fac04 (patch) | |
| tree | a52ae22165d0e8746011b711b793289461177c76 | |
| parent | 894df67c67c688ea55bbdd2b91bc2a786c6f680b (diff) | |
| download | python-openstackclient-cf5dfa77e17d273aaebca21a0b44902d587fac04.tar.gz | |
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 <jan.gutter@netronome.com>
| -rw-r--r-- | doc/source/cli/command-objects/port.rst | 8 | ||||
| -rw-r--r-- | openstackclient/network/v2/port.py | 5 | ||||
| -rw-r--r-- | releasenotes/notes/add-virtio-forwarder-vnic-type-bad939c6a868b9e9.yaml | 9 |
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. |
