Skip to content

Commit

Permalink
Move Notificatios to libsaimeta
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik committed Aug 21, 2021
1 parent 855be73 commit aaa519f
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 21 deletions.
7 changes: 0 additions & 7 deletions lib/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ libSaiRedis_a_SOURCES = \
Switch.cpp \
SwitchContainer.cpp \
VirtualObjectIdManager.cpp \
Notification.cpp \
NotificationSwitchShutdownRequest.cpp \
NotificationPortStateChange.cpp \
NotificationSwitchStateChange.cpp \
NotificationFdbEvent.cpp \
NotificationQueuePfcDeadlock.cpp \
NotificationFactory.cpp \
RedisVidIndexGenerator.cpp \
Recorder.cpp \
RedisRemoteSaiInterface.cpp \
Expand Down
7 changes: 7 additions & 0 deletions meta/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ libsaimetadata_la_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) -ansi $(CODE_COVERAGE_CFLAGS


libsaimeta_la_SOURCES = \
Notification.cpp \
NotificationFactory.cpp \
NotificationFdbEvent.cpp \
NotificationPortStateChange.cpp \
NotificationQueuePfcDeadlock.cpp \
NotificationSwitchShutdownRequest.cpp \
NotificationSwitchStateChange.cpp \
SaiInterface.cpp \
SaiAttributeList.cpp \
saiserialize.cpp \
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/inc/Notification.h → meta/Notification.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern "C" {
#include "saimetadata.h"
}

#include "meta/Meta.h"
#include "Meta.h"

#include <string>
#include <memory>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "swss/logger.h"

#include "meta/sai_serialize.h"
#include "sai_serialize.h"

using namespace sairedis;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "swss/logger.h"

#include "meta/sai_serialize.h"
#include "sai_serialize.h"

using namespace sairedis;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "swss/logger.h"

#include "meta/sai_serialize.h"
#include "sai_serialize.h"

using namespace sairedis;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "swss/logger.h"

#include "meta/sai_serialize.h"
#include "sai_serialize.h"

using namespace sairedis;

Expand Down Expand Up @@ -49,4 +49,3 @@ void NotificationSwitchShutdownRequest::executeCallback(
switchNotifications.on_switch_shutdown_request(m_switchId);
}
}

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "swss/logger.h"

#include "meta/sai_serialize.h"
#include "sai_serialize.h"

using namespace sairedis;

Expand Down
File renamed without changes.
6 changes: 2 additions & 4 deletions vslib/src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
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
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

if DEBUG
DBGFLAGS = -ggdb -D_DEBUG_
Expand All @@ -9,10 +9,8 @@ endif
lib_LTLIBRARIES = libsaivs.la

noinst_LIBRARIES = libSaiVS.a

libSaiVS_a_SOURCES = \
../../lib/src/NotificationFdbEvent.cpp \
../../lib/src/Notification.cpp \
../../lib/src/NotificationPortStateChange.cpp \
Context.cpp \
ContextConfig.cpp \
ContextConfigContainer.cpp \
Expand Down
2 changes: 1 addition & 1 deletion vslib/src/SwitchStateBaseFdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "swss/select.h"

#include "meta/sai_serialize.h"
#include "lib/inc/NotificationFdbEvent.h"
#include "meta/NotificationFdbEvent.h"

#include <linux/if_ether.h>
#include <arpa/inet.h>
Expand Down
5 changes: 3 additions & 2 deletions vslib/src/SwitchStateBaseHostif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
#include "HostInterfaceInfo.h"
#include "EventPayloadNotification.h"

#include "swss/logger.h"
#include "meta/sai_serialize.h"
#include "lib/inc/NotificationPortStateChange.h"
#include "meta/NotificationPortStateChange.h"

#include "swss/logger.h"

#include <sys/types.h>
#include <sys/stat.h>
Expand Down

0 comments on commit aaa519f

Please sign in to comment.