janani b | ebb143d | 2016-07-14 19:35:22 +0530 | [diff] [blame] | 1 | module SelfResolutionWhenLeafrefInModuleReferToGroupingWithInputInRpc { |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 2 | yang-version 1; |
| 3 | namespace "urn:ietf:params:xml:ns:yang:ietf-network"; |
| 4 | prefix nd; |
| 5 | rpc networks { |
| 6 | description |
| 7 | "Serves as top-level container for a list of networks."; |
| 8 | grouping input { |
| 9 | leaf network-id { |
| 10 | type string; |
| 11 | description |
| 12 | "Identifies a network."; |
| 13 | } |
| 14 | } |
| 15 | input { |
| 16 | leaf network-id { |
| 17 | type uint8; |
| 18 | description |
| 19 | "Identifies a network."; |
| 20 | } |
| 21 | } |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 22 | } |
| 23 | leaf network-ref { |
| 24 | type leafref { |
| 25 | path "/networks/input/network-id"; |
| 26 | } |
| 27 | } |
janani b | ebb143d | 2016-07-14 19:35:22 +0530 | [diff] [blame] | 28 | } |