Commit f14c7b5c authored by Jelte Jansen's avatar Jelte Jansen
Browse files

shutdown is common enough to make a standard fixed name for it


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1645 e5f2f494-b856-4b98-b285-d166d9295462
parent e64a8acc
...@@ -89,6 +89,7 @@ COMMAND_GET_CONFIG = "get_config" ...@@ -89,6 +89,7 @@ COMMAND_GET_CONFIG = "get_config"
COMMAND_SET_CONFIG = "set_config" COMMAND_SET_CONFIG = "set_config"
COMMAND_GET_MODULE_SPEC = "get_module_spec" COMMAND_GET_MODULE_SPEC = "get_module_spec"
COMMAND_MODULE_SPEC = "module_spec" COMMAND_MODULE_SPEC = "module_spec"
COMMAND_SHUTDOWN = "shutdown"
def parse_command(msg): def parse_command(msg):
"""Parses what may be a command message. If it looks like one, """Parses what may be a command message. If it looks like one,
......
...@@ -325,7 +325,7 @@ class ConfigManager: ...@@ -325,7 +325,7 @@ class ConfigManager:
answer = self._handle_get_config(arg) answer = self._handle_get_config(arg)
elif cmd == isc.config.ccsession.COMMAND_SET_CONFIG: elif cmd == isc.config.ccsession.COMMAND_SET_CONFIG:
answer = self._handle_set_config(arg) answer = self._handle_set_config(arg)
elif cmd == "shutdown": elif cmd == isc.config.ccsession.COMMAND_SHUTDOWN:
# TODO: logging # TODO: logging
#print("[b10-cfgmgr] Received shutdown command") #print("[b10-cfgmgr] Received shutdown command")
self.running = False self.running = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment