From 0794e56fdd8afbfeef8dbf39d8642f58506aec87 Mon Sep 17 00:00:00 2001 From: JINMEI Tatuya Date: Sat, 31 Oct 2009 00:48:39 +0000 Subject: [PATCH] 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 --- src/bin/parkinglot/ccsession.cc | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/bin/parkinglot/ccsession.cc b/src/bin/parkinglot/ccsession.cc index e9ad345da9..31e0b9be5e 100644 --- a/src/bin/parkinglot/ccsession.cc +++ b/src/bin/parkinglot/ccsession.cc @@ -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("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(s, - cmd->get(1)->string_value()); - } - return std::pair(s, ""); - } + return std::pair("delzone", cmd->string_value()); } }