From 1a0ad57f1d38ba5f375a70f26f83bf2e280eb8d2 Mon Sep 17 00:00:00 2001 From: liora Date: Fri, 2 Jul 2021 16:14:17 +0000 Subject: [PATCH] [swss]: Allow portsyncd to run on system without ports Signed-off-by: liora --- portsyncd/portsyncd.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/portsyncd/portsyncd.cpp b/portsyncd/portsyncd.cpp index 151ac16657d..8bec74650ad 100644 --- a/portsyncd/portsyncd.cpp +++ b/portsyncd/portsyncd.cpp @@ -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);