Skip to content

Commit 9f0bb8d

Browse files
authored
[swss]: Allow portsyncd to run on system without ports (sonic-net#1808)
Remove Portsyncd error exit if there are no ports in config DB. Signed-off-by: liora <[email protected]>
1 parent 5d97b05 commit 9f0bb8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

portsyncd/portsyncd.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,8 @@ int main(int argc, char **argv)
8888

8989
if (!handlePortConfigFromConfigDB(p, cfgDb, warm))
9090
{
91-
// if port config is missing in ConfigDB
92-
// program will exit with failure
93-
SWSS_LOG_THROW("ConfigDB does not have port information, exiting...");
94-
return EXIT_FAILURE;
91+
SWSS_LOG_NOTICE("ConfigDB does not have port information, "
92+
"however ports can be added later on, continuing...");
9593
}
9694

9795
LinkSync sync(&appl_db, &state_db);

0 commit comments

Comments
 (0)