diff options
author | chenshuai@huawei.com <chenshuai@huawei.com> | 2016-03-25 10:06:06 +0800 |
---|---|---|
committer | chenshuai@huawei.com <chenshuai@huawei.com> | 2016-03-25 10:06:06 +0800 |
commit | 1420da02369d5db05487ea13e29f47947e07b338 (patch) | |
tree | 6940864dac460de2f2760145676a7c9efe85c058 /deploy/adapters/ansible/roles/open-contrail/tasks/install | |
parent | 64747935b777d88346f9f05acf6dee4bf19e53cf (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/install')
-rwxr-xr-x | deploy/adapters/ansible/roles/open-contrail/tasks/install/install-interface.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-interface.yml b/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-interface.yml index 05c30da0..3f7b43c1 100755 --- a/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-interface.yml +++ b/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-interface.yml @@ -10,9 +10,9 @@ #- hosts: all # sudo: yes # tasks: -- 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" ## sudo: True @@ -22,12 +22,12 @@ # with_items: # - "auto {{ contrail_vhost_device }}" # - "iface {{ contrail_vhost_device }} inet static" -# - "\taddress {{ contrail_vhost_address }}{{ lastip.stdout_lines[0] }}" +# - "\taddress {{ contrail_vhost_address }}" # - "\tnetmask {{ contrail_vhost_netmask }}" - name: "set interface address" # sudo: True - shell: "ifconfig {{ contrail_vhost_device }} {{ contrail_vhost_address }}{{ lastip.stdout_lines[0] }} netmask {{ contrail_vhost_netmask }}" + shell: "ifconfig {{ contrail_vhost_device }} {{ contrail_vhost_address }} netmask {{ contrail_vhost_netmask }}" - name: "up interface" # sudo: True |