From 0c71d27fd8925ab16cf10785b8910a39bf2a4591 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Thu, 23 Mar 2017 12:41:56 -0700 Subject: [PATCH] [interfaces]: Restart networking service after the file is updated Signed-off-by: Shuotian Cheng --- files/image_config/interfaces/interfaces-config.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/image_config/interfaces/interfaces-config.sh b/files/image_config/interfaces/interfaces-config.sh index f36f45b55576..e26060197619 100755 --- a/files/image_config/interfaces/interfaces-config.sh +++ b/files/image_config/interfaces/interfaces-config.sh @@ -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