aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/odl_cluster/tasks/03_02_openvswitch_connect_opendaylight.yml
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-05-27 14:11:17 +0800
committerYifei Xue <xueyifei@huawei.com>2017-06-02 17:13:56 +0800
commitf9d5aacba1ce6a2fdc3f5ef71a82550cec3812ae (patch)
tree2f6718fbb224a4fb8ab22cbc235ae55cf6c9f537 /deploy/adapters/ansible/roles/odl_cluster/tasks/03_02_openvswitch_connect_opendaylight.yml
parent02603a05c4d3fe59876030dc914cab019193d4e6 (diff)
Add opendaylight sfc support for compass installer
JIRA: COMPASS-483 As odl sfc has been supported by other installers, we compass project has also support odl boron and tacker now. So we are going to support odl sfc+tacker in Danube release. This patch includes: 1. Add ovs-common and ovs-dkms 2. Install networking-sfc for neutron and odl 3. Configure odl sfc in neutron ml2 4. Add sfc related features in odl 5. Add sfc related repo making scripts 6. Add odl_sfc switch both in compass4nfv and compass-core Change-Id: If37a9e190c3095d771ffab61777a927b6d94ea9e Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/odl_cluster/tasks/03_02_openvswitch_connect_opendaylight.yml')
-rw-r--r--deploy/adapters/ansible/roles/odl_cluster/tasks/03_02_openvswitch_connect_opendaylight.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/03_02_openvswitch_connect_opendaylight.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/03_02_openvswitch_connect_opendaylight.yml
index 2a9622f9..56326563 100644
--- a/deploy/adapters/ansible/roles/odl_cluster/tasks/03_02_openvswitch_connect_opendaylight.yml
+++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/03_02_openvswitch_connect_opendaylight.yml
@@ -21,6 +21,34 @@
when: inventory_hostname in groups['odl']
ignore_errors: "True"
+- name: table configuration for netvirt
+ uri:
+ url: "{{ item.url }}"
+ method: PUT
+ user: "{{ odl_username }}"
+ password: "{{ odl_password }}"
+ body: "{{ item.body }}"
+ force_basic_auth: "yes"
+ body_format: json
+ status_code: 200, 201
+ with_items: "{{ conf_netvirt }}"
+ when: inventory_hostname == haproxy_hosts.keys()[0]
+ and odl_sfc == "Enable"
+
+- name: table configuration for sfc
+ uri:
+ url: "{{ item.url }}"
+ method: PUT
+ user: "{{ odl_username }}"
+ password: "{{ odl_password }}"
+ body: "{{ item.body }}"
+ force_basic_auth: "yes"
+ body_format: json
+ status_code: 200, 201
+ with_items: "{{ conf_sfc }}"
+ when: inventory_hostname == haproxy_hosts.keys()[0]
+ and odl_sfc == "Enable"
+
- name: set opendaylight as the manager
command: |
su -s /bin/sh -c "ovs-vsctl set-manager ptcp:6639:127.0.0.1 tcp:{{ internal_vip.ip }}:6640;"