From a5b370130c9dfa738b86d010a6fef2936be909e5 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 15 Mar 2018 12:14:52 +0100 Subject: [PATCH] Set new parameter in OVS to support ODL Oxygen ODL oxygen provides a new framework to configure tunnels called autotunnels. SFC requires tunnels to be flow-based and to arrange that in the autotunnel framework, the OVS internal parameter of-tunnel must be set to true. That parameter is not read in previous ODL versions. Therefore, this patch does not break backwards compatibility. Change-Id: Iec6a741d1e1081da547fe6fc0a67dd723e714d60 Signed-off-by: Manuel Buil --- .../neutron-opendaylight-support-453dc9324eafaae7.yaml | 1 + tasks/providers/setup_ovs_opendaylight.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/releasenotes/notes/neutron-opendaylight-support-453dc9324eafaae7.yaml b/releasenotes/notes/neutron-opendaylight-support-453dc9324eafaae7.yaml index 597a20e9..cfa88bae 100644 --- a/releasenotes/notes/neutron-opendaylight-support-453dc9324eafaae7.yaml +++ b/releasenotes/notes/neutron-opendaylight-support-453dc9324eafaae7.yaml @@ -5,3 +5,4 @@ features: You can set the ``neutron_plugin_type`` to ``ml2.opendaylight`` to utilize this code path. The usage of ``OpenDaylight`` is currently experimental. + Two versions are currently supported: Nitrogen and Oxygen. diff --git a/tasks/providers/setup_ovs_opendaylight.yml b/tasks/providers/setup_ovs_opendaylight.yml index 32d66b47..dee1c1d4 100644 --- a/tasks/providers/setup_ovs_opendaylight.yml +++ b/tasks/providers/setup_ovs_opendaylight.yml @@ -44,3 +44,9 @@ when: - neutron_provider_networks.network_mappings is defined - (neutron_plugin_base == 'odl-router' or neutron_plugin_base == 'odl-router_v2') + +- name: Set the of-tunnel to true + command: "ovs-vsctl set Open_vSwitch . external_ids:of-tunnel=true" + when: + - neutron_plugin_base == 'networking_sfc.services.sfc.plugin.SfcPlugin' +