[201811] [interfaces-config.sh] Flush the loopback interface addresses (#4234)

* [interfaces-config.sh] Flush the loopback interface before configure it

Without this, you may end up with more and more ip addresses
on loopback interface after you change the loopback ip and do config reload

Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
This commit is contained in:
zhenggen-xu 2020-03-09 16:14:59 -07:00 committed by GitHub
parent b3ce209b7f
commit 19c1ad36a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,4 +20,6 @@ fi
systemctl restart networking systemctl restart networking
ifdown --force lo && ifup lo ifdown --force lo
ip addr flush dev lo
ifup lo