File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ HWSKU=`sonic-cfggen -d -v "DEVICE_METADATA['localhost']['hwsku']"`
43
43
44
44
# Don't load json config if system warm start or
45
45
# swss docker warm start is enabled, the data already exists in appDB.
46
- SYSTEM_WARM_START=` redis-cli -n 4 hget " WARM_RESTART |system" enable`
47
- SWSS_WARM_START=` redis-cli -n 4 hget " WARM_RESTART |swss" enable`
46
+ SYSTEM_WARM_START=` redis-cli -n 6 hget " WARM_RESTART_ENABLE_TABLE |system" enable`
47
+ SWSS_WARM_START=` redis-cli -n 6 hget " WARM_RESTART_ENABLE_TABLE |swss" enable`
48
48
if [[ " $SYSTEM_WARM_START " == " true" ]] || [[ " $SWSS_WARM_START " == " true" ]]; then
49
49
# We have to make sure db data has not been flushed.
50
50
RESTORE_COUNT=` redis-cli -n 6 hget " WARM_RESTART_TABLE|orchagent" restore_count`
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function copy_config_files_and_directories()
32
32
33
33
function check_system_warm_boot()
34
34
{
35
- SYSTEM_WARM_START=` /usr/bin/redis-cli -n 4 hget " WARM_RESTART |system" enable`
35
+ SYSTEM_WARM_START=` /usr/bin/redis-cli -n 6 hget " WARM_RESTART_ENABLE_TABLE |system" enable`
36
36
# SYSTEM_WARM_START could be empty, always make WARM_BOOT meaningful.
37
37
if [[ x" $SYSTEM_WARM_START " == x" true" ]]; then
38
38
WARM_BOOT=" true"
50
50
. /etc/sonic/updategraph.conf
51
51
52
52
check_system_warm_boot
53
- copy_list=" minigraph.xml snmp.yml acl.json config_db.json frr"
53
+ copy_list=" minigraph.xml snmp.yml acl.json config_db.json frr"
54
54
if [ -f /tmp/pending_config_migration ]; then
55
55
copy_config_files_and_directories $copy_list
56
56
if [ x" ${WARM_BOOT} " == x" true" ]; then
71
71
72
72
if [ -f /tmp/pending_config_initialization ]; then
73
73
rm -f /tmp/pending_config_initialization
74
- if [ " $enabled " != " true" ]; then
74
+ if [ " $enabled " != " true" ]; then
75
75
PLATFORM=` sonic-cfggen -H -v DEVICE_METADATA.localhost.platform`
76
76
PRESET=(` head -n 1 /usr/share/sonic/device/$PLATFORM /default_sku` )
77
77
sonic-cfggen -H -k ${PRESET[0]} --preset ${PRESET[1]} > /etc/sonic/config_db.json
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ function unlock_service_state_change()
30
30
31
31
function check_warm_boot()
32
32
{
33
- SYSTEM_WARM_START=` /usr/bin/redis-cli -n 4 hget " WARM_RESTART |system" enable`
34
- SERVICE_WARM_START=` /usr/bin/redis-cli -n 4 hget " WARM_RESTART |${SERVICE} " enable`
33
+ SYSTEM_WARM_START=` /usr/bin/redis-cli -n 6 hget " WARM_RESTART_ENABLE_TABLE |system" enable`
34
+ SERVICE_WARM_START=` /usr/bin/redis-cli -n 6 hget " WARM_RESTART_ENABLE_TABLE |${SERVICE} " enable`
35
35
if [[ x" $SYSTEM_WARM_START " == x" true" ]] || [[ x" $SERVICE_WARM_START " == x" true" ]]; then
36
36
WARM_BOOT=" true"
37
37
else
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ function unlock_service_state_change()
30
30
31
31
function check_warm_boot()
32
32
{
33
- SYSTEM_WARM_START=` /usr/bin/redis-cli -n 4 hget " WARM_RESTART |system" enable`
34
- SERVICE_WARM_START=` /usr/bin/redis-cli -n 4 hget " WARM_RESTART |${SERVICE} " enable`
33
+ SYSTEM_WARM_START=` /usr/bin/redis-cli -n 6 hget " WARM_RESTART_ENABLE_TABLE |system" enable`
34
+ SERVICE_WARM_START=` /usr/bin/redis-cli -n 6 hget " WARM_RESTART_ENABLE_TABLE |${SERVICE} " enable`
35
35
# SYSTEM_WARM_START could be empty, always make WARM_BOOT meaningful.
36
36
if [[ x" $SYSTEM_WARM_START " == x" true" ]] || [[ x" $SERVICE_WARM_START " == x" true" ]]; then
37
37
WARM_BOOT=" true"
You can’t perform that action at this time.
0 commit comments