File tree 5 files changed +58
-1
lines changed
5 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 1
- test : test1 test2 test3 test4 test5 test6 test7
1
+ PYANG := $(or $(PYANG ) , pyang)
2
+
3
+ test : test1 test2 test3 test4 test5 test6 test7 test8 test9 test10
2
4
3
5
test1 :
4
6
$(PYANG ) -f tree x.yang --tree-line-length 10 | diff x.tree.10.expect -
25
27
26
28
test8 :
27
29
$(PYANG ) -f tree aug.yang | diff aug.tree.expect -
30
+
31
+ test9 :
32
+ $(PYANG ) -f tree feature.yang | diff feature.tree.expect -
33
+
34
+ test10 :
35
+ $(PYANG ) -f tree -F feature: feature.yang | diff feature-pruned.tree.expect -
Original file line number Diff line number Diff line change
1
+ module: aug
2
+
3
+ augment /parent:parent-container:
4
+ +--rw test-list* [test-key]
5
+ +--rw test-key string
6
+ +--rw dummy? uint16
7
+ augment /parent:parent-container-2:
8
+ +--rw test-list* [test-key]
9
+ +--rw test-key string
10
+ +--rw dummy? uint16
Original file line number Diff line number Diff line change
1
+ module: feature
2
+ +--rw root
3
+
4
+ augment /if:interfaces/if:interface:
Original file line number Diff line number Diff line change
1
+ module: feature
2
+ +--rw root
3
+ +--rw foo? string {has-leaf-foo}?
4
+
5
+ augment /if:interfaces/if:interface:
6
+ +--rw foo? string {has-leaf-foo}?
Original file line number Diff line number Diff line change
1
+ module feature {
2
+ yang-version 1.1 ;
3
+ namespace "urn:feature" ;
4
+ prefix feature ;
5
+
6
+ import ietf-interfaces {
7
+ prefix if;
8
+ }
9
+
10
+ feature has-leaf-foo;
11
+
12
+ grouping common {
13
+ leaf foo {
14
+ if-feature has-leaf-foo;
15
+ type string ;
16
+ }
17
+ }
18
+
19
+ container root {
20
+ }
21
+
22
+ augment /root {
23
+ uses common;
24
+ }
25
+
26
+ augment /if:interfaces/if:interface {
27
+ uses common;
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments