File 0001-Add-z-VM-mechanism-driver-definitions-to-support-IBM.patch of Package openstack-neutron

From 359657c2afae64e1fbd75439431ed5d3d0ed3b67 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dirk@dmllr.de>
Date: Fri, 17 Jul 2015 10:31:00 +0200
Subject: [PATCH] Add z/VM mechanism driver definitions to support IBM z/VM
 agent

z/VM is a hypervisor running on IBM System Z. This patch
adds the definitions needed for binding ports and defining
the ZVM agent identifier.

The mechanism driver is part of a separate networking-zvm repository,
but we still need those definitions in neutron to ensure that
they will stay unique and do not get changed.

This is just adding the definitions.

Implements: blueprint neutron-zvm-ml2

Change-Id: I38365e841438438c1f508782d8a44fc8659f25a7
---
 neutron/common/constants.py        | 1 +
 neutron/extensions/portbindings.py | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

Index: neutron-2015.1.2.dev37/neutron/common/constants.py
===================================================================
--- neutron-2015.1.2.dev37.orig/neutron/common/constants.py
+++ neutron-2015.1.2.dev37/neutron/common/constants.py
@@ -105,6 +105,7 @@ AGENT_TYPE_METERING = 'Metering agent'
 AGENT_TYPE_METADATA = 'Metadata agent'
 AGENT_TYPE_SDNVE = 'IBM SDN-VE agent'
 AGENT_TYPE_NIC_SWITCH = 'NIC Switch agent'
+AGENT_TYPE_ZVM = 'zVM agent'
 L2_AGENT_TOPIC = 'N/A'
 
 PAGINATION_INFINITE = 'infinite'
Index: neutron-2015.1.2.dev37/neutron/extensions/portbindings.py
===================================================================
--- neutron-2015.1.2.dev37.orig/neutron/extensions/portbindings.py
+++ neutron-2015.1.2.dev37/neutron/extensions/portbindings.py
@@ -64,12 +64,13 @@ VIF_TYPE_MLNX_HOSTDEV = 'hostdev'
 VIF_TYPE_HW_VEB = 'hw_veb'
 VIF_TYPE_VROUTER = 'vrouter'
 VIF_TYPE_OTHER = 'other'
+VIF_TYPE_ZVM = 'zvm'
 VIF_TYPES = [VIF_TYPE_UNBOUND, VIF_TYPE_BINDING_FAILED, VIF_TYPE_OVS,
              VIF_TYPE_IVS, VIF_TYPE_BRIDGE, VIF_TYPE_802_QBG,
              VIF_TYPE_802_QBH, VIF_TYPE_HYPERV, VIF_TYPE_MIDONET,
              VIF_TYPE_MLNX_DIRECT, VIF_TYPE_MLNX_HOSTDEV, VIF_TYPE_HW_VEB,
              VIF_TYPE_DVS, VIF_TYPE_OTHER, VIF_TYPE_DISTRIBUTED,
-             VIF_TYPE_VROUTER]
+             VIF_TYPE_VROUTER, VIF_TYPE_ZVM]
 
 VNIC_NORMAL = 'normal'
 VNIC_DIRECT = 'direct'
openSUSE Build Service is sponsored by