2017-01-19 22:56:26 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
mkdir -p /etc/teamd
|
|
|
|
|
2017-02-28 12:52:56 -06:00
|
|
|
for pc in `sonic-cfggen -m /etc/sonic/minigraph.xml -v "minigraph_portchannel_interfaces.keys()"`; do
|
2017-02-18 19:50:29 -06:00
|
|
|
sonic-cfggen -m /etc/sonic/minigraph.xml -a '{"pc":"'$pc'"}' -t /usr/share/sonic/templates/teamd.j2 >/etc/teamd/$pc.conf
|
2017-01-19 22:56:26 -06:00
|
|
|
done
|
|
|
|
|
2017-01-24 21:16:55 -06:00
|
|
|
mkdir -p /var/sonic
|
|
|
|
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status
|
|
|
|
|