aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCNlucius <lukai1@huawei.com>2016-01-01 13:46:46 +0800
committerCNlucius <lukai1@huawei.com>2016-01-01 13:47:46 +0800
commit87ce38a2450c9a403b7d50e0a45b65e64f6c306f (patch)
tree7d65ad67b972306342db9db8eab4a59a0702cd79
parentdaf5a58986e02e897359a792028e8157d7a7ad1b (diff)
ONOSFW-152
Onos Intergrates with compass Change-Id: Ia96f17754c3aef0a0b2f2013d430cb288d2d237d Signed-off-by: CNlucius <lukai1@huawei.com>
-rwxr-xr-xdeploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml b/deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml
index 77161a63..ec299835 100755
--- a/deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml
+++ b/deploy/adapters/ansible/roles/onos_cluster/tasks/openvswitch.yml
@@ -66,7 +66,7 @@
export OS_AUTH_URL=http://{{ internal_vip.ip }}:35357/v2.0;
export OS_USERNAME=ADMIN;
neutron net-create ext-net --shared --router:external=True;
- neutron subnet-create ext-net --name ext-subnet {{ ip_settings[haproxy_hosts.keys()[0]]['external']['cidr'] }};
+ neutron subnet-create ext-net --name ext-subnet {{ public_net_info.floating_ip_cidr }};
when: inventory_hostname == groups['controller'][0]
- name: set gateway mac address
@@ -77,5 +77,7 @@
when: inventory_hostname == groups['onos'][0]
- name: delete default gateway
- command: su -s /bin/sh -c "route delete dufault";
+ shell: >
+ route delete dufault;
+ when: inventory_hostname in groups['onos']
ignore_errors: True