From 27b030fb5cf3f779a5d3af2d9081dc22950f5233 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Fri, 20 Jul 2018 17:12:25 +0800 Subject: Modify openvswitch installation JIRA: COMPASS-604 1. Keep linux bridges when ODL scenario 2. degrade ovs to 2.8.0 for 2.9.0 has issue with ODL Change-Id: I4433fb1bb4e2d64c7220296ca167f32e4a4246be Signed-off-by: Harry Huang --- .../ansible/roles/setup-openvswitch/tasks/odl.yml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 deploy/adapters/ansible/roles/setup-openvswitch/tasks/odl.yml (limited to 'deploy/adapters/ansible/roles/setup-openvswitch/tasks/odl.yml') diff --git a/deploy/adapters/ansible/roles/setup-openvswitch/tasks/odl.yml b/deploy/adapters/ansible/roles/setup-openvswitch/tasks/odl.yml new file mode 100644 index 00000000..9c96a46a --- /dev/null +++ b/deploy/adapters/ansible/roles/setup-openvswitch/tasks/odl.yml @@ -0,0 +1,25 @@ +############################################################################# +# Copyright (c) 2017-2018 HUAWEI TECHNOLOGIES CO.,LTD and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################# +--- +- name: uninstall ovs for odl + apt: + name: "{{ item.name }}" + state: absent + with_items: "{{ ovs_pkgs }}" + +- name: download ovs pkgs + get_url: + url: "{{ item.url }}" + dest: "/tmp/{{ item.package }}" + with_items: "{{ ovs_pkgs }}" + +- name: install ovs pkgs + shell: + dpkg -i "/tmp/{{ item.package }}" + with_items: "{{ ovs_pkgs }}" -- cgit 1.2.3-korg