diff --git a/config/config_mgmt.py b/config/config_mgmt.py index fc55bc84b7b6..d6e25afc1192 100644 --- a/config/config_mgmt.py +++ b/config/config_mgmt.py @@ -20,7 +20,7 @@ # Using load_source to 'import /usr/local/bin/sonic-cfggen as sonic_cfggen' # since /usr/local/bin/sonic-cfggen does not have .py extension. load_source('sonic_cfggen', '/usr/local/bin/sonic-cfggen') - from sonic_cfggen import deep_update, FormatConverter, sort_data + from sonic_cfggen import deep_update, FormatConverter except ImportError as e: raise ImportError("%s - required module not found" % str(e)) @@ -213,7 +213,6 @@ def writeConfigDB(self, jDiff): configdb = ConfigDBConnector(**db_kwargs) configdb.connect(False) deep_update(data, FormatConverter.to_deserialized(jDiff)) - data = sort_data(data) self.sysLog(msg="Write in DB: {}".format(data)) configdb.mod_config(FormatConverter.output_to_db(data))