From 27dae9072620b4abbcc832a54c9a126bd8b410f5 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Tue, 28 Mar 2017 15:49:48 -0700 Subject: [PATCH] [docker-teamd]: Clean /etc/teamd/ folder before adding new configurations (#451) Signed-off-by: Shuotian Cheng --- dockers/docker-teamd/config.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dockers/docker-teamd/config.sh b/dockers/docker-teamd/config.sh index c08a580b80..9351966f23 100755 --- a/dockers/docker-teamd/config.sh +++ b/dockers/docker-teamd/config.sh @@ -1,6 +1,7 @@ #!/bin/bash mkdir -p /etc/teamd +rm -f /etc/teamd/* for pc in `sonic-cfggen -m /etc/sonic/minigraph.xml -v "minigraph_portchannels.keys() | join(' ')"`; do sonic-cfggen -m /etc/sonic/minigraph.xml -a '{"pc":"'$pc'"}' -t /usr/share/sonic/templates/teamd.j2 >/etc/teamd/$pc.conf