BIND 10 #2844: execute file fails with subnet options
BIND 10 Development
do-not-reply at isc.org
Fri Mar 8 13:14:40 UTC 2013
#2844: execute file fails with subnet options
-------------------------------------+-------------------------------------
Reporter: wlodekwencel | Type:
Status: new | defect
Milestone: New Tasks | Priority:
Keywords: bindctl, | medium
execute file, subnet option | Component: bind-
Sensitive: 0 | ctl
Sub-Project: DNS | CVSS Scoring:
Estimated Difficulty: 0 | Defect Severity: N/A
Total Hours: 0 | Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
I have 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/subnet6[0]/option-data
config set Dhcp6/subnet6[0]/option-data[0]/name "preference"
config set Dhcp6/subnet6[0]/option-data[0]/code 7
config set Dhcp6/subnet6[0]/option-data[0]/space "dhcp6"
config set Dhcp6/subnet6[0]/option-data[0]/csv-format true
config set Dhcp6/subnet6[0]/option-data[0]/data "123"
config commit
}}}
Entered directly works properly, but execute file fails with error:
{{{
Error: No item 0 in subnet6[0]
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".
}}}
but when config is divided to two different files:
first:
{{{
config add Dhcp6/subnet6
config set Dhcp6/subnet6[0]/subnet "3000::/64"
config set Dhcp6/subnet6[0]/pool [ "3000::1-3000::ff" ]
config commit
}}}
second:
{{{
config add Dhcp6/subnet6[0]/option-data
config set Dhcp6/subnet6[0]/option-data[0]/name "preference"
config set Dhcp6/subnet6[0]/option-data[0]/code 7
config set Dhcp6/subnet6[0]/option-data[0]/space "dhcp6"
config set Dhcp6/subnet6[0]/option-data[0]/csv-format true
config set Dhcp6/subnet6[0]/option-data[0]/data "123"
config commit
}}}
then execute file works.
There is no error with:
config add Dhcp6/option-data (even with couple 'config commit' in it)
only when applying option to specific subnet:
config add Dhcp6/subnet6[0]/option-data
--
Ticket URL: <http://bind10.isc.org/ticket/2844>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list