BIND 10 #247: map config data can't be reconfigured by bindctl

BIND 10 Development do-not-reply at isc.org
Thu Jul 22 15:25:10 UTC 2010


#247: map config data can't be reconfigured by bindctl
--------------------------------+-------------------------------------------
      Reporter:  zzchen_pku     |        Owner:  jelte
          Type:  defect         |       Status:  new  
      Priority:  major          |    Milestone:       
     Component:  configuration  |   Resolution:       
      Keywords:  map            |    Sensitive:  0    
Estimatedhours:                 |        Hours:       
      Billable:  1              |   Totalhours:       
      Internal:  0              |  
--------------------------------+-------------------------------------------

Comment(by zzchen_pku):

 Replying to [comment:5 jelte]:
 > But I don't think that's the problem here; If I simply add the above
 snippet to the spec file, xfrout answers to the update command with an
 error ("unknown config data", due to the check in xfrout.py.in line 432+).
 Yeah.
 I print out the keys of config data.
 {{{
 def __init__(self):
 ...
 self._config_data = self._cc.get_full_config()
 for key in self._config_data:
     print (str(key))
 ...
 }}}
 The two keys of map config data are: "File_Channel/log_file"  and
 "File_Channel/log_version".
 When we update "File_Channel/log_version" by bindctl using:
 $config set File_Channel/log_version 6
 $config commit
 {{{
  def config_handler(self, new_config):
 ...
      answer = create_answer(0)
      for key in new_config:
          print (str(key))
 ...
 }}}
 The key name is  "File_Channel", so it fail to find the key in
 self._config_data, xfrout answers to the update command with an error.

-- 
Ticket URL: <http://bind10.isc.org/ticket/247#comment:6>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list