]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Re-adds VIF_TYPE_VHOST_USER to portbindings extension
authorSean Mooney <sean.k.mooney@intel.com>
Thu, 17 Sep 2015 12:31:13 +0000 (13:31 +0100)
committerSean Mooney <sean.k.mooney@intel.com>
Thu, 17 Sep 2015 12:54:53 +0000 (13:54 +0100)
- 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

index 8bbe82384e558a87e31914145c7c53ded57b8c04..67338c37409a36060799861b587fdf97437f75cf 100644 (file)
@@ -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'