diff --git a/orchagent/main.cpp b/orchagent/main.cpp index 6f397cb42e2b..5a074450dabb 100644 --- a/orchagent/main.cpp +++ b/orchagent/main.cpp @@ -177,7 +177,7 @@ void getCfgSwitchType(DBConnector *cfgDb, string &switch_type) switch_type = "switch"; } - if (switch_type != "voq" && switch_type != "fabric" && switch_type != "switch") + if (switch_type != "voq" && switch_type != "fabric" && switch_type != "chassis-packet" && switch_type != "switch") { SWSS_LOG_ERROR("Invalid switch type %s configured", switch_type.c_str()); //If configured switch type is none of the supported, assume regular switch @@ -570,7 +570,7 @@ int main(int argc, char **argv) attr.value.u64 = gSwitchId; attrs.push_back(attr); - if (gMySwitchType == "voq" || gMySwitchType == "fabric") + if (gMySwitchType == "voq" || gMySwitchType == "fabric" || gMySwitchType == "chassis-packet") { /* We set this long timeout in order for orchagent to wait enough time for * response from syncd. It is needed since switch create takes more time @@ -578,7 +578,7 @@ int main(int argc, char **argv) * and systems ports to initialize */ - if (gMySwitchType == "voq") + if (gMySwitchType == "voq" || gMySwitchType == "chassis-packet") { attr.value.u64 = (5 * SAI_REDIS_DEFAULT_SYNC_OPERATION_RESPONSE_TIMEOUT); } @@ -608,7 +608,7 @@ int main(int argc, char **argv) } SWSS_LOG_NOTICE("Create a switch, id:%" PRIu64, gSwitchId); - if (gMySwitchType == "voq" || gMySwitchType == "fabric") + if (gMySwitchType == "voq" || gMySwitchType == "fabric" || gMySwitchType == "chassis-packet") { /* Set syncd response timeout back to the default value */ attr.id = SAI_REDIS_SWITCH_ATTR_SYNC_OPERATION_RESPONSE_TIMEOUT;