blob: 80b6ab00de1cf3b67fc5f4e8b2c10999498b869f [file] [log] [blame]
janani b23ccc312016-07-14 19:35:22 +05301module ietf-network {
2 yang-version 1;
3 namespace "urn:ietf:params:xml:ns:yang:ietf-network";
4 prefix nd;
5
6 import ietf-inet-types {
7 prefix inet;
8 }
9 typedef node-id {
10 type inet:uri;
11 description
12 "Identifier for a node.";
13 }
14
15 leaf xyz {
16 type string;
17 }
18 typedef network-id {
19 type inet:uri;
20 description
21 "Identifier for a network.";
22 }
23 grouping network-ref {
24 description
25 "Contains the information necessary to reference a network,
26 for example an underlay network.";
27 leaf network-ref {
28 type leafref {
29 path "/nd:xyz";
30 require-instance false;
31 }
32 description
33 "Used to reference a network, for example an underlay
34 network.";
35 }
36 }
37 }