Skip to content

Commit

Permalink
[swss]: Allow portsyncd to run on system without ports
Browse files Browse the repository at this point in the history
Signed-off-by: liora <liora@nvidia.com>
  • Loading branch information
liorghub committed Jul 15, 2021
1 parent dad1287 commit ef34eab
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 ef34eab

Please sign in to comment.