9413fa9a7b
- Move front panel ports and port channels MTU and IP configurations out of the current /etc/network/interfaces file and store them in the configuration database. - The default MTU value for both front panel ports and the port channels is 9100. They are set via the minigraph or 9100 by default. - Introduce portmgrd which will pick up the MTU configurations from the configuration database. - The updated intfmgrd will pick up IP address changes from the configuration database. - Update sonic-swss submodule Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
40 lines
941 B
Bash
Executable File
40 lines
941 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
mkdir -p /etc/swss/config.d/
|
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/switch.json.j2 > /etc/swss/config.d/switch.json
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/ipinip.json.j2 > /etc/swss/config.d/ipinip.json
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/ports.json.j2 > /etc/swss/config.d/ports.json
|
|
|
|
export platform=`sonic-cfggen -H -v DEVICE_METADATA.localhost.platform`
|
|
|
|
rm -f /var/run/rsyslogd.pid
|
|
|
|
supervisorctl start rsyslogd
|
|
|
|
supervisorctl start orchagent
|
|
|
|
supervisorctl start portsyncd
|
|
|
|
supervisorctl start intfsyncd
|
|
|
|
supervisorctl start neighsyncd
|
|
|
|
supervisorctl start swssconfig
|
|
|
|
supervisorctl start vlanmgrd
|
|
|
|
supervisorctl start intfmgrd
|
|
|
|
supervisorctl start portmgrd
|
|
|
|
supervisorctl start buffermgrd
|
|
|
|
supervisorctl start enable_counters
|
|
|
|
# Start arp_update when VLAN exists
|
|
VLAN=`sonic-cfggen -d -v 'VLAN.keys() | join(" ") if VLAN'`
|
|
if [ "$VLAN" != "" ]; then
|
|
supervisorctl start arp_update
|
|
fi
|