diff --git a/fboss/agent/test/utils/BUCK b/fboss/agent/test/utils/BUCK index ecf9e7a2909a4..5d553005cd971 100644 --- a/fboss/agent/test/utils/BUCK +++ b/fboss/agent/test/utils/BUCK @@ -147,6 +147,7 @@ cpp_library( ], headers = ["ConfigUtils.h"], exported_deps = [ + ":acl_test_utils", ":asic_test_utils", ":port_test_utils", "//fboss/agent:agent_features", diff --git a/fboss/agent/test/utils/ConfigUtils.cpp b/fboss/agent/test/utils/ConfigUtils.cpp index 0f101dd949663..82bdb4bcc4826 100644 --- a/fboss/agent/test/utils/ConfigUtils.cpp +++ b/fboss/agent/test/utils/ConfigUtils.cpp @@ -15,6 +15,7 @@ #include "fboss/agent/FbossError.h" #include "fboss/agent/SwSwitch.h" #include "fboss/agent/test/TestEnsembleIf.h" +#include "fboss/agent/test/utils/AclTestUtils.h" #include "fboss/agent/test/utils/AsicUtils.h" #include "fboss/agent/test/utils/PortTestUtils.h" #include "fboss/lib/config/PlatformConfigUtils.h" @@ -701,6 +702,11 @@ cfg::SwitchConfig genPortVlanCfg( const std::optional>& hwAsicTable, const std::optional platformType) { cfg::SwitchConfig config; + if (FLAGS_enable_acl_table_group) { + utility::addAclTableGroup( + &config, cfg::AclStage::INGRESS, utility::getAclTableGroupName()); + utility::addDefaultAclTable(config); + } if (switchIdToSwitchInfo.has_value() && hwAsicTable.has_value()) { populateSwitchInfo( config,