diff options
author | CNlucius <lukai1@huawei.com> | 2016-06-30 10:27:59 +0800 |
---|---|---|
committer | CNlucius CNlucius <lukai1@huawei.com> | 2016-07-05 07:00:04 +0000 |
commit | ff20b4011edfe706bcc605ca30d1f618a889a027 (patch) | |
tree | b0360cee03161dbff9b29b2e972279b1548e46b3 /deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml | |
parent | 780256c594ade62a006b5bf740f868714a60ac8e (diff) |
COMPASS-409
Upgrade ONOS support for Compass
Change-Id: Iefc37dc629b1ad7c19bf2b679ec08c9cb15c6a76
Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml')
-rwxr-xr-x | deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml b/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml index c77a4c61..687d27d1 100755 --- a/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml +++ b/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml @@ -9,16 +9,15 @@ --- - include_vars: "{{ ansible_os_family }}.yml" -- name: remove neutron-openvswitch-agent auto start +- name: remove neutron-plugin-openvswitch-agent auto start shell: > - update-rc.d neutron-openvswitch-agent remove; - sed -i /neutron-openvswitch-agent/d /opt/service + update-rc.d neutron-plugin-openvswitch-agent remove; + sed -i /neutron-plugin-openvswitch-agent/d /opt/service when: groups['onos']|length !=0 ignore_errors: True - name: shut down and disable Neutron's agent services - service: name=neutron-openvswitch-agent state=stopped - when: groups['onos']|length !=0 + service: name=neutron-plugin-openvswitch-agent state=stopped ignore_errors: True - name: remove neutron-l3-agent auto start @@ -39,15 +38,13 @@ ovs-vsctl del-br br-tun ; ovs-vsctl del-manager ; ip link delete onos_port1 type veth peer name onos_port2; - when: groups['onos']|length !=0 ignore_errors: True - name: Install ONOS Cluster on Controller include: onos_controller.yml when: inventory_hostname in groups['onos'] -- name: Install ONOS Cluster on Compute +- name: Config ONOS Cluster include: openvswitch.yml - when: groups['onos']|length !=0 -# when: groups['onos']|length !=0 and inventory_hostname not in groups['onos'] + when: inventory_hostname in groups['onos'] |