janani b | e18b534 | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 1 | module ietf-network { |
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 | input { | ||||
9 | leaf-list network-id { | ||||
10 | type network-ref; | ||||
11 | description | ||||
12 | "Identifies a network."; | ||||
13 | } | ||||
14 | leaf id { | ||||
15 | type uint8; | ||||
16 | } | ||||
17 | } | ||||
18 | output { | ||||
19 | } | ||||
20 | } | ||||
21 | typedef network-ref { | ||||
22 | type leafref { | ||||
23 | path "/networks/input/id"; | ||||
24 | } | ||||
25 | } | ||||
26 | } |