Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST DO NOT MERGE - OTAI contecpt #1512

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SUBDIRS = meta lib vslib proxylib pyext
SUBDIRS = meta lib vslib proxylib

if SYNCD
SUBDIRS += syncd saiplayer saidump saidiscovery saisdkdump saiasiccmp tests unittest
Expand Down
7 changes: 4 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ CXXFLAGS_COMMON+=" -Winvalid-pch"
CXXFLAGS_COMMON+=" -Wmissing-field-initializers"
CXXFLAGS_COMMON+=" -Wmissing-format-attribute"
CXXFLAGS_COMMON+=" -Wmissing-include-dirs"
CXXFLAGS_COMMON+=" -Wmissing-noreturn"
CXXFLAGS_COMMON+=" -Wno-missing-noreturn"
CXXFLAGS_COMMON+=" -Wno-aggregate-return"
CXXFLAGS_COMMON+=" -Wno-padded"
CXXFLAGS_COMMON+=" -Wno-switch-enum"
Expand Down Expand Up @@ -223,6 +223,7 @@ AC_ARG_WITH(extra-libsai-ldflags,
[AC_SUBST(EXTRA_LIBSAI_LDFLAGS, "${withval}")])

AC_SUBST(SAIINC, "-I\$(top_srcdir)/SAI/inc -I\$(top_srcdir)/SAI/experimental -I\$(top_srcdir)/SAI/meta")
AC_SUBST(OTAIINC, "-I\$(top_srcdir)/OTAI/inc -I\$(top_srcdir)/OTAI/meta")

AM_COND_IF([SYNCD], [
AM_COND_IF([SAIVS], [], [
Expand Down Expand Up @@ -274,11 +275,11 @@ AC_CHECK_FUNCS(sai_bulk_object_clear_stats sai_bulk_object_get_stats)
CXXFLAGS="$SAVED_FLAGS"
])

AC_DEFINE([SAIREDIS_GIT_REVISION],
AC_DEFINE([OTAIREDIS_GIT_REVISION],
"[m4_esyscmd([echo -n $(git rev-parse --short HEAD || echo 0000000)])]",
[sairedis git revision information])

AC_DEFINE([SAI_GIT_REVISION],
AC_DEFINE([OTAI_GIT_REVISION],
"[m4_esyscmd([echo -n $(cd SAI && git rev-parse --short HEAD || echo 0000000)])]",
[SAI git revision information])

Expand Down
6 changes: 3 additions & 3 deletions lib/Channel.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include "Channel.h"

#include "sairedis.h"
#include "otairedis.h"

#include "swss/logger.h"

using namespace sairedis;
using namespace otairedis;

Channel::Channel(
_In_ Callback callback):
m_callback(callback),
m_responseTimeoutMs(SAI_REDIS_DEFAULT_SYNC_OPERATION_RESPONSE_TIMEOUT)
m_responseTimeoutMs(OTAI_REDIS_DEFAULT_SYNC_OPERATION_RESPONSE_TIMEOUT)
{
SWSS_LOG_ENTER();

Expand Down
6 changes: 3 additions & 3 deletions lib/Channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
#include "swss/sal.h"

extern "C" {
#include "sai.h"
#include "otai.h"
}

#include <memory>
#include <functional>

namespace sairedis
namespace otairedis
{
class Channel
{
Expand Down Expand Up @@ -51,7 +51,7 @@ namespace sairedis
_In_ const std::string& key,
_In_ const std::string& command) = 0;

virtual sai_status_t wait(
virtual otai_status_t wait(
_In_ const std::string& command,
_Out_ swss::KeyOpFieldsValuesTuple& kco) = 0;

Expand Down
6 changes: 3 additions & 3 deletions lib/ClientConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

using json = nlohmann::json;

using namespace sairedis;
using namespace otairedis;

ClientConfig::ClientConfig():
m_zmqEndpoint("ipc:///tmp/saiServer"),
m_zmqNtfEndpoint("ipc:///tmp/saiServerNtf")
m_zmqEndpoint("ipc:///tmp/otaiServer"),
m_zmqNtfEndpoint("ipc:///tmp/otaiServerNtf")
{
SWSS_LOG_ENTER();

Expand Down
2 changes: 1 addition & 1 deletion lib/ClientConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <memory>
#include <string>

namespace sairedis
namespace otairedis
{
class ClientConfig
{
Expand Down
Loading
Loading