mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 05:27:55 +00:00
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
This commit is contained in:
parent
1d24a900d1
commit
0794e56fdd
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user