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.