Menu

#3155 imm: make delimiter of multiple attribute value from immlist configurable

5.20.05
fixed
None
enhancement
imm
tools
major
False
2020-03-02
2020-02-17
No

This ticket is to make the delimiter from immlist format for multiple attribute value by adding an option -d char, --delimiter=char. The delimiter value must be a single character.

e.g: here is the legacy output

$ immlist dn=1
macAddress        SA_STRING_T  x1:x2:x3:x4 x1:x2:x3:x4
$ immlist -a macAddress dn=1
macAddress=x1:x2:x3:x4:x1:x2:x3:x4

e.g: here is the output with the new option

$ immlist -d '|' dn=1
macAddress         SA_STRING_T  x1:x2:x3:x4|x1:x2:x3:x4
$ immlist -d '|' -a macAddress dn=1
macAddress=x1:x2:x3:x4|x1:x2:x3:x4

Related

Tickets: #3154
Wiki: ChangeLog-5.20.05
Wiki: NEWS-5.20.05

Discussion

  • Chau Hoang Phuc

    Chau Hoang Phuc - 2020-02-25
    • summary: imm: make delimiter of muliple attribute value from immlist configurable --> imm: make delimiter of multiple attribute value from immlist configurable
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2020-02-28
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -This ticket is to make the delimiter from immlist format for multiple attribute value by adding an option `-d string, --delimiter=string`. The delimiter value can be a character or a string; 
    +This ticket is to make the delimiter from immlist format for multiple attribute value by adding an option `-d char, --delimiter=char`. The delimiter value must be a single character.
    
     e.g: here is the legacy output
     ~~~
    @@ -18,6 +18,6 @@
     ~~~                                    
    
     ~~~
    -$ immlist -d 'abc' -a macAddress dn=1
    -macAddress=x1:x2:x3:x4abcx1:x2:x3:x4
    +$ immlist -d '|' -a macAddress dn=1
    +macAddress=x1:x2:x3:x4|x1:x2:x3:x4
     ~~~
    
     
  • Chau Hoang Phuc

    Chau Hoang Phuc - 2020-03-02
    • status: unassigned --> fixed
    • assigned_to: Chau Hoang Phuc
     
  • Chau Hoang Phuc

    Chau Hoang Phuc - 2020-03-02

    commit c906b0c97cf085d6f5ada8ad652ecd2fabe3afa3 (HEAD -> develop, origin/develop)
    Author: phuc.h.chau phuc.h.chau@dektech.com.au
    Date: Fri Feb 28 11:34:31 2020 +0700

    imm: imm_list tool add new option --delimiter [#3155]
    
    Make delimiter of multiple attribute value from immlist configurable
    Update usage --pretty-print does not work  with option -a and -c
    
     

Log in to post a comment.