Apply swss configuration in a deterministic way (#39)
* Apply swss configuration in determine way * Apply configs in small chunks * Add qos settings for Arista
This commit is contained in:
parent
7d9fd3c4f8
commit
293db92550
@ -5,7 +5,11 @@ function start_app {
|
||||
portsyncd $PORTSYNCD_ARGS &
|
||||
intfsyncd &
|
||||
neighsyncd &
|
||||
swssconfig &
|
||||
for file in $SWSSCONFIG_ARGS
|
||||
do
|
||||
swssconfig /etc/swss/config.d/$file
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
|
||||
function clean_up {
|
||||
@ -27,12 +31,18 @@ ORCHAGENT_ARGS=""
|
||||
|
||||
PORTSYNCD_ARGS=""
|
||||
|
||||
SWSSCONFIG_ARGS="00-copp.config.json "
|
||||
|
||||
if [ "$onie_platform" == "x86_64-dell_s6000_s1220-r0" ]; then
|
||||
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
|
||||
PORTSYNCD_ARGS+="-p /etc/ssw/Force10-S6000/port_config.ini"
|
||||
SWSSCONFIG_ARGS+="td2.32ports.qos.1.json td2.32ports.qos.2.json td2.32ports.qos.3.json td2.32ports.qos.4.json td2.32ports.qos.5.json td2.32ports.qos.6.json "
|
||||
SWSSCONFIG_ARGS+="td2.32ports.buffers.1.json td2.32ports.buffers.2.json td2.32ports.buffers.3.json "
|
||||
elif [ "$aboot_platform" == "x86_64-arista_7050_qx32" ]; then
|
||||
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
|
||||
PORTSYNCD_ARGS+="-p /etc/ssw/Arista-7050-QX32/port_config.ini"
|
||||
SWSSCONFIG_ARGS+="td2.32ports.qos.1.json td2.32ports.qos.2.json td2.32ports.qos.3.json td2.32ports.qos.4.json td2.32ports.qos.5.json td2.32ports.qos.6.json "
|
||||
SWSSCONFIG_ARGS+="td2.32ports.buffers.1.json td2.32ports.buffers.2.json td2.32ports.buffers.3.json "
|
||||
elif [ "$onie_platform" == "x86_64-mlnx_x86-r5.0.1400" ]; then
|
||||
PORTSYNCD_ARGS+="-p /etc/ssw/ACS-MSN2700/port_config.ini"
|
||||
elif [ "$onie_platform" == "x86_64-accton_as7512_32x-r0" ]; then
|
||||
|
Reference in New Issue
Block a user