From 17e0bb1a672aff3f2d5d24ffdaec1800f1783468 Mon Sep 17 00:00:00 2001 From: zhenggen-xu Date: Wed, 18 Dec 2019 14:24:11 -0800 Subject: [PATCH] Fix the config load to database order issue (#27) Signed-off-by: Zhenggen Xu --- src/sonic-config-engine/sonic-cfggen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sonic-config-engine/sonic-cfggen b/src/sonic-config-engine/sonic-cfggen index 13ce040d7884..a4b7792bad72 100755 --- a/src/sonic-config-engine/sonic-cfggen +++ b/src/sonic-config-engine/sonic-cfggen @@ -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))