Skip to content

Commit

Permalink
[config] Generate sysinfo in single asic (#2856)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wen587 authored and yxieca committed Jun 15, 2023
1 parent e42291b commit e7eac6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1832,10 +1832,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)
Expand Down

0 comments on commit e7eac6b

Please sign in to comment.