From d565f110938f46224ada92c3d68ca416f05635b6 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Tue, 19 Oct 2021 08:37:56 +0200 Subject: [PATCH] Add support for 'remote-managed' vnic type The 'remote-managed' vnic type will be used to support off-path SmartNIC port binding with OVN, and it is expected that the user will create ports with this vnic type as part of the workflow. As such the client must allow users to interact with this vnic type and this patch addresses that. Partial-Bug: #1932154 Depends-On: I496db96ea40da3bee5b81bcee1edc79e1f46b541 Change-Id: I566c3da594d757dd62edcf7f9ea3077db8d6b11a --- openstackclient/network/v2/port.py | 5 +++-- .../add-remote-managed-vnic-type-4fc540b47427c37f.yaml | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/add-remote-managed-vnic-type-4fc540b47427c37f.yaml diff --git a/openstackclient/network/v2/port.py b/openstackclient/network/v2/port.py index b55e729fbf..078e0982e4 100644 --- a/openstackclient/network/v2/port.py +++ b/openstackclient/network/v2/port.py @@ -259,11 +259,12 @@ def _add_updatable_args(parser): metavar='', choices=( 'direct', 'direct-physical', 'macvtap', - 'normal', 'baremetal', 'virtio-forwarder', 'vdpa' + 'normal', 'baremetal', 'virtio-forwarder', 'vdpa', 'remote-managed' ), help=_( "VNIC type for this port (direct | direct-physical | " - "macvtap | normal | baremetal | virtio-forwarder | vdpa, " + "macvtap | normal | baremetal | virtio-forwarder | vdpa | " + "remote-managed, " "default: normal)" ), ) diff --git a/releasenotes/notes/add-remote-managed-vnic-type-4fc540b47427c37f.yaml b/releasenotes/notes/add-remote-managed-vnic-type-4fc540b47427c37f.yaml new file mode 100644 index 0000000000..79c4f7b62c --- /dev/null +++ b/releasenotes/notes/add-remote-managed-vnic-type-4fc540b47427c37f.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + Support for the ``remote-managed`` VNIC type has been added and can now be + passed to the ``--vnic-type`` option when used in conjunction with the + ``port create`` and ``port set`` commands.