janani b | 05614f1 | 2016-10-04 12:55:43 +0530 | [diff] [blame] | 1 | module 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 gupta | eff184b | 2016-11-24 12:43:49 +0530 | [diff] [blame] | 41 | } |