Commit 0794e56f authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

now allowed incoming commands from bigtool via the cfg manager


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@277 e5f2f494-b856-4b98-b285-d166d9295462
parent 1d24a900
......@@ -72,17 +72,12 @@ CommandSession::getCommand(int counter) {
session_.group_sendmsg(resp, "statistics");
}
} else {
cmd = data->get("command");
cmd = data->get("zone_added");
if (cmd != NULL)
return std::pair<string, string>("addzone", cmd->string_value());
cmd = data->get("zone_deleted");
if (cmd != NULL) {
ep = cmd->get(0);
if (ep != NULL) {
s = ep->string_value();
if (s == "addzone" || s == "delzone") {
return std::pair<string, string>(s,
cmd->get(1)->string_value());
}
return std::pair<string, string>(s, "");
}
return std::pair<string, string>("delzone", cmd->string_value());
}
}
......
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