Skip to content

Commit

Permalink
[config] Store ConfigDB init indicator boolean value as 1/0 in Redis …
Browse files Browse the repository at this point in the history
…to be language-agnostic (#197)
  • Loading branch information
jleveque authored Jan 30, 2018
1 parent ce9a36e commit fe6d043
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 @@ -159,7 +159,7 @@ def reload(filename):
client.flushdb()
command = "{} -j {} --write-to-db".format(SONIC_CFGGEN_PATH, filename)
run_command(command, display_cmd=True)
client.set(config_db.INIT_INDICATOR, True)
client.set(config_db.INIT_INDICATOR, 1)
_restart_services()

@cli.command()
Expand Down Expand Up @@ -200,7 +200,7 @@ def load_minigraph():
else:
command = "{} -m --write-to-db".format(SONIC_CFGGEN_PATH)
run_command(command, display_cmd=True)
client.set(config_db.INIT_INDICATOR, True)
client.set(config_db.INIT_INDICATOR, 1)
if os.path.isfile('/etc/sonic/acl.json'):
run_command("acl-loader update full /etc/sonic/acl.json", display_cmd=True)
#FIXME: After config DB daemon is implemented, we'll no longer need to restart every service.
Expand Down

0 comments on commit fe6d043

Please sign in to comment.