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

Add MIRRORv6 support for NPS platform #1018

Merged
merged 8 commits into from
Aug 7, 2019
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