blob: 990bf55803a7ec985c5bae461e53b85e3c6e4a21 [file] [log] [blame]
janani b05614f12016-10-04 12:55:43 +05301module YtbAugmentFromAnotherFile {
2 yang-version 1;
3 namespace "yms:test:ytb:augment:from:another:file";
4 prefix "sch";
5 import yms-ietf-network {
6 prefix nd;
7 }
8 revision "2016-08-26";
9
10 augment "/nd:networks/nd:network/nd:node" {
11 list termination-point {
12 key "tp-id";
13 leaf tp-id {
14 type string;
15 }
16 list supporting-termination-point {
17 key "network-ref node-ref tp-ref";
18 leaf network-ref {
19 type leafref {
20 path "../../../nd:supporting-node/nd:network-ref";
21 require-instance false;
22 }
23 }
24 leaf node-ref {
25 type leafref {
26 path "../../../nd:supporting-node/nd:node-ref";
27 require-instance false;
28 }
29 }
30 leaf tp-ref {
31 type leafref {
32 path "/nd:networks/nd:network[nd:network-id=current()/"+
33 "../network-ref]/nd:node[nd:node-id=current()/../"+
34 "node-ref]/termination-point/tp-id";
35 require-instance false;
36 }
37 }
38 }
39 }
40 }
sonu guptaeff184b2016-11-24 12:43:49 +053041}