From: wutianwei Date: Mon, 11 Sep 2017 02:53:31 +0000 (+0800) Subject: bugfix: fix moon network configuration X-Git-Tag: opnfv-5.0.0~21^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=1a763c69762b0bdeabf42e1789316a39a2d55211;p=compass4nfv.git bugfix: fix moon network configuration Due to creating the br-mgmt bridge, it is necessary to remove the IP from the eth0 interface. Change-Id: I32cf4d47530be3d625e29202f70b5667e6113a8c Signed-off-by: wutianwei --- diff --git a/plugins/moon/roles/moon/handlers/main.yml b/plugins/moon/roles/moon/handlers/main.yml index ab2a090b..5029d378 100755 --- a/plugins/moon/roles/moon/handlers/main.yml +++ b/plugins/moon/roles/moon/handlers/main.yml @@ -7,9 +7,5 @@ ############################################################################## --- - name: restart network service - shell: "ifconfig eth0 down && ifconfig eth0 up && \ - /sbin/ifdown -a && \ + shell: "ifconfig eth0 0 && /sbin/ifdown -a && \ /sbin/ifup --ignore-errors -a" - -- name: restart nfs service - service: name=nfs-kernel-server state=restarted