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
JINMEI Tatuya
c0f55021fe
another wording fix
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@330 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-02 09:11:47 +00:00
JINMEI Tatuya
3bf63c39e5
wording fix to the document
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@329 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-02 09:10:18 +00:00
JINMEI Tatuya
33cd4b55dc
Input/Output buffer classes with design/API documentation and unittest cases.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@328 e5f2f494-b856-4b98-b285-d166d9295462
2009-12-02 09:08:09 +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
JINMEI Tatuya
da77b4881f
added a base exception class for the DNS library with a simple unit test case.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@326 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-24 22:32:02 +00:00
JINMEI Tatuya
248011badf
created a working branch for the production version of DNS message API
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-dnsmessageapi@325 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 22:00:24 +00:00
JINMEI Tatuya
6795e3f861
added an initial set of configuration for doxygen
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@324 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 21:56:17 +00:00
JINMEI Tatuya
59afb7af74
adopted gtest for unittest framework
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@323 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 21:50:59 +00:00
JINMEI Tatuya
af616c1393
missing file
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@322 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 19:49:39 +00:00
JINMEI Tatuya
e574bf55e3
removed "configure" from the repository as it's auto-generated
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@321 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 19:36:07 +00:00
JINMEI Tatuya
a62e41511b
reorganized the lib/dns source tree with a separate cpp directory per convention
...
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@320 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-23 19:35:17 +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
Michael Graff
ba9a64862e
lame, but at least non-empty, install file
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@309 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 12:23:19 +00:00
Michael Graff
735c7b752d
make a difference between binary and string data. This is mostly because strings are utf-8, while binary is, well, binary.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@308 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 12:00:48 +00:00
Michael Graff
b94be96c7e
make a difference between binary and string data. This is mostly because strings are utf-8, while binary is, well, binary.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@307 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 12:00:36 +00:00
Jelte Jansen
9c62eaeb0c
whoops left some prints there
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@306 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 11:56:37 +00:00
Jelte Jansen
6d3e04f85e
convert bool elements to native bools while decoding (otherwise there will be a lot of tripping of "false" equalling true when used directly)
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@305 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 11:55:53 +00:00
Michael Graff
44691ada67
an actual test
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@304 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 10:37:15 +00:00
Michael Graff
ff55be8a87
correct len() of item to convert from utf-8 first
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@303 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 10:37:05 +00:00
Jelte Jansen
02b62f9e5a
better prints
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@302 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 09:37:37 +00:00
Jelte Jansen
ed9e6e6a70
fix handling of shutdown messages
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@301 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 09:37:20 +00:00
Jelte Jansen
ebecf5b1dc
tagged f2f branch as-is into tags/ (can imho be removed later)
...
renamed f2f branch to parkinglot
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@300 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-20 08:14:49 +00:00
Jelte Jansen
bf22fad024
accept the data_specification 'command' from modules
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@299 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-19 14:00:54 +00:00
Jelte Jansen
b6571be9e4
unsigned char arrays interpreted as strings are still null-terminated in c++
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@298 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-19 11:52:44 +00:00
Jelte Jansen
3a19a908ae
(temporary!) workaround for decode problem; this needs a more substantial change (i.e. make the api encoding-agnostic), and will be reverted later, but is needed right now for the other changes in this branch
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@297 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-19 09:52:07 +00:00
Jelte Jansen
f39adf2274
added datadefinition checking to the DataDefinition class, throw DataDefinitionError when that fails
...
first argument of group_sendmsg() is now const
parkinglot now reads a parkinglot.spec file and tries to send it to the config manager (which currently fails somewhere in the msgq), file is read from cwd for now (i.e. the bin/bind10/bind10 dir)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jelte-datadef@296 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-18 10:12:32 +00:00
Jeremy C. Reed
1714df4bf1
Require autoconf 2.59 instead of 2.61.
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@295 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-05 14:05:26 +00:00
Jelte Jansen
488453a9a3
catch keyerror when trying to remove a non-existent zone
...
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@294 e5f2f494-b856-4b98-b285-d166d9295462
2009-11-04 18:10:31 +00:00