diff options
author | CNlucius <lukai1@huawei.com> | 2016-07-07 11:28:36 +0800 |
---|---|---|
committer | CNlucius <lukai1@huawei.com> | 2016-07-07 14:40:35 +0800 |
commit | 68c872f91546416f6998b312421ecadee826a9fd (patch) | |
tree | b15a373f1a5729bb876461d2d5923b404dccf802 /deploy/adapters/ansible/openstack_mitaka/roles | |
parent | ff20b4011edfe706bcc605ca30d1f618a889a027 (diff) |
COMPASS-429
onos_cluster tasks are executed in none onos scenario
Change-Id: I03a5d111d5822cbe88b87efd6c333ea65c5bdad9
Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack_mitaka/roles')
-rwxr-xr-x | deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml | 5 |
1 files changed, 3 insertions, 2 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 687d27d1..c8ce1155 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 @@ -18,6 +18,7 @@ - name: shut down and disable Neutron's agent services service: name=neutron-plugin-openvswitch-agent state=stopped + when: groups['onos']|length !=0 ignore_errors: True - name: remove neutron-l3-agent auto start @@ -38,6 +39,7 @@ 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 @@ -46,5 +48,4 @@ - name: Config ONOS Cluster include: openvswitch.yml - when: inventory_hostname in groups['onos'] - + when: groups['onos']|length !=0 |