[docker-teamd]: Clean /etc/teamd/ folder before adding new configurations (#451)
Signed-off-by: Shuotian Cheng <shuche@microsoft.com>
This commit is contained in:
parent
7a2a374917
commit
27dae90726
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user