Skip to content
Closed
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
19 changes: 9 additions & 10 deletions orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2436,7 +2436,8 @@ void AclOrch::init(vector<TableConnector>& connectors, PortsOrch *portOrch, Mirr
platform == BFN_PLATFORM_SUBSTRING ||
platform == MRVL_PLATFORM_SUBSTRING ||
platform == INVM_PLATFORM_SUBSTRING ||
platform == NPS_PLATFORM_SUBSTRING)
platform == NPS_PLATFORM_SUBSTRING ||
platform == VS_PLATFORM_SUBSTRING)
{
m_mirrorTableCapabilities =
{
Expand All @@ -2459,19 +2460,17 @@ void AclOrch::init(vector<TableConnector>& connectors, PortsOrch *portOrch, Mirr
SWSS_LOG_NOTICE(" ACL_TABLE_MIRRORV6: %s",
m_mirrorTableCapabilities[ACL_TABLE_MIRRORV6] ? "yes" : "no");

// In Broadcom platform, V4 and V6 rules are stored in the same table
if (platform == BRCM_PLATFORM_SUBSTRING ||
platform == NPS_PLATFORM_SUBSTRING ||
platform == BFN_PLATFORM_SUBSTRING ||
platform == INVM_PLATFORM_SUBSTRING) {
m_isCombinedMirrorV6Table = true;
}

// In Mellanox platform, V4 and V6 rules are stored in different tables
if (platform == MLNX_PLATFORM_SUBSTRING ||
platform == MRVL_PLATFORM_SUBSTRING) {
platform == MRVL_PLATFORM_SUBSTRING)
{
m_isCombinedMirrorV6Table = false;
}
else
{
m_isCombinedMirrorV6Table = true;
}


// Store the capabilities in state database
// TODO: Move this part of the code into syncd
Expand Down
3 changes: 0 additions & 3 deletions tests/test_mirror_ipv6_combined.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

from swsscommon import swsscommon

DVS_ENV = ["fake_platform=broadcom"]


class TestMirror(object):
def setup_db(self, dvs):
self.pdb = swsscommon.DBConnector(0, dvs.redis_sock, 0)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mirror_ipv6_separate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from swsscommon import swsscommon

DVS_ENV = ["fake_platform=mellanox"]
DVS_ENV = ["HWSKU=Mellanox-SN2700"]


class TestMirror(object):
Expand Down