[svn] commit: r349 - in /branches/jelte-datadef/src/bin: bigtool/run_bigtool.py bind10/bind10.py parkinglot/ccsession.cc parkinglot/parkinglot.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Dec 4 10:23:31 UTC 2009
Author: jelte
Date: Fri Dec 4 10:23:31 2009
New Revision: 349
Log:
remove old zone commands
Modified:
branches/jelte-datadef/src/bin/bigtool/run_bigtool.py
branches/jelte-datadef/src/bin/bind10/bind10.py
branches/jelte-datadef/src/bin/parkinglot/ccsession.cc
branches/jelte-datadef/src/bin/parkinglot/parkinglot.cc
Modified: branches/jelte-datadef/src/bin/bigtool/run_bigtool.py
==============================================================================
--- branches/jelte-datadef/src/bin/bigtool/run_bigtool.py (original)
+++ branches/jelte-datadef/src/bin/bigtool/run_bigtool.py Fri Dec 4 10:23:31 2009
@@ -4,20 +4,6 @@
def _prepare_fake_data(bigtool):
- add_cmd = CommandInfo(name = "add", desc = "add one zone")
- remove_cmd = CommandInfo(name = 'remove', desc = 'remove one zone')
- list_cmd = CommandInfo(name = 'list', desc = 'list all zones',
- need_inst_param = False)
-
- zone_module = ModuleInfo(name = "zone",
- inst_name = "zone_name",
- inst_type = STRING_TYPE,
- inst_desc = "the name of one zone",
- desc = "manage all the zones")
- zone_module.add_command(add_cmd)
- zone_module.add_command(remove_cmd)
- zone_module.add_command(list_cmd)
-
shutdown_param = ParamInfo(name = "module_name", desc = "the name of module")
shutdown_cmd = CommandInfo(name = 'shutdown', desc = "stop bind10",
need_inst_param = False)
@@ -25,7 +11,6 @@
boss_module = ModuleInfo(name = "boss", desc = "boss of bind10")
boss_module.add_command(shutdown_cmd)
- bigtool.add_module_info(zone_module)
bigtool.add_module_info(boss_module)
def prepare_module_commands(bigtool, module_name, module_commands):
Modified: branches/jelte-datadef/src/bin/bind10/bind10.py
==============================================================================
--- branches/jelte-datadef/src/bin/bind10/bind10.py (original)
+++ branches/jelte-datadef/src/bin/bind10/bind10.py Fri Dec 4 10:23:31 2009
@@ -100,8 +100,7 @@
self.c_channel_port)
c_channel_env = { "ISC_MSGQ_PORT": str(self.c_channel_port), }
try:
- #c_channel = ProcessInfo("msgq", "msgq", c_channel_env, True)
- c_channel = ProcessInfo("msgq", "msgq", c_channel_env)
+ c_channel = ProcessInfo("msgq", "msgq", c_channel_env, True)
except Exception as e:
return "Unable to start msgq; " + str(e)
self.processes[c_channel.pid] = c_channel
Modified: branches/jelte-datadef/src/bin/parkinglot/ccsession.cc
==============================================================================
--- branches/jelte-datadef/src/bin/parkinglot/ccsession.cc (original)
+++ branches/jelte-datadef/src/bin/parkinglot/ccsession.cc Fri Dec 4 10:23:31 2009
@@ -124,13 +124,6 @@
}
} else {
cout << "[parkinglot] saw message: " << data << endl;
- cmd = data->get("zone_added");
- if (cmd != NULL)
- return std::pair<string, ElementPtr>("addzone", cmd);
- cmd = data->get("zone_deleted");
- if (cmd != NULL) {
- return std::pair<string, ElementPtr>("delzone", cmd);
- }
// todo: common interface for config updates?
cmd = data->get("config_update");
if (cmd != NULL) {
Modified: branches/jelte-datadef/src/bin/parkinglot/parkinglot.cc
==============================================================================
--- branches/jelte-datadef/src/bin/parkinglot/parkinglot.cc (original)
+++ branches/jelte-datadef/src/bin/parkinglot/parkinglot.cc Fri Dec 4 10:23:31 2009
@@ -190,11 +190,7 @@
void
ParkingLot::command(pair<string,ElementPtr> cmd) {
- if (cmd.first == "addzone")
- serve(cmd.second->string_value());
- else if (cmd.first == "delzone")
- zones.forget(cmd.second->string_value());
- else if (cmd.first == "shutdown")
+ if (cmd.first == "shutdown")
exit(0);
else if (cmd.first == "config_update") {
// what to do with port settings?
More information about the bind10-changes
mailing list