BIND 10 #926: Possibility to specify variable keys for map in configuration
BIND 10 Development
do-not-reply at isc.org
Mon Jul 25 15:23:27 UTC 2011
#926: Possibility to specify variable keys for map in configuration
-------------------------------------+-------------------------------------
Reporter: | Owner: UnAssigned
vorner | Status: reviewing
Type: | Milestone:
enhancement | Sprint-20110802
Priority: major | Resolution:
Component: | Sensitive: 0
configuration | Sub-Project: Core
Keywords: | Estimated Difficulty: 7.0
Defect Severity: N/A | Total Hours: 0
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Changes (by jelte):
* owner: jelte => UnAssigned
* status: assigned => reviewing
Comment:
I've named the new 'type' a 'named set', because it is essentially a list
that does not use indices, but names; the idea is that we will be able to
configure and use things like
{{{/some_module/zones/example.com/master 1.2.3.4}}}
instead of
{{{/some_module/zones[1]/master 1.2.3.4}}}
internally, it's passed as a map, just like 'normal' maps (which have
fixed names as specified in the spec file). This one has variable names,
but one fixed type for its values. This has the end result of behaving
more like the lists we have now than the maps we have now. But since it's
indexed by name, in effect it behaves like sets where the items are
addressable. So i've chosen the name 'named set' instead of 'named map'
which sounds like a tautology (and plain 'map' was obviously already
taken, and 'dict' or 'hash' would be even more confusing imo).
While I was adding support for this, I have also fixed another issue
(about out-of-bound list adressing, #1080, but we'd need to see in that
ticket whether all cases have been covered now).
The actual use of this is not visible yet, we'd need to add some setting
somewhere or change some current settings, which would be a good thing for
another ticket (as we may need to do config version bumping and/or
compatibility then). One obvious one might be Xfrin/zones.
--
Ticket URL: <http://bind10.isc.org/ticket/926#comment:6>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list