Opened 7 years ago

Closed 5 years ago

#2730 closed defect (wontfix)

"config remove" should allow the same identifier as printed with "config show"

Reported by: cas Owned by:
Priority: low Milestone: Remaining BIND10 tickets
Component: Unclassified Version: bind10-old
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: Core Feature Depending on Ticket:
Estimated Difficulty: 5 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

The identifier for removing configuration items is different from the representation in "config show".

The identifier for a list is show as "data_sources/classes/CH", the identifier needed for "config remove" is "data_sources/classes CH". That is confusing, and it prevents the use of copy and paste.

Example (real world):

> config show all
data_sources/classes/CH []      list
data_sources/classes/IN []      list
Logging/loggers[0]/name "*"     string  
Logging/loggers[0]/severity     "DEBUG" string  
Logging/loggers[0]/debuglevel   0       integer (default)
Logging/loggers[0]/additive     false   boolean (default)
Logging/loggers[0]/output_options[0]/destination        "file"  string  
Logging/loggers[0]/output_options[0]/output     "/var/log/bind10.log"   string  
Logging/loggers[0]/output_options[0]/flush      false   boolean 
Logging/loggers[0]/output_options[0]/maxsize    204800  integer 
Logging/loggers[0]/output_options[0]/maxver     8       integer 
Cmdctl/key_file "/usr/local/etc/bind10/cmdctl-keyfile.pem"      string  (default)
Cmdctl/cert_file        "/usr/local/etc/bind10/cmdctl-certfile.pem"     string  (default)
Cmdctl/accounts_file    "/usr/local/etc/bind10/cmdctl-accounts.csv"     string  (default)
tsig_keys/keys  []      list    (default)
Boss/components/b10-stats/special       null    string  
Boss/components/b10-stats/process       null    string  
Boss/components/b10-stats/kind  "dispensable"   string  
Boss/components/b10-stats/address       "Stats" string  
Boss/components/b10-stats/params        []      list
Boss/components/b10-stats/priority      null    integer 
Boss/components/b10-cmdctl/special      "cmdctl"        string  
Boss/components/b10-cmdctl/process      null    string  
Boss/components/b10-cmdctl/kind "needed"        string  
Boss/components/b10-cmdctl/address      null    string  
Boss/components/b10-cmdctl/params       []      list
Boss/components/b10-cmdctl/priority     null    integer 
Stats/poll-interval     60      integer (default)
> config remove data_sources/classes/CH
Error!  identifier in remove_value() does not contain a list index, and no value to remove
> config remove data_sources/classes   
Error!  identifier in remove_value() does not contain a list index, and no value to remove
> config remove data_sources        
Error!  identifier in remove_value() does not contain a list index, and no value to remove
> config remove data_sources/classes CH
> config commit

Subtickets

Change History (3)

comment:1 Changed 7 years ago by jwright

  • Milestone New Tasks deleted
  • Priority changed from medium to low

comment:2 Changed 6 years ago by tomek

  • Milestone set to Remaining BIND10 tickets

comment:3 Changed 5 years ago by tomek

  • Resolution set to wontfix
  • Status changed from new to closed
  • Version set to old-bind10

This issue is related to bind10 code that is no longer part of Kea.

If you are interested in BIND10/Bundy framework or its DNS components,
please check http://bundy-dns.de.

Closing ticket.

Note: See TracTickets for help on using tickets.