Skip to content

Commit fa30809

Browse files
author
Alexander Schüssler
committed
[ENG-33217, cli] Add documentation for ignore-display-when pipe command with examples
1 parent f3c8520 commit fa30809

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

operation-and-usage/cli/introduction-to-nso-cli.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,37 @@ admin@ncs# show running-config hosts | display keypath
808808
/hosts/host{host2}/numberOfServers 0
809809
```
810810
811+
The `ignore-display-when` pipe command is intended to expose data nodes that have been hidden by the `tailf:display-when` expression. This pipe command can also be used in combination with various display targets.
812+
813+
The following example is for a leaf `hidden-empty-leaf` that has a `tailf:display-when` expression that is evaluated to `false` still can be forced to get exposed in the CLI by use of the `ignore-display-when` pipe command:
814+
815+
```bash
816+
admin@ncs(config)# show configuration
817+
devices device foo0
818+
config
819+
foo:bar
820+
!
821+
!
822+
823+
admin@ncs(config)# show configuration | ignore-display-when
824+
devices device foo0
825+
config
826+
foo:bar hidden-empty-leaf
827+
!
828+
!
829+
830+
admin@ncs(config)# show configuration | ignore-display-when | display curly-braces
831+
devices {
832+
device foo0 {
833+
config {
834+
+ foo:bar {
835+
+ hidden-empty-leaf;
836+
+ }
837+
}
838+
}
839+
}
840+
```
841+
811842
## Range Expressions <a href="#d5e1612" id="d5e1612"></a>
812843
813844
To modify a range of instances, at the same time, use range expressions or display a specific range of instances.

0 commit comments

Comments
 (0)