From bac90b87bdef2e2599d57573293ee167fa046201 Mon Sep 17 00:00:00 2001
From: Dan Ardelean <dardelean@cloudbasesolutions.com>
Date: Fri, 27 Oct 2017 12:29:55 +0300
Subject: [PATCH] HyperV should not disable tunneling

HyperV support disables tunneling for entire environment. This
should not be the case since tunneling can be used for KVM in mix
env. In this case, HyperV VMs can only use flat/vlan networks.

Change-Id: I6237c42918442625acd946b7455d236612ba19cc
Closes-Bug: #1725417
---
 ansible/roles/neutron/templates/ml2_conf.ini.j2 | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/ansible/roles/neutron/templates/ml2_conf.ini.j2 b/ansible/roles/neutron/templates/ml2_conf.ini.j2
index 5e02d6061a..d64cceffe1 100644
--- a/ansible/roles/neutron/templates/ml2_conf.ini.j2
+++ b/ansible/roles/neutron/templates/ml2_conf.ini.j2
@@ -44,11 +44,9 @@ flat_networks = *
 flat_networks = {% for bridge in neutron_bridge_name.split(',') %}physnet{{ loop.index0 + 1 }}{% if not loop.last %},{% endif %}{% endfor %}
 {% endif %}
 
-{% if not enable_hyperv | bool %}
 [ml2_type_vxlan]
 vni_ranges = 1:1000
 vxlan_group = 239.1.1.1
-{% endif %}
 
 [securitygroup]
 {% if neutron_plugin_agent == "openvswitch" or neutron_plugin_agent == "opendaylight" %}
@@ -58,12 +56,10 @@ firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
 {% endif %}
 
 {% if neutron_plugin_agent == "openvswitch" or neutron_plugin_agent == "opendaylight" %}
-{% if not enable_hyperv | bool %}
 [agent]
 tunnel_types = vxlan
 l2_population = true
 arp_responder = true
-{% endif %}
 
 {% if enable_neutron_dvr | bool %}
 enable_distributed_routing = True
@@ -86,11 +82,9 @@ integration_bridge = br-int-{{ item }}
 [linux_bridge]
 physical_interface_mappings = physnet1:{{ neutron_external_interface }}
 
-{% if not enable_hyperv | bool %}
 [vxlan]
 l2_population = true
 {% endif %}
-{% endif %}
 
 {% if inventory_hostname in groups["network"] or inventory_hostname in groups["compute"] %}
 local_ip = {{ tunnel_interface_address }}