File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3156,6 +3156,12 @@ void Syncd::sendShutdownRequest(
3156
3156
{
3157
3157
SWSS_LOG_ENTER ();
3158
3158
3159
+ if (m_notifications == nullptr )
3160
+ {
3161
+ SWSS_LOG_WARN (" notifications pointer is NULL" );
3162
+ return ;
3163
+ }
3164
+
3159
3165
auto s = sai_serialize_object_id (switchVid);
3160
3166
3161
3167
SWSS_LOG_NOTICE (" sending switch_shutdown_request notification to OA for switch: %s" , s.c_str ());
@@ -3164,11 +3170,7 @@ void Syncd::sendShutdownRequest(
3164
3170
3165
3171
// TODO use m_handler->onSwitchShutdownRequest(switchVid); (but this should be per switch)
3166
3172
3167
- if (m_notifications == nullptr )
3168
- {
3169
- SWSS_LOG_WARN (" notifications pointer is NULL" );
3170
- return ;
3171
- }
3173
+ s = sai_serialize_switch_shutdown_request (switchVid);
3172
3174
3173
3175
m_notifications->send (SAI_SWITCH_NOTIFICATION_NAME_SWITCH_SHUTDOWN_REQUEST, s, entry);
3174
3176
}
You can’t perform that action at this time.
0 commit comments