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