From 6878db9f1cac62fc07e84722e1fac347e379578a Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Thu, 17 Sep 2015 13:31:13 +0100 Subject: [PATCH] Re-adds VIF_TYPE_VHOST_USER to portbindings extension - This change re-adds the definition of the VIF_TYPE_VHOST_USER constant to the neuton portbinding extension. - This change enables reuse of a single common VIF_TYPE_VHOST_USER constant between all agents and mechanism drivers that wish to support the qemu vhost-user interface type. Change-Id: If92afb03f91a9092657e5b50c058f258952bafd8 Partial-Bug: #1477611 --- neutron/extensions/portbindings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neutron/extensions/portbindings.py b/neutron/extensions/portbindings.py index 8bbe82384..67338c374 100644 --- a/neutron/extensions/portbindings.py +++ b/neutron/extensions/portbindings.py @@ -63,6 +63,11 @@ VHOST_USER_SOCKET = 'vhostuser_socket' # method should be used when binding the # vhost-user vif. VHOST_USER_OVS_PLUG = 'vhostuser_ovs_plug' +# - vhost-user: The vhost-user interface type is a standard virtio interface +# provided by qemu 2.1+. This constant defines the neutron side +# of the vif binding type to provide a common definition +# to enable reuse in multiple agents and drivers. +VIF_TYPE_VHOST_USER = 'vhostuser' VIF_TYPE_UNBOUND = 'unbound' VIF_TYPE_BINDING_FAILED = 'binding_failed' -- 2.45.2