janani b | 0e4e8ae | 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 | container networks { | ||||
6 | description | ||||
7 | "Serves as top-level container for a list of networks."; | ||||
8 | leaf network-id { | ||||
9 | type leafref { | ||||
10 | path "/status/current"; | ||||
11 | } | ||||
12 | description | ||||
13 | "Identifies a network."; | ||||
14 | } | ||||
15 | } | ||||
16 | container status { | ||||
17 | leaf current { | ||||
18 | type uint8; | ||||
19 | } | ||||
20 | } | ||||
21 | leaf network-ref { | ||||
22 | type leafref { | ||||
23 | path "/networks/network-id"; | ||||
24 | } | ||||
25 | } | ||||
26 | } |