Skip to content

Commit 96b5b52

Browse files
jiacaolguohan
authored andcommitted
Skip initColorAcl for p4 platform (#148)
1 parent f703182 commit 96b5b52

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

orchagent/qosorch.cpp

+9-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
#include "qosorch.h"
33
#include "logger.h"
44

5+
#include <stdlib.h>
56
#include <sstream>
67
#include <iostream>
8+
#include <string>
79

810
using namespace std;
911

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

560-
// add ACLs to support Sonic WRED profile.
561-
initColorAcl(); // FIXME: Should be removed as soon as we have ACL configuration support
562+
string platform = string(getenv("onie_platform"));
563+
if (platform != "x86_64-barefoot_p4-r0")
564+
{
565+
// add ACLs to support Sonic WRED profile.
566+
initColorAcl(); // FIXME: Should be removed as soon as we have ACL configuration support
567+
}
568+
562569
initTableHandlers();
563570
};
564571

0 commit comments

Comments
 (0)