Skip to content

Commit

Permalink
Add apply view skeleton (sonic-net#143)
Browse files Browse the repository at this point in the history
* Add apply view skeleton

* Addressing comments
  • Loading branch information
kcudnik authored Jan 11, 2017
1 parent ea6bfbd commit 48bf638
Show file tree
Hide file tree
Showing 3 changed files with 619 additions and 11 deletions.
1 change: 1 addition & 0 deletions syncd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ endif

syncd_SOURCES = \
syncd.cpp \
syncd_applyview.cpp \
syncd_cli.cpp \
syncd_init.cpp \
syncd_reinit.cpp \
Expand Down
13 changes: 2 additions & 11 deletions syncd/syncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -970,15 +970,6 @@ void clearTempView()
}
}

sai_status_t syncdApplyView()
{
SWSS_LOG_ENTER();

SWSS_LOG_ERROR("apply view is not implemented yet");

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t notifySyncd(const std::string& op)
{
SWSS_LOG_ENTER();
Expand Down Expand Up @@ -1052,9 +1043,9 @@ sai_status_t notifySyncd(const std::string& op)

SWSS_LOG_WARN("syncd received APPLY VIEW, will translate");

syncdApplyView();
sai_status_t status = syncdApplyView();

sendResponse(SAI_STATUS_SUCCESS);
sendResponse(status);
}
else
{
Expand Down
Loading

0 comments on commit 48bf638

Please sign in to comment.