Jelte Jansen
6cd9f05e65
catch session error and exit (fix for trac ticket 11)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@416 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-30 09:45:42 +00:00
Jelte Jansen
579aae2cc8
made a start with automating coverage tests;
...
configure --with-lcov will try /usr/bin and /usr/local/bin for the lcov and genhtml binaries
(use --with-lcov=PATH to specify a full path to the lcov binary, genhtml is assumed to be in the same one)
this enables a new makefile target; coverage
make coverage removes old coverage results, performs the tests (by depending on make check), and generates a new report in coverage/
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@412 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 16:07:20 +00:00
Jelte Jansen
bfec93a540
better gtest check in configure.ac; if a path is given, use that, if not, try /usr and /usr/local.
...
Now gives a configure-time error if gtest is not found (by checking gtest/gtest.h in the path(s))
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@411 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-29 14:03:40 +00:00
Jelte Jansen
138c18e70a
refactor: function_name to functionName in data.h (functions on isc::data::Elements)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@408 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 11:30:19 +00:00
Jelte Jansen
27185721c3
refactor: namespace changes
...
ISC -> isc
ISC::Data -> isc::data
ISC::CC -> isc::cc
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@407 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 11:15:23 +00:00
Jelte Jansen
f772eb96a9
merged branch jelte_datadef back
...
Configuration syntax has changed; see README
Also the parkinglot.db format has changed and 'old' configuration will be
thrown away.
Merge back done to facilitate refactoring of names to conform to style guidelines (doing that in a separate branch could create too many conflicts)
next up: tests and documentation
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@405 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-24 10:00:34 +00:00
Shane Kerr
543dbfd90d
Things to do for the boss process.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@401 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-23 11:51:08 +00:00
Jelte Jansen
17514e12dc
add positional parameters in bigtool; merge back from jelte-datadef rev 342 and 386
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@399 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 14:09:21 +00:00
Jelte Jansen
60e8544e60
fixed some en/decoding bugs in the cpp part of the new cc wire format
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@398 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 13:54:57 +00:00
Jelte Jansen
ec10fee3bd
don't send config if it is None
...
removed catch-all in ccsession (i want to get the original exception)
check result size after get_config in parkinglot
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@397 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-22 09:38:48 +00:00
Jelte Jansen
91d64d64b9
make A, AAAA and NS sets configurable in parkinglot
...
(SOA still fixed though)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@395 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-21 15:34:08 +00:00
Jelte Jansen
e0f80ec2f7
common module-side API for commands and configuration
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@394 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-21 12:45:14 +00:00
Jelte Jansen
4974ce5dc8
some unit tests for Elements, and fixed a few bugs while i was writing them
...
also added a is_null(ElementPtr) function
added a test target to the main makefile (which will execute any executable binary in the tree that ends with "unittests")
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@387 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 17:41:23 +00:00
Jelte Jansen
1af07bbec7
smarter handling of optional and mandatories in positional parameter handling
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@386 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-18 10:44:04 +00:00
Jeremy C. Reed
b59ef35ca1
Also add the install wrappers, so they install too.
...
TODO: these install wrappers need to be improved to run correctly
from the installed prefix.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@370 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-15 18:18:41 +00:00
Jeremy C. Reed
0770bad2bd
Add beginning Makefile.am for bigtool, msgq, and bind10.
...
Install these scripts too.
(TODO: need to install the wrapper script too.)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@369 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-15 18:14:20 +00:00
Jelte Jansen
06726eb3ab
where did that space come from
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@353 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 18:01:33 +00:00
Jelte Jansen
b49e1991f7
move prepare_module_commands to bigtool class
...
bigtool now listens to 'specification_update' and 'commands_update' commands for data_spec and module commands of modules that were not running yet at the time bigtool was started. no command for removal yet
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@352 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 16:34:56 +00:00
Jelte Jansen
f0d108331d
store config data in a text file instead of a pickle binary
...
config data store now also has a version, so we can include a migration path later (for now if it find an old version it will throw away all config)
when storing the configuration, write it to a tmp file first, then move it if the writing succeeds, so we don't end up with a 0-byte file
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@351 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 11:24:45 +00:00
Jelte Jansen
2c82b2107e
remove some debug verbosity
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@350 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 10:38:45 +00:00
Jelte Jansen
00495db0bb
remove old zone commands
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@349 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 10:23:31 +00:00
Jelte Jansen
9e8f14a28b
example direct module command, these do not go through the config manager but directly to modules
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@348 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 10:19:53 +00:00
Jelte Jansen
171781db2c
let parkinglot receive config_update command and serve the zones from there
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@347 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-04 09:23:37 +00:00
Michael Graff
f6b55c6092
add TODO, fix a bug with a name that vanishes/does not exist
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@346 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 15:53:42 +00:00
Jelte Jansen
16bcd9fda1
config 'go' command, keep track of location within the configuration
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@345 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 13:03:34 +00:00
Jelte Jansen
d4a6b8a656
when parsing literals, return the string itself on ValueError (that way, simple strings don't need quotes in the cli)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@344 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 12:28:59 +00:00
Jelte Jansen
57979d6e09
added a data.py class with a few classes and function usable by configuration handlers. bigtool now has a fixed config 'module' which takes configuration commands. The completion function completes configuration identifiers, though i haven't been able to get rid of the space yet, which would not always be ideal
...
config commands are kind of based on the message i sent last week to -dev; set,unset,add (to list), remove (from list), revert, and commit
changed configuration is stored, but not sent to and used by parkinglot etc. yet
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@343 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 11:12:17 +00:00
Jelte Jansen
ee7c74fbd5
positional arguments for bigtool; if the command arguments are not in 'name = value' pairs, the arguments are parsed based on their position. The parser then adds the names again (so for the application the params is still a {name:value} dict
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@342 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 10:56:56 +00:00
Michael Graff
ff75117590
fix path
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@341 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 09:03:07 +00:00
Michael Graff
5fdc00a1ab
rename pymsgq to msgq
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@340 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 08:56:12 +00:00
Michael Graff
5c4b0719cd
make msgq_test from msgq_test.in
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@339 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 08:53:51 +00:00
Michael Graff
34198282dd
delete old msgq
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@338 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 08:51:18 +00:00
Michael Graff
200d42f0d0
disable old msgq
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@337 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 08:50:16 +00:00
Michael Graff
d055308d15
search for python, python3, and then python3.1. Require version 3.1. Use @PYTHON@ in all .in files, and add run_bigtool.in. This should cover all script wrappers.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@336 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 08:21:01 +00:00
Michael Graff
342fdf3ded
kill API support for subscription types. 'meonly' is the default. Comment out lines in callers which used 'meonly'
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@335 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 07:32:29 +00:00
Michael Graff
f222c66705
Implement directed messages, and a test for it
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@334 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 07:27:28 +00:00
Michael Graff
a6823843ad
checkpoint work; Python-based msgq mostly works. Bad input will crash it, which should be fixed, probably by wrapping the entire message processing in a try loop. Gross, but...
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@333 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 06:42:40 +00:00
Michael Graff
6383f1fda5
New wire format, which makes things more sane for processing envelope apart from messages. No API changes. The current msgq does not support this, but the pymsgq I'm hoping to finish up tomorrow will.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@332 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-03 02:37:40 +00:00
Michael Graff
83553f96f1
learning python sockets: msgq, the revenge
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@331 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-02 21:31:07 +00:00
Jelte Jansen
a938e686d0
be lenient on the receiving end whether env["msg"] is a str or a bytearray (until we use the new wireformat i guess)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@327 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-01 16:23:52 +00:00
Jelte Jansen
52cc97f6b4
Merged to_wire nulltermination bugfix from branches/jelte-datadef revision 297:298
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@319 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 09:47:13 +00:00
Jelte Jansen
7e2512b059
compile-time location for parkinglot.spec file
...
somewhat parse the commands structure in bigtool as they are sent by the config manager
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@318 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 09:41:58 +00:00
Jelte Jansen
f49960895f
int type for wireformat in python, ruby and C
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@317 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 09:35:36 +00:00
Jelte Jansen
78dabb4433
bool type in cpp cc
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@316 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:18:37 +00:00
Jelte Jansen
8cf507e89d
this seems safer, when TrueClass/FalseClass
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@315 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:14:19 +00:00
Jelte Jansen
fcb96d3442
bool type in ruby cc
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@314 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:06:42 +00:00
Michael Graff
ae6b4206d3
fix; had a duplicate method name
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@313 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:05:43 +00:00
Michael Graff
7a5fb2613c
require utf8 strings
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@312 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 14:04:52 +00:00
Jelte Jansen
bc5d12940d
bool type on wire in python messaging part
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@311 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 13:31:38 +00:00
Michael Graff
5b53b4fd6c
add the ideas of UTF8 and BLOB types. Both are decoded into strings, and all strings are encoded into UTF8 for now.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@310 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 12:32:57 +00:00