summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/open-contrail/tasks/provision
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-03-25 10:06:06 +0800
committerchenshuai@huawei.com <chenshuai@huawei.com>2016-03-25 10:06:06 +0800
commit1420da02369d5db05487ea13e29f47947e07b338 (patch)
tree6940864dac460de2f2760145676a7c9efe85c058 /deploy/adapters/ansible/roles/open-contrail/tasks/provision
parent64747935b777d88346f9f05acf6dee4bf19e53cf (diff)
opencontrail: move vhost0 on eth1
JIRA: COMPASS-349 Change-Id: I61f481dd9b3aa7885ea3eaa3c7ba2d02c0556d2c Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/open-contrail/tasks/provision')
-rwxr-xr-xdeploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-compute.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-compute.yml b/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-compute.yml
index a4cd36db..d9258ef5 100755
--- a/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-compute.yml
+++ b/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-compute.yml
@@ -62,9 +62,9 @@
regexp: "dev=__DEVICE__"
line: "dev={{ contrail_vhost_device }}"
-- name: "get last ip address"
- shell: expr substr `cat /etc/hostname` 5 1
- register: lastip
+#- name: "get last ip address"
+# shell: expr substr `cat /etc/hostname` 5 1
+# register: lastip
- name: "fix up contrail vrouter agent config"
template:
@@ -89,9 +89,9 @@
- "sed -i -n -e '/auto .*/,$p' /tmp/contrail-interfaces-bottom"
- "cat /tmp/contrail-interfaces-top /tmp/contrail-interfaces-bottom > /etc/network/interfaces"
-- name: get last ip address
- shell: expr substr `cat /etc/hostname` 5 1
- register: lastip
+#- name: get last ip address
+# shell: expr substr `cat /etc/hostname` 5 1
+# register: lastip
- name: "configure interface"
lineinfile:
@@ -107,7 +107,7 @@
- "iface vhost0 inet static"
- "\tpre-up /opt/contrail/bin/if-vhost0"
- "\tnetwork_name application"
- - "\taddress {{ contrail_vhost_address }}{{ lastip.stdout_lines[0] }}"
+ - "\taddress {{ contrail_vhost_address }}"
- "\tnetmask {{ contrail_vhost_netmask }}"
##################################################################################