Skip to content

Commit

Permalink
[config] Generate sysinfo in single asic (sonic-net#2856)
Browse files Browse the repository at this point in the history
What I did
It is a bug introduced from sonic-net#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 pdhruv-marvell committed Aug 23, 2023
1 parent 1562767 commit 782f933
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 @@ -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)
Expand Down

0 comments on commit 782f933

Please sign in to comment.