From 52406e29417204a2c85da2b67ace69a4c3dbeaa3 Mon Sep 17 00:00:00 2001 From: Hua Liu <58683130+liuh-80@users.noreply.github.com> Date: Wed, 11 Jan 2023 09:09:54 +0800 Subject: [PATCH] Add missing parameter to on_switch_shutdown_request method. (#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) - [ ] 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 #### A picture of a cute animal (not mandatory but encouraged) --- orchagent/notifications.cpp | 2 +- orchagent/notifications.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/orchagent/notifications.cpp b/orchagent/notifications.cpp index 1a4952637016..297b8d48506f 100644 --- a/orchagent/notifications.cpp +++ b/orchagent/notifications.cpp @@ -23,7 +23,7 @@ void on_bfd_session_state_change(uint32_t count, sai_bfd_session_state_notificat // which causes concurrency access to the DB } -void on_switch_shutdown_request() +void on_switch_shutdown_request(sai_object_id_t switch_id) { SWSS_LOG_ENTER(); diff --git a/orchagent/notifications.h b/orchagent/notifications.h index ea22593a1f06..61e8422db022 100644 --- a/orchagent/notifications.h +++ b/orchagent/notifications.h @@ -7,4 +7,7 @@ extern "C" { void on_fdb_event(uint32_t count, sai_fdb_event_notification_data_t *data); void on_port_state_change(uint32_t count, sai_port_oper_status_notification_t *data); void on_bfd_session_state_change(uint32_t count, sai_bfd_session_state_notification_t *data); -void on_switch_shutdown_request(); + +// The function prototype information can be found here: +// https://github.com/sonic-net/sonic-sairedis/blob/master/meta/NotificationSwitchShutdownRequest.cpp#L49 +void on_switch_shutdown_request(sai_object_id_t switch_id);