-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update-sai-to-v1.15.5
- Loading branch information
Showing
17 changed files
with
426 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
2017-06-14.01:55:46.543987|a|INIT_VIEW | ||
2017-06-14.01:55:46.551164|A|SAI_STATUS_SUCCESS | ||
2017-06-14.01:55:46.555975|c|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_INIT_SWITCH=true | ||
2017-06-14.01:55:46.558259|s|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_VXLAN_DEFAULT_ROUTER_MAC=00:22:22:22:22:22 | ||
2017-06-14.01:56:06.151337|a|APPLY_VIEW | ||
2017-06-14.01:56:06.156740|A|SAI_STATUS_SUCCESS | ||
2017-06-14.01:55:46.543987|a|INIT_VIEW | ||
2017-06-14.01:55:46.551164|A|SAI_STATUS_SUCCESS | ||
2017-06-14.01:55:46.555975|c|SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000|SAI_SWITCH_ATTR_INIT_SWITCH=true | ||
2017-06-14.01:56:06.151337|a|APPLY_VIEW | ||
2017-06-14.01:56:06.156740|A|SAI_STATUS_SUCCESS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -479,3 +479,6 @@ saiproxy | |
submodule | ||
Enqueue | ||
deque | ||
apiversion | ||
vso | ||
VxLAN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
#include "MockableSaiSwitchInterface.h" | ||
#include "VidManager.h" | ||
|
||
#include "meta/sai_serialize.h" | ||
|
||
#include "swss/logger.h" | ||
|
||
#pragma GCC diagnostic ignored "-Wsuggest-attribute=noreturn" | ||
|
||
using namespace unittests; | ||
|
||
MockableSaiSwitchInterface::MockableSaiSwitchInterface( | ||
_In_ sai_object_id_t switchVid, | ||
_In_ sai_object_id_t switchRid): | ||
SaiSwitchInterface(switchVid, switchRid) | ||
{ | ||
SWSS_LOG_ENTER(); | ||
} | ||
|
||
std::unordered_map<sai_object_id_t, sai_object_id_t> MockableSaiSwitchInterface::getVidToRidMap() const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
std::unordered_map<sai_object_id_t, sai_object_id_t> MockableSaiSwitchInterface::getRidToVidMap() const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
bool MockableSaiSwitchInterface::isDiscoveredRid( | ||
_In_ sai_object_id_t rid) const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
bool MockableSaiSwitchInterface::isColdBootDiscoveredRid( | ||
_In_ sai_object_id_t rid) const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
bool MockableSaiSwitchInterface::isSwitchObjectDefaultRid( | ||
_In_ sai_object_id_t rid) const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
bool MockableSaiSwitchInterface::isNonRemovableRid( | ||
_In_ sai_object_id_t rid) const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
std::set<sai_object_id_t> MockableSaiSwitchInterface::getDiscoveredRids() const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
void MockableSaiSwitchInterface::removeExistingObject( | ||
_In_ sai_object_id_t rid) | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
void MockableSaiSwitchInterface::removeExistingObjectReference( | ||
_In_ sai_object_id_t rid) | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
void MockableSaiSwitchInterface::getDefaultMacAddress( | ||
_Out_ sai_mac_t& mac) const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
void MockableSaiSwitchInterface::getVxlanDefaultRouterMacAddress( | ||
_Out_ sai_mac_t& mac) const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
mac[0] = 1; | ||
mac[1] = 2; | ||
mac[2] = 3; | ||
mac[3] = 4; | ||
mac[4] = 5; | ||
mac[5] = 6; | ||
} | ||
|
||
sai_object_id_t MockableSaiSwitchInterface::getDefaultValueForOidAttr( | ||
_In_ sai_object_id_t rid, | ||
_In_ sai_attr_id_t attr_id) | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
std::set<sai_object_id_t> MockableSaiSwitchInterface::getColdBootDiscoveredVids() const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
std::set<sai_object_id_t> MockableSaiSwitchInterface::getWarmBootDiscoveredVids() const | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
void MockableSaiSwitchInterface::onPostPortCreate( | ||
_In_ sai_object_id_t port_rid, | ||
_In_ sai_object_id_t port_vid) | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
void MockableSaiSwitchInterface::postPortRemove( | ||
_In_ sai_object_id_t portRid) | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} | ||
|
||
void MockableSaiSwitchInterface::collectPortRelatedObjects( | ||
_In_ sai_object_id_t portRid) | ||
{ | ||
SWSS_LOG_ENTER(); | ||
|
||
SWSS_LOG_THROW("not implemented"); | ||
} |
Oops, something went wrong.