Skip to content

Commit 52406e2

Browse files
authored
Add missing parameter to on_switch_shutdown_request method. (sonic-net#2567)
#### Why I did it The switch_id parameter missing in on_switch_shutdown_request() method. #### How I did it Add missing parameter to on_switch_shutdown_request method. #### How to verify it Pass all UT and E2E test cases. #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 #### Description for the changelog Add ZMQ based ProducerStateTable and CustomerStateTable. #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration. --> #### A picture of a cute animal (not mandatory but encouraged)
1 parent 4ac9ad9 commit 52406e2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

orchagent/notifications.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void on_bfd_session_state_change(uint32_t count, sai_bfd_session_state_notificat
2323
// which causes concurrency access to the DB
2424
}
2525

26-
void on_switch_shutdown_request()
26+
void on_switch_shutdown_request(sai_object_id_t switch_id)
2727
{
2828
SWSS_LOG_ENTER();
2929

orchagent/notifications.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ extern "C" {
77
void on_fdb_event(uint32_t count, sai_fdb_event_notification_data_t *data);
88
void on_port_state_change(uint32_t count, sai_port_oper_status_notification_t *data);
99
void on_bfd_session_state_change(uint32_t count, sai_bfd_session_state_notification_t *data);
10-
void on_switch_shutdown_request();
10+
11+
// The function prototype information can be found here:
12+
// https://github.com/sonic-net/sonic-sairedis/blob/master/meta/NotificationSwitchShutdownRequest.cpp#L49
13+
void on_switch_shutdown_request(sai_object_id_t switch_id);

0 commit comments

Comments
 (0)