[svn] commit: r624 - in /branches/parkinglot/src/bin/cmdctl: README TODO b10-cmdctl.py.in
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Jan 29 02:03:29 UTC 2010
Author: jreed
Date: Fri Jan 29 02:03:29 2010
New Revision: 624
Log:
Change cmd-ctrld to b10-cmdctl.
Modified:
branches/parkinglot/src/bin/cmdctl/README
branches/parkinglot/src/bin/cmdctl/TODO
branches/parkinglot/src/bin/cmdctl/b10-cmdctl.py.in
Modified: branches/parkinglot/src/bin/cmdctl/README
==============================================================================
--- branches/parkinglot/src/bin/cmdctl/README (original)
+++ branches/parkinglot/src/bin/cmdctl/README Fri Jan 29 02:03:29 2010
@@ -1,9 +1,9 @@
-When cmd-ctrld runs, user should provide one certificate and create one account for bindctl.
+When b10-cmdctrl runs, user should provide one certificate and create one account for bindctl.
1. Get a certificate
-cmd-ctrld is a https server, so a certificate should be acquired for the SSL-encrypted connection services it provides.
+b10-cmdctrl is a https server, so a certificate should be acquired for the SSL-encrypted connection services it provides.
There are many ways of acquiring appropriate cetificates, such as buying one from a certification authority. Another common practice is to generate a self-signed certificate. The simplest way to do this is with the OpenSSL package, using something like the following:
openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem
Modified: branches/parkinglot/src/bin/cmdctl/TODO
==============================================================================
--- branches/parkinglot/src/bin/cmdctl/TODO (original)
+++ branches/parkinglot/src/bin/cmdctl/TODO Fri Jan 29 02:03:29 2010
@@ -1,8 +1,8 @@
-1. Refine code for cmd-ctrld.
+1. Refine code for b10-cmdctl.
2. Add value type check according module specification.
-3. Description/Requirement document for cmd-ctrld.
-4. RESTful API document for cmd-ctrld.
-5. Unit tests for cmd-ctrld.
-6. Man page for cmd-ctrld?
+3. Description/Requirement document for b10-cmdctl.
+4. RESTful API document for b10-cmdctl.
+5. Unit tests for b10-cmdctl.
+6. Man page for b10-cmdctl?
7. Support 'make install', Save user information and ssl certificate file to configmanager.
Modified: branches/parkinglot/src/bin/cmdctl/b10-cmdctl.py.in
==============================================================================
--- branches/parkinglot/src/bin/cmdctl/b10-cmdctl.py.in (original)
+++ branches/parkinglot/src/bin/cmdctl/b10-cmdctl.py.in Fri Jan 29 02:03:29 2010
@@ -117,7 +117,7 @@
param = json.loads(post_str)
reply_msg = self.server.send_command_to_module(mod, cmd, param)
- print('cmd-ctrld finish send message \'%s\' to module %s' % (cmd, mod))
+ print('b10-cmdctl finish send message \'%s\' to module %s' % (cmd, mod))
#TODO, set proper rcode
self.send_response(rcode)
@@ -167,7 +167,7 @@
content.append(params)
msg = {'command' : content}
- print('cmd-ctrld send command \'%s\' to %s' %(command_name, module_name))
+ print('b10-cmdctl send command \'%s\' to %s' %(command_name, module_name))
try:
self.cc.group_sendmsg(msg, module_name)
answer, env = self.cc.group_recvmsg(False)
@@ -186,7 +186,7 @@
print("Error: unexpected answer from %s" % module_name)
except Exception as e:
print(e)
- print('cmd-ctrld fail send command \'%s\' to %s' % (command_name, module_name))
+ print('b10-cmdctl fail send command \'%s\' to %s' % (command_name, module_name))
return {}
@@ -248,7 +248,7 @@
return self.cmdctrl.send_command(module_name, command_name, params)
def run(server_class = SecureHTTPServer, addr = 'localhost', port = 8080):
- print("cmd-ctrld module is starting on :%s port:%d" %(addr, port))
+ print("b10-cmdctl module is starting on :%s port:%d" %(addr, port))
httpd = server_class((addr, port), SecureHTTPRequestHandler)
httpd.serve_forever()
@@ -257,7 +257,7 @@
try:
run()
except ISC.CC.SessionError as se:
- print("[cmd-ctrld] Error creating cmd-ctrld, "
+ print("[b10-cmdctl] Error creating b10-cmdctl, "
"is the command channel daemon running?")
except KeyboardInterrupt:
print("exit http server")
More information about the bind10-changes
mailing list