Skip to content

Commit 52491ff

Browse files
kcudnikstcheng
authored andcommitted
Make proper names for asic view init and apply (sonic-net#22)
Acked-by: Shuotian Cheng <[email protected]>
1 parent 6f0fcd3 commit 52491ff

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/src/sai_redis_switch.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// to compiled state, then there is something wrong
99
#define NOTIFY_SYNCD_TIMEOUT (60*1000)
1010

11-
#define NOTIFY_SAI_COMPILE_VIEW "sai_compile_view"
12-
#define NOTIFY_SAI_SWITCH_VIEW "sai_switch_view"
11+
#define NOTIFY_SAI_INIT_VIEW "SAI_INIT_VIEW"
12+
#define NOTIFY_SAI_APPLY_VIEW "SAI_APPLY_VIEW"
1313

1414
sai_switch_notification_t redis_switch_notifications;
1515

@@ -144,7 +144,7 @@ sai_status_t redis_initialize_switch(
144144

145145
SWSS_LOG_INFO("operation: '%s'", op.c_str());
146146

147-
if (op == NOTIFY_SAI_COMPILE_VIEW || op == NOTIFY_SAI_SWITCH_VIEW)
147+
if (op == NOTIFY_SAI_INIT_VIEW || op == NOTIFY_SAI_APPLY_VIEW)
148148
{
149149
sai_status_t status = notify_syncd(op);
150150

syncd/syncd.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -874,15 +874,15 @@ void notifySyncd(swss::NotificationConsumer &consumer)
874874

875875
sai_status_t status = SAI_STATUS_FAILURE;
876876

877-
if (op == NOTIFY_SAI_COMPILE_VIEW)
877+
if (op == NOTIFY_SAI_INIT_VIEW)
878878
{
879879
// TODO
880880
SWSS_LOG_ERROR("op = %s - not implemented", op.c_str());
881881

882882
status = SAI_STATUS_NOT_IMPLEMENTED;
883883
}
884884

885-
if (op == NOTIFY_SAI_SWITCH_VIEW)
885+
if (op == NOTIFY_SAI_APPLY_VIEW)
886886
{
887887
// TODO
888888
SWSS_LOG_ERROR("op = %s - not implemented", op.c_str());

syncd/syncd.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ extern "C" {
4242
#define DEFAULT_VIRTUAL_ROUTER_ID "DEFAULT_VIRTUAL_ROUTER_ID"
4343
#define CPU_PORT_ID "CPU_PORT_ID"
4444

45-
#define NOTIFY_SAI_COMPILE_VIEW "sai_compile_view"
46-
#define NOTIFY_SAI_SWITCH_VIEW "sai_switch_view"
45+
#define NOTIFY_SAI_INIT_VIEW "SAI_INIT_VIEW"
46+
#define NOTIFY_SAI_APPLY_VIEW "SAI_APPLY_VIEW"
4747

4848
extern std::mutex g_mutex;
4949

0 commit comments

Comments
 (0)