2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-10-21 14:47:45 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
Likun Zhang
efcdb2155e Generate a unique session ID by using socket.gethostname() instead of socket.gethostbyname(), since the latter one could make bindctl stall if its own host name can't be resolved.(the patch was created by Jinmei and reviewed by zhanglikun)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2096 e5f2f494-b856-4b98-b285-d166d9295462
2010-06-09 03:48:54 +00:00
Likun Zhang
b13c2aac74 Ignore value/type check for commands belong to fake module 'config'.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/likun-value-check@1944 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-27 09:07:49 +00:00
Likun Zhang
3dabd8c630 Add code for task 80(add value/type check for cmdctl). After review, the code needs to be merged to trunk.
1. When cmdctl get the command from bindctl/webgui, cmdctl need first check if the the value of command parameters conforms to its specification file. 
2. Bindctl should check command paramters' value and type before sending them out. (it helps user to correct its command immediately)
3. Add API function 'convert_type()' to lib/config/config_data, 

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/likun-value-check@1911 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-24 03:26:17 +00:00
Jelte Jansen
1db7be2208 Merged in branches/trac90
(module descriptions in spec files)
See also https://bind10.isc.org/ticket/90


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1856 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-19 14:55:30 +00:00
JINMEI Tatuya
50e619ebf1 typo: s/stding/stdin/
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1621 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-20 23:58:45 +00:00
Jelte Jansen
b4661557e1 don't store ~/.bind10/default_user.csv if $HOME environment variable isn't set
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1561 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-19 00:16:44 +00:00
Jelte Jansen
4b17dea51b changed default_user.csv file used to store the bindctl user from $cwd to ~/.bind10/default_user.csv
if the directory cannot be make or the file cannot be written the default isn't stored (an error is printed but the session continues)
read/write permissions are for user only


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1560 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-19 00:10:27 +00:00
Likun Zhang
3831ebf57b 1. Update TODO list.
2. Remove unused variable "CONST_COMMAND_NODE" according Jelte's review.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1473 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-17 03:26:04 +00:00
Jeremy C. Reed
ecac16e6a6 Fix typo
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1448 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-16 14:04:16 +00:00
Jelte Jansen
c2e90505e7 fixed a bug in tab-completion
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1445 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-16 13:30:23 +00:00
Jelte Jansen
505205989b fixed indentation for those strings
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1444 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-16 12:59:38 +00:00
Jelte Jansen
0d3e60f218 added some module-level docstrings
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1443 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-16 12:39:09 +00:00
Shane Kerr
9f5008fd32 Use readline if supported on the system, otherwise stdin.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1441 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-16 10:32:51 +00:00
Jelte Jansen
6fe5d6fe60 some docstring updates for bindcmd.py (easier to fix than to put them all in the review report)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1440 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-16 10:06:27 +00:00
Jeremy C. Reed
6fbf197240 Add a TODO: entry for saving the default user.
Have the path for bindctl.pem set.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1429 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-16 00:21:30 +00:00
Jeremy C. Reed
87b9b18a21 Typo fix.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1412 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-15 14:35:27 +00:00
Jelte Jansen
6d3e50f878 install bindctl .py files, and change imports and scripts to reflect
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1410 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-15 14:24:33 +00:00
Jelte Jansen
c00932b53e updated example bindctl session
fixed bindctl> config revert command (called wrong function)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1364 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 13:50:47 +00:00
Likun Zhang
5379b40c81 1. Refactor the function get_param_name_by_position of class CommandInfo, add add some unittest for it.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@990 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-26 08:52:21 +00:00
Likun Zhang
5281fe9e81 1. Add unittests and help information for cmdctl and bindctl.
2. Add login idle timeout for cmdctl, default idle time is 1200 seconds.
3. Refactor some code for cmdctl.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@961 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-25 08:20:48 +00:00
Jelte Jansen
275dbabd2d renamed CCSession to ModuleCCSession
renamed UIConfigData to UICCSession
That last one is now a subclass of MultiConfigData, since half the functions it needed turned out to be nothing but passtroughs
(next is to do the same for ModuleCCSession, only that will be a subclass of ConfigData, and make the two as similar as possible, from a certain point of view they to the same, albeit from another 'direction')


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@842 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-16 20:12:52 +00:00
Jelte Jansen
7ccf5c90c2 type checking on client side
implemented sample print_settings command


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@831 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-16 09:50:03 +00:00
Jelte Jansen
bc69156fbd added option to validate 'partial' data against a definition
added some more dummy specfile entries
creates two simple functions for making and reading answer messages
bindctl will parse command 'config set' values natively (i.e. for "config set my_item 3" the 3 is now read as an integer instead of a string)
added config diff option that shows a dict of the current uncommited changes


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@823 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-15 13:30:39 +00:00
Jelte Jansen
b302cfa381 refactoring of cfgmgr and config in general; they now use the datadefinition class so they could later validate data that is passed around
(refactoring not done yet, though it is now in a working state again, which seemed like a good time to commit)
added a config_data.py with classes for storing definitions and data (for both modules and UIs)
fixed a missed refactoring bug in bob
changed DataDefinition initializer; a string is now parsed instead of seen as a file name; there is a helper function in the module to read a datadef directly from file now
added a temporary example config data specification for auth module
added a temporary second config data element to bob.spec



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-configuration@814 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-13 22:07:58 +00:00
Jelte Jansen
119fd99358 move python lib path ISC/CC to isc/cc
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@695 e5f2f494-b856-4b98-b285-d166d9295462
2010-02-01 10:48:19 +00:00
Likun Zhang
335fab6b45 Remove error message when the default_user.csv doesn't exist.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@680 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-30 01:37:43 +00:00
Likun Zhang
ed538af714 Move files from /src/lib/bindctl to /src/bin/bindctl.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@608 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-28 23:47:18 +00:00