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 2, 2021
1 parent dad1287 commit 1a0ad57
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_WARN("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 1a0ad57

Please sign in to comment.