Skip to content

Commit

Permalink
Skip initColorAcl for p4 platform (sonic-net#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacao authored and lguohan committed Dec 27, 2016
1 parent f703182 commit 96b5b52
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions orchagent/qosorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
#include "qosorch.h"
#include "logger.h"

#include <stdlib.h>
#include <sstream>
#include <iostream>
#include <string>

using namespace std;

Expand Down Expand Up @@ -557,8 +559,13 @@ QosOrch::QosOrch(DBConnector *db, vector<string> &tableNames) : Orch(db, tableNa
{
SWSS_LOG_ENTER();

// add ACLs to support Sonic WRED profile.
initColorAcl(); // FIXME: Should be removed as soon as we have ACL configuration support
string platform = string(getenv("onie_platform"));
if (platform != "x86_64-barefoot_p4-r0")
{
// add ACLs to support Sonic WRED profile.
initColorAcl(); // FIXME: Should be removed as soon as we have ACL configuration support
}

initTableHandlers();
};

Expand Down

0 comments on commit 96b5b52

Please sign in to comment.