Skip to content

Commit aaa519f

Browse files
committed
Move Notificatios to libsaimeta
1 parent 855be73 commit aaa519f

19 files changed

+19
-21
lines changed

lib/src/Makefile.am

-7
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ libSaiRedis_a_SOURCES = \
2727
Switch.cpp \
2828
SwitchContainer.cpp \
2929
VirtualObjectIdManager.cpp \
30-
Notification.cpp \
31-
NotificationSwitchShutdownRequest.cpp \
32-
NotificationPortStateChange.cpp \
33-
NotificationSwitchStateChange.cpp \
34-
NotificationFdbEvent.cpp \
35-
NotificationQueuePfcDeadlock.cpp \
36-
NotificationFactory.cpp \
3730
RedisVidIndexGenerator.cpp \
3831
Recorder.cpp \
3932
RedisRemoteSaiInterface.cpp \

meta/Makefile.am

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ libsaimetadata_la_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) -ansi $(CODE_COVERAGE_CFLAGS
3030

3131

3232
libsaimeta_la_SOURCES = \
33+
Notification.cpp \
34+
NotificationFactory.cpp \
35+
NotificationFdbEvent.cpp \
36+
NotificationPortStateChange.cpp \
37+
NotificationQueuePfcDeadlock.cpp \
38+
NotificationSwitchShutdownRequest.cpp \
39+
NotificationSwitchStateChange.cpp \
3340
SaiInterface.cpp \
3441
SaiAttributeList.cpp \
3542
saiserialize.cpp \
File renamed without changes.

lib/inc/Notification.h renamed to meta/Notification.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extern "C" {
44
#include "saimetadata.h"
55
}
66

7-
#include "meta/Meta.h"
7+
#include "Meta.h"
88

99
#include <string>
1010
#include <memory>
File renamed without changes.
File renamed without changes.

lib/src/NotificationFdbEvent.cpp renamed to meta/NotificationFdbEvent.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "swss/logger.h"
44

5-
#include "meta/sai_serialize.h"
5+
#include "sai_serialize.h"
66

77
using namespace sairedis;
88

File renamed without changes.

lib/src/NotificationPortStateChange.cpp renamed to meta/NotificationPortStateChange.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "swss/logger.h"
44

5-
#include "meta/sai_serialize.h"
5+
#include "sai_serialize.h"
66

77
using namespace sairedis;
88

lib/src/NotificationQueuePfcDeadlock.cpp renamed to meta/NotificationQueuePfcDeadlock.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "swss/logger.h"
44

5-
#include "meta/sai_serialize.h"
5+
#include "sai_serialize.h"
66

77
using namespace sairedis;
88

lib/src/NotificationSwitchShutdownRequest.cpp renamed to meta/NotificationSwitchShutdownRequest.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "swss/logger.h"
44

5-
#include "meta/sai_serialize.h"
5+
#include "sai_serialize.h"
66

77
using namespace sairedis;
88

@@ -49,4 +49,3 @@ void NotificationSwitchShutdownRequest::executeCallback(
4949
switchNotifications.on_switch_shutdown_request(m_switchId);
5050
}
5151
}
52-

lib/src/NotificationSwitchStateChange.cpp renamed to meta/NotificationSwitchStateChange.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "swss/logger.h"
44

5-
#include "meta/sai_serialize.h"
5+
#include "sai_serialize.h"
66

77
using namespace sairedis;
88

vslib/src/Makefile.am

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AM_CXXFLAGS = -I$(top_srcdir)/vslib/inc -I$(top_srcdir)/SAI/inc -I$(top_srcdir)/SAI/meta -I/usr/include/libnl3 -I$(top_srcdir)/SAI/experimental -I$(top_srcdir)/lib/inc
1+
AM_CXXFLAGS = -I$(top_srcdir)/vslib/inc -I$(top_srcdir)/lib/inc -I/usr/include/libnl3 -I$(top_srcdir)/SAI/inc -I$(top_srcdir)/SAI/meta -I$(top_srcdir)/SAI/experimental
22

33
if DEBUG
44
DBGFLAGS = -ggdb -D_DEBUG_
@@ -9,10 +9,8 @@ endif
99
lib_LTLIBRARIES = libsaivs.la
1010

1111
noinst_LIBRARIES = libSaiVS.a
12+
1213
libSaiVS_a_SOURCES = \
13-
../../lib/src/NotificationFdbEvent.cpp \
14-
../../lib/src/Notification.cpp \
15-
../../lib/src/NotificationPortStateChange.cpp \
1614
Context.cpp \
1715
ContextConfig.cpp \
1816
ContextConfigContainer.cpp \

vslib/src/SwitchStateBaseFdb.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "swss/select.h"
66

77
#include "meta/sai_serialize.h"
8-
#include "lib/inc/NotificationFdbEvent.h"
8+
#include "meta/NotificationFdbEvent.h"
99

1010
#include <linux/if_ether.h>
1111
#include <arpa/inet.h>

vslib/src/SwitchStateBaseHostif.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#include "HostInterfaceInfo.h"
33
#include "EventPayloadNotification.h"
44

5-
#include "swss/logger.h"
65
#include "meta/sai_serialize.h"
7-
#include "lib/inc/NotificationPortStateChange.h"
6+
#include "meta/NotificationPortStateChange.h"
7+
8+
#include "swss/logger.h"
89

910
#include <sys/types.h>
1011
#include <sys/stat.h>

0 commit comments

Comments
 (0)