[bind10-dev] bigtool mock-up committed

ZhangLikun zhanglikun at cnnic.cn
Thu Oct 15 02:36:40 UTC 2009


>At Sat, 10 Oct 2009 14:37:53 +0800,
>"ZhangLikun" <zhanglikun at cnnic.cn> wrote:
>
>> The code is under experiments\likun-bigtool
>> 
>> The first version, support the following features:
>
>Some quick feedback:
>
>- test_bigtool.py somehow worked with python 2.6 but only partially
>  (e.g. command completion didn't work), which is confusing.  If this
>  requires 3.0, I would like the script to fail immediately if it's
>  run by an older version of python.

Yes, actually it requires 3.1, because I used the OrderedDict in the latest
code( will be committed today)

>- when I saw the prompt, I was tempted to type "help" or "?" and was
>  then disappointed:-)  It would be literally helpful if this could
>  show even some information such as a list of supported commands.

Thanks for your suggestion, I have added the "help" in the latest code.

>- I'm not sure if I understand this syntax:
>>    zone  set,   zone_name = "example.com",  attr_name = "master",
>> attr_value = "218.127.0.1"
>  but it doesn't seem to be very intuitive in that it's not clear from
>  this syntax that "attr_name" and "attr_value" consist a pair of
>  information.  That is, all of "zone_name", "attr_name", "attr_value"
>  seem to be listed at the same level, but this is actually
>  interpreted as:
>  zone_name
>  attr_name + attr_value
>
>  I'm afraid it will also be confusing with this syntax style if we
>  have multiple attributes to be specified.

Yeah, it's a problem.  How about like this?

<module_name> [instance_name = value] <command> [,parameter=value]*
"instance_name" is optional, for example,   
#  Set the master for zone "example.com"
zone zone_name='example.com' set, master="218.241.108.200, 123.123.1.1"
    
# Set same master for all zones.
zone set, master="218.241.108.200, 123.123.1.1"
    
# Change query-log's level to 2
log  log_module="query" set, level=2 

Problem:
Do we need use the same “instance_name” for all module? just like,
  zone instance=”exmaple.com” ...
  log instance = “query” ...

>---
>JINMEI, Tatuya
>
>p.s. I have one stupid question: I've been wondering what's
>"bigtool".  To me, it seems everyone suddenly started referring to it
>but I'm afraid I don't remember when this term was introduced (maybe
>at the weekly call I missed in early September?).  Does "bigtool"
>refer to a python based command line configuration tool?
>

Yes, you are right.




More information about the bind10-dev mailing list