[bind10-dev] support map type in config data
Jerry
jerry.zzpku at gmail.com
Fri Jun 18 00:55:00 UTC 2010
Hello, Jelte,
I have a question about config data, Can you give some suggestions?
Because logging module supports several channels , each has its own config
items, it’s better to define channel phrase, which will make the logging
configuration more readable(see sample below). I tried to use map type in
config_data, but it doesn’t work very well. Has config module supported
this type yet? If not, do you plan to support it in the future?
Thanks.
A sample configuration for logging:
"config_data": [
{
"item_name" : "File_Channel",
"item_type" : "map",
"item_optional" : False,
"item_default": {
"log_file" : "@@LOCALSTATEDIR@@/@PACKAGE@/log/Xfrout.log ",
"log_versions" : 5
}
"map_item_spec":[
{
"item_name": "log_file",
"item_type": "string",
"item_optional": False,
"item_default":
"@@LOCALSTATEDIR@@/@PACKAGE@/log/Xfrout.log "
},
{
"item_name": "log_versions",
"item_type": "integer",
"item_optional": False,
"item_default": 5
}
…
]
}
{
"item_name" : "SysLog_Channel",
"item_type" : "list",
"item_optional" : false,
"item_default" :{
"SysLog_severity" : "debug",
"facility " : "syslog.LOG_USER"
}
" map_item_spec ":[
{
"item_name": "SysLog_severity",
"item_type": "string",
"item_optional": False,
"item_default": "debug"
},
{
"item_name": "facility ",
"item_type": "string",
"item_optional": False,
"item_default": "syslog.LOG_USER"
}
]
}
...
]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100618/d0b87251/attachment.html>
More information about the bind10-dev
mailing list