Skip to content

Commit

Permalink
[config] Update ACLs in load_minigraph if ACL config is present (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque authored Jan 23, 2018
1 parent 26c3709 commit 620a15c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def load_minigraph():
command = "{} -m --write-to-db".format(SONIC_CFGGEN_PATH)
run_command(command, display_cmd=True)
client.set(config_db.INIT_INDICATOR, True)
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.
_restart_services()
print "Please note setting loaded from minigraph will be lost after system reboot. To preserve setting, run `config save`."
Expand Down

0 comments on commit 620a15c

Please sign in to comment.