janani b | ebb143d | 2016-07-14 19:35:22 +0530 | [diff] [blame^] | 1 | module LeafrefInGroupingOfModule1 { |
| 2 | yang-version 1; |
| 3 | namespace "onos-yang-19:level1:newlevel"; |
| 4 | prefix test2; |
| 5 | description "leaf scenario"; |
| 6 | container networks { |
| 7 | list network { |
| 8 | key "network-id"; |
| 9 | description |
| 10 | "Describes a network. |
| 11 | A network typically contains an inventory of nodes, |
| 12 | topological information (augmented through |
| 13 | network-topology model), as well as layering |
| 14 | information."; |
| 15 | container network-types { |
| 16 | description |
| 17 | "Serves as an augmentation target. |
| 18 | The network type is indicated through corresponding |
| 19 | presence containers augmented into this container."; |
| 20 | } |
| 21 | leaf network-id { |
| 22 | type string; |
| 23 | description |
| 24 | "Identifies a network."; |
| 25 | } |
| 26 | } |
| 27 | leaf network-ip { |
| 28 | type uint8; |
| 29 | description |
| 30 | "Identifies a network."; |
| 31 | } |
| 32 | } |
| 33 | grouping network-ref { |
| 34 | leaf network-ref { |
| 35 | type leafref { |
| 36 | path "/test2:networks/test2:network/test2:network-id"; |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | } |