File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ ENABLE_SAITHRIFT=0
11
11
PLATFORM_DIR=/usr/share/sonic/platform
12
12
HWSKU_DIR=/usr/share/sonic/hwsku
13
13
14
- SONIC_ASIC_TYPE=$( sonic-cfggen -y /etc/sonic/sonic_version.yml -v asic_type)
14
+ VARS_FILE=/usr/share/sonic/templates/swss_vars.j2
15
+ # Retrieve vars from sonic-cfggen
16
+ SYNCD_VARS=$( sonic-cfggen -d -y /etc/sonic/sonic_version.yml -t $VARS_FILE ) || exit 1
17
+ SONIC_ASIC_TYPE=$( echo $SYNCD_VARS | jq -r ' .asic_type' )
15
18
16
19
if [ -x $CMD_DSSERVE ]; then
17
20
CMD=$CMD_DSSERVE
@@ -28,7 +31,7 @@ CMD_ARGS+=" -u"
28
31
CMD_ARGS+=" -l"
29
32
30
33
# Set synchronous mode if it is enabled in CONFIG_DB
31
- SYNC_MODE=$( sonic-cfggen -d -v DEVICE_METADATA.localhost. synchronous_mode)
34
+ SYNC_MODE=$( echo $SYNCD_VARS | jq -r ' . synchronous_mode' )
32
35
if [ " $SYNC_MODE " == " enable" ]; then
33
36
CMD_ARGS+=" -s"
34
37
fi
You can’t perform that action at this time.
0 commit comments