[svn] commit: r488 - in /branches/parkinglot: ./ src/bin/ src/bin/bigtool/ src/bin/bindctl/ src/lib/bigtool/ src/lib/bind-cfgd/python/ src/lib/bindctl/
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jan 20 17:46:09 UTC 2010
Author: jreed
Date: Wed Jan 20 17:46:09 2010
New Revision: 488
Log:
Renamed bigtool to bindctl.
Moved some directories for this and edited files
to change BIGTOOL, BigTool, bigtool to
BINDCTL, BindCtl, bindctl respectively.
Added:
branches/parkinglot/src/bin/bindctl/
- copied from r486, branches/parkinglot/src/bin/bigtool/
branches/parkinglot/src/bin/bindctl/Makefile.am
- copied, changed from r487, branches/parkinglot/src/bin/bigtool/Makefile.am
branches/parkinglot/src/bin/bindctl/run_bindctl.in
- copied, changed from r486, branches/parkinglot/src/bin/bigtool/run_bigtool.in
branches/parkinglot/src/bin/bindctl/run_bindctl.py
- copied, changed from r486, branches/parkinglot/src/bin/bigtool/run_bigtool.py
branches/parkinglot/src/lib/bindctl/
- copied from r486, branches/parkinglot/src/lib/bigtool/
branches/parkinglot/src/lib/bindctl/bindctl.py
- copied, changed from r486, branches/parkinglot/src/lib/bigtool/bigtool.py
branches/parkinglot/src/lib/bindctl/unittest_bindctl.py
- copied, changed from r486, branches/parkinglot/src/lib/bigtool/unittest_bigtool.py
Removed:
branches/parkinglot/src/bin/bigtool/
branches/parkinglot/src/bin/bindctl/run_bigtool.in
branches/parkinglot/src/bin/bindctl/run_bigtool.py
branches/parkinglot/src/lib/bigtool/
branches/parkinglot/src/lib/bindctl/bigtool.py
branches/parkinglot/src/lib/bindctl/unittest_bigtool.py
Modified:
branches/parkinglot/README
branches/parkinglot/configure.ac
branches/parkinglot/src/bin/Makefile.am
branches/parkinglot/src/bin/bindctl/bindctl.1
branches/parkinglot/src/lib/bind-cfgd/python/bind-cfgd.py
branches/parkinglot/src/lib/bindctl/__init__.py
branches/parkinglot/src/lib/bindctl/command.py
branches/parkinglot/src/lib/bindctl/exception.py
branches/parkinglot/src/lib/bindctl/run_unittest
Modified: branches/parkinglot/README
==============================================================================
--- branches/parkinglot/README (original)
+++ branches/parkinglot/README Wed Jan 20 17:46:09 2010
@@ -37,11 +37,11 @@
CONFIGURATION
-Commands can be given through the tool bigtool;
-cd src/bin/bigtool
-sh run_bigtool
+Commands can be given through the tool bindctl;
+cd src/bin/bindctl
+sh run_bindctl
-The server must be running for bigtool to work.
+The server must be running for bindctl to work.
The following configuration commands are available
@@ -66,7 +66,7 @@
EXAMPLE SESSION
-~> sh run_bigtool
+~> sh run_bindctl
> config show
ParkingLot/ module
> config show ParkingLot/
Modified: branches/parkinglot/configure.ac
==============================================================================
--- branches/parkinglot/configure.ac (original)
+++ branches/parkinglot/configure.ac Wed Jan 20 17:46:09 2010
@@ -113,8 +113,8 @@
AC_CONFIG_FILES([Makefile
src/Makefile
src/bin/Makefile
- src/bin/bigtool/Makefile
src/bin/bind10/Makefile
+ src/bin/bindctl/Makefile
src/bin/host/Makefile
src/bin/msgq/Makefile
src/bin/parkinglot/Makefile
@@ -124,16 +124,16 @@
src/lib/dns/Makefile
])
AC_OUTPUT([src/bin/bind-cfgd/bind-cfgd
- src/bin/bigtool/run_bigtool
src/bin/bind10/bind10
src/bin/bind10/bind10_test
+ src/bin/bindctl/run_bindctl
src/bin/msgq/msgq
src/bin/msgq/msgq_test
src/bin/parkinglot/config.h
], [
chmod +x src/bin/bind-cfgd/bind-cfgd
- chmod +x src/bin/bigtool/run_bigtool
chmod +x src/bin/bind10/bind10
+ chmod +x src/bin/bindctl/run_bindctl
chmod +x src/bin/msgq/msgq
chmod +x src/bin/msgq/msgq_test
])
Modified: branches/parkinglot/src/bin/Makefile.am
==============================================================================
--- branches/parkinglot/src/bin/Makefile.am (original)
+++ branches/parkinglot/src/bin/Makefile.am Wed Jan 20 17:46:09 2010
@@ -1,1 +1,1 @@
-SUBDIRS = bigtool bind10 msgq parkinglot host
+SUBDIRS = bind10 bindctl msgq parkinglot host
Modified: branches/parkinglot/src/bin/bindctl/bindctl.1
==============================================================================
--- branches/parkinglot/src/bin/bindctl/bindctl.1 (original)
+++ branches/parkinglot/src/bin/bindctl/bindctl.1 Wed Jan 20 17:46:09 2010
@@ -26,7 +26,7 @@
If this connection is not established,
.Nm
will exit.
-.\" TODO: what if msgq is running but no BigTool or Boss groups?
+.\" TODO: what if msgq is running but no BindCtl or Boss groups?
.Pp
The command-line prompt shows
.Dq "\*[Gt] " .
Modified: branches/parkinglot/src/lib/bind-cfgd/python/bind-cfgd.py
==============================================================================
--- branches/parkinglot/src/lib/bind-cfgd/python/bind-cfgd.py (original)
+++ branches/parkinglot/src/lib/bind-cfgd/python/bind-cfgd.py Wed Jan 20 17:46:09 2010
@@ -171,10 +171,10 @@
spec = msg["data_specification"]
if "config_data" in spec:
self.set_config(spec["module_name"], spec["config_data"])
- self.cc.group_sendmsg({ "specification_update": [ spec["module_name"], spec["config_data"] ] }, "BigTool")
+ self.cc.group_sendmsg({ "specification_update": [ spec["module_name"], spec["config_data"] ] }, "BindCtl")
if "commands" in spec:
self.set_commands(spec["module_name"], spec["commands"])
- self.cc.group_sendmsg({ "commands_update": [ spec["module_name"], spec["commands"] ] }, "BigTool")
+ self.cc.group_sendmsg({ "commands_update": [ spec["module_name"], spec["commands"] ] }, "BindCtl")
answer["result"] = [ 0 ]
else:
print("[bind-cfgd] unknown message: " + str(msg))
Modified: branches/parkinglot/src/lib/bindctl/__init__.py
==============================================================================
--- branches/parkinglot/src/lib/bindctl/__init__.py (original)
+++ branches/parkinglot/src/lib/bindctl/__init__.py Wed Jan 20 17:46:09 2010
@@ -1,1 +1,1 @@
-__all__ = ['mycollections', 'exception', 'moduleinfo', 'command', 'bigtool']
+__all__ = ['mycollections', 'exception', 'moduleinfo', 'command', 'bindctl']
Modified: branches/parkinglot/src/lib/bindctl/command.py
==============================================================================
--- branches/parkinglot/src/lib/bindctl/command.py (original)
+++ branches/parkinglot/src/lib/bindctl/command.py Wed Jan 20 17:46:09 2010
@@ -18,7 +18,7 @@
# Used for module and command name
NAME_PATTERN = re.compile("^\s*(?P<name>[\w]+)(?P<blank>\s*)(?P<others>.*)$")
-class BigToolCmd:
+class BindCtlCmd:
""" This class will parse the command line usr input into three part
module name, cmmand, parameters
the first two parts are strings and parameter is one hash,
Modified: branches/parkinglot/src/lib/bindctl/exception.py
==============================================================================
--- branches/parkinglot/src/lib/bindctl/exception.py (original)
+++ branches/parkinglot/src/lib/bindctl/exception.py Wed Jan 20 17:46:09 2010
@@ -1,11 +1,11 @@
-class BigToolException(Exception):
- """Abstract base class shared by all bigtool exceptions"""
+class BindCtlException(Exception):
+ """Abstract base class shared by all bindctl exceptions"""
def __str__(self):
return "Big tool has problem"
# Begin define Format exception
-class CmdFormatError(BigToolException):
+class CmdFormatError(BindCtlException):
"""Command is malformed"""
def __str__(self):
return "Command is malformed"
@@ -50,7 +50,7 @@
# Begin define the exception for syntax
-class CmdSyntaxError(BigToolException):
+class CmdSyntaxError(BindCtlException):
"""Command line has syntax error"""
def __str__(self):
Modified: branches/parkinglot/src/lib/bindctl/run_unittest
==============================================================================
--- branches/parkinglot/src/lib/bindctl/run_unittest (original)
+++ branches/parkinglot/src/lib/bindctl/run_unittest Wed Jan 20 17:46:09 2010
@@ -1,10 +1,10 @@
#! /bin/sh
PYTHON_EXEC=python3
-BIGTOOL_PATH=.
+BINDCTL_PATH=.
-PYTHONPATH=../../lib/cc/python:../../lib/bigtool/
+PYTHONPATH=../../lib/cc/python:../../lib/bindctl/
export PYTHONPATH
-cd ${BIGTOOL_PATH}
-exec ${PYTHON_EXEC} -O unittest_bigtool.py $*
+cd ${BINDCTL_PATH}
+exec ${PYTHON_EXEC} -O unittest_bindctl.py $*
More information about the bind10-changes
mailing list