Skip to content

Commit

Permalink
Fix the config load to database order issue (sonic-net#27)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
  • Loading branch information
zhenggen-xu committed Jan 13, 2020
1 parent f73ad94 commit 17e0bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-config-engine/sonic-cfggen
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def main():
if args.write_to_db:
configdb = ConfigDBConnector(**db_kwargs)
configdb.connect(False)
configdb.mod_config(FormatConverter.output_to_db(data))
configdb.mod_config(FormatConverter.output_to_db(sort_data(data)))

if args.print_data:
print(json.dumps(FormatConverter.to_serialized(data), indent=4, cls=minigraph_encoder))
Expand Down

0 comments on commit 17e0bb1

Please sign in to comment.