ConfD User Community

How to use 'extended' in CLI pipe?


#1

I tried to use the ‘extended’ in CLI pipe, but there is internal error.

test# show running-config | ?
Possible completions:
    extended        Display referring entries

A list is defined in test.yang.

module test{
  namespace "http://test/test";
  prefix test;

  import ietf-yang-types {
    prefix yang;
  }

    list test-list {
       key "list-name";
       leaf list-name {
          type string;
       }
       leaf list-value {
          type string;
       }
    }
}

The I define a leaf in test-ref.yang to refer to the list-name of test-list in test.yang.

module test-ref{
  namespace "http://test/test-ref";
  prefix testref;

  import ietf-yang-types {
    prefix yang;
  }
  import test {
    prefix test;
  }

    container test-ref-container {
       leaf ref-name {
          type leafref {
             path "/test:test-list/test:list-name";
          }
       }
       leaf ref-value {
          type string;
       }
    }
}

I configured test-list, and configure the ref-name refer to the list-name.

testbed# config
Entering configuration mode terminal
testbed(config)# test-list ?
Possible completions:
  <list-name:string>  range
testbed(config)# test-list list1 list-value value1
testbed(config-test-list-list1)# commit
Commit complete.
testbed(config-test-list-list1)# exit
testbed(config)# test-ref-container ?
Possible completions:
  ref-name  ref-value
testbed(config)# test-ref-container ref-name ?
Possible completions:
  list1
testbed(config)# test-ref-container ref-name list1 ?
Possible completions:
  ref-value  <cr>
testbed(config)# test-ref-container ref-name list1 ref-value ref1
testbed(config)# commit
Commit complete.

Then show running configuration as below.

testbed# show running-config 
test-list list1
 list-value value1
!
test-ref-container ref-name list1
test-ref-container ref-value ref1

testbed# show running-config test-list 
test-list list1
 list-value value1
!

Here I tried to use the pipe ‘extended’, there is “Error:internal error”. But there is nothing being printed in confd error log, confd log and devel log.

testbed# show running-config test-list | extended
test-list list1
 list-value value1
!
Error: internal error

So how should I use the pipe ‘extended’? Could you give an example? Thanks.


#2

Hello,

Thanks for example. I have reproduced the issue. This may be issue in CLI/ConfD processing. I will create RT ticket.


#3

Response from RT ticket is that issue was fixed in ConfD 6.4.1.


#4

I see same issue in Confd 6.4.3


#5

Hi @mnovak,
Can you please confirm whether it is fixed in 6.4.3 version


#6

I see same issue in ConfD 7.1, so I believe it is not fixed yet. The ticket said it was fixed in 6.4.1. I have reopened ticket.