Skip to content

Commit

Permalink
[swss]: Allow portsyncd to run on system without ports (sonic-net#1808)
Browse files Browse the repository at this point in the history
Remove Portsyncd error exit if there are no ports in config DB.

Signed-off-by: liora <liora@nvidia.com>
  • Loading branch information
liorghub committed Jul 17, 2021
1 parent 5d97b05 commit 9f0bb8d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions portsyncd/portsyncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ int main(int argc, char **argv)

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

LinkSync sync(&appl_db, &state_db);
Expand Down

0 comments on commit 9f0bb8d

Please sign in to comment.