From 1420da02369d5db05487ea13e29f47947e07b338 Mon Sep 17 00:00:00 2001 From: "chenshuai@huawei.com" Date: Fri, 25 Mar 2016 10:06:06 +0800 Subject: opencontrail: move vhost0 on eth1 JIRA: COMPASS-349 Change-Id: I61f481dd9b3aa7885ea3eaa3c7ba2d02c0556d2c Signed-off-by: chenshuai@huawei.com --- .../open-contrail/tasks/provision/provision-compute.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-compute.yml') 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 }}" ################################################################################## -- cgit 1.2.3-korg