File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,19 @@ function startplatform() {
44
44
}
45
45
46
46
function waitplatform() {
47
-
47
+
48
48
if [[ x" $sonic_asic_platform " == x" mellanox" ]]; then
49
49
debug " Starting pmon service..."
50
50
/bin/systemctl start pmon
51
51
debug " Started pmon service"
52
52
fi
53
+ if [[ x" $BOOT_TYPE " != x" cold" ]]; then
54
+ debug " LLDP service is delayed by a timer for better fast/warm boot performance"
55
+ else
56
+ debug " Starting lldp service..."
57
+ /bin/systemctl start lldp
58
+ debug " Started lldp service"
59
+ fi
53
60
}
54
61
55
62
function stopplatform1() {
@@ -64,7 +71,7 @@ function stopplatform1() {
64
71
debug " ${TYPE} shutdown syncd process ..."
65
72
/usr/bin/docker exec -i syncd$DEV /usr/bin/syncd_request_shutdown --${TYPE}
66
73
67
- # wait until syncd quits gracefully or force syncd to exit after
74
+ # wait until syncd quits gracefully or force syncd to exit after
68
75
# waiting for 20 seconds
69
76
start_in_secs=${SECONDS}
70
77
end_in_secs=${SECONDS}
@@ -76,7 +83,7 @@ function stopplatform1() {
76
83
done
77
84
78
85
if [[ $(( end_in_secs - start_in_secs)) -gt $timer_threshold ]]; then
79
- debug " syncd process in container syncd$DEV did not exit gracefully"
86
+ debug " syncd process in container syncd$DEV did not exit gracefully"
80
87
fi
81
88
82
89
/usr/bin/docker exec -i syncd$DEV /bin/sync
You can’t perform that action at this time.
0 commit comments