Skip to content

Commit

Permalink
[aclorch]: Add MIRRORv6 support for NPS platform (#1018)
Browse files Browse the repository at this point in the history
Signed-off-by: Jared.Liu <Jared.Liu@nephosinc.com>
  • Loading branch information
JaredLius authored and stcheng committed Aug 7, 2019
1 parent 264e548 commit 273608c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions orchagent/aclorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,8 @@ void AclOrch::init(vector<TableConnector>& connectors, PortsOrch *portOrch, Mirr
// purposes.
string platform = getenv("platform") ? getenv("platform") : "";
if (platform == BRCM_PLATFORM_SUBSTRING ||
platform == MLNX_PLATFORM_SUBSTRING)
platform == MLNX_PLATFORM_SUBSTRING ||
platform == NPS_PLATFORM_SUBSTRING)
{
m_mirrorTableCapabilities =
{
Expand All @@ -2001,7 +2002,8 @@ void AclOrch::init(vector<TableConnector>& connectors, PortsOrch *portOrch, Mirr
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) {
if (platform == BRCM_PLATFORM_SUBSTRING ||
platform == NPS_PLATFORM_SUBSTRING) {
m_isCombinedMirrorV6Table = true;
}

Expand Down

0 comments on commit 273608c

Please sign in to comment.