BIND 10 #3093: 'execute file' fails with multiple option-data
BIND 10 Development
do-not-reply at isc.org
Mon Aug 12 10:24:47 UTC 2013
#3093: 'execute file' fails with multiple option-data
-------------------------------------+-------------------------------------
Reporter: wlodekwencel | Type:
Status: new | defect
Milestone: New Tasks | Priority:
Keywords: bindctl, | medium
execute file | Component: bind-
Sensitive: 0 | ctl
Sub-Project: Core | CVSS Scoring:
Estimated Difficulty: 0 | Defect Severity: N/A
Total Hours: 0 | Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
I'm using config file:
{{{
config add Dhcp6/subnet6
config set Dhcp6/subnet6[0]/subnet "3000::/64"
config set Dhcp6/subnet6[0]/pool [ "3000::1-3000::ff" ]
config commit
config add Dhcp6/option-data
config set Dhcp6/option-data[0]/name "preference"
config set Dhcp6/option-data[0]/code 7
config set Dhcp6/option-data[0]/space "dhcp6"
config set Dhcp6/option-data[0]/csv-format true
config set Dhcp6/option-data[0]/data "123"
config commit
config add Dhcp6/option-data
config set Dhcp6/option-data[1]/name "sip-server-dns"
config set Dhcp6/option-data[1]/code 21
config set Dhcp6/option-data[1]/space "dhcp6"
config set Dhcp6/option-data[1]/csv-format true
config set Dhcp6/option-data[1]/data "srv1.example.com,srv2.isc.org"
config commit
config add Dhcp6/option-data
config set Dhcp6/option-data[2]/name "dns-servers"
config set Dhcp6/option-data[2]/code 23
config set Dhcp6/option-data[2]/space "dhcp6"
config set Dhcp6/option-data[2]/csv-format true
config set Dhcp6/option-data[2]/data "2001:db8::1,2001:db8::2"
config commit
config add Dhcp6/option-data
config set Dhcp6/option-data[3]/name "domain-search"
config set Dhcp6/option-data[3]/code 24
config set Dhcp6/option-data[3]/space "dhcp6"
config set Dhcp6/option-data[3]/csv-format true
config set Dhcp6/option-data[3]/data "domain1.example.com,domain2.isc.org"
config commit
}}}
when config file is copy-plasted to bindctl command line, everything is
ok. When I'm trying to use it by 'execute file' it fails with error:
{{{
Error: No item 1 in option-data[1]
Depending on the contents of the script, and which
commands it has called, there can be committed and
local changes. It is advised to check your settings
, and revert local changes with "config revert".
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/3093>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list