From b2c29b0b0c072bbabc15f36626d5bb7651a37e0a Mon Sep 17 00:00:00 2001 From: jingwenxie Date: Wed, 31 May 2023 14:26:41 +0800 Subject: [PATCH] [config] Generate sysinfo in single asic (#2856) What I did It is a bug introduced from #2836. Need to generate sysinfo for single asic. How I did it Reuse the mac and platform in existing device runnning config and generate that if missing. How to verify it Unit test --- config/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/main.py b/config/main.py index f6bec33f8f..03feffaf6d 100644 --- a/config/main.py +++ b/config/main.py @@ -1906,10 +1906,10 @@ def override_config_table(db, input_config_db, dry_run): ns_config_input = config_input["localhost"] else: ns_config_input = config_input[ns] - # Generate sysinfo if missing in ns_config_input - generate_sysinfo(current_config, ns_config_input, ns) else: ns_config_input = config_input + # Generate sysinfo if missing in ns_config_input + generate_sysinfo(current_config, ns_config_input, ns) updated_config = update_config(current_config, ns_config_input) yang_enabled = device_info.is_yang_config_validation_enabled(config_db)