[interfaces]: Restart networking service after the file is updated (#430)
Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
This commit is contained in:
parent
e2cc409f8a
commit
5150ed55c7
@ -1,6 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/interfaces.j2 >/etc/network/interfaces
|
||||
ifdown eth0 && ifup eth0
|
||||
ifdown lo && ifup lo
|
||||
|
||||
service networking restart
|
||||
|
Loading…
Reference in New Issue
Block a user