Skip to content

Commit

Permalink
[config]: Update environment file during config reload (sonic-net#1673)
Browse files Browse the repository at this point in the history
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
  • Loading branch information
theasianpianist authored Jun 17, 2021
1 parent 19615e3 commit 285960d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,9 @@ def reload(db, filename, yes, load_sysinfo, no_service_restart, disable_arp_cach
command = "{} -o migrate -n {}".format(db_migrator, namespace)
clicommon.run_command(command, display_cmd=True)

# Re-generate the environment variable in case config_db.json was edited
update_sonic_environment()

# We first run "systemctl reset-failed" to remove the "failed"
# status from all services before we attempt to restart them
if not no_service_restart:
Expand Down

0 comments on commit 285960d

Please sign in to comment.