7fe9e7419747238e763e0c86e8f15c97b28354a4
[mdsal.git] / code-generator / binding-generator-impl / src / test / resources / augment-relative-xpath-models / abstract-topology@2013-02-08.yang
1 module abstract-topology {
2     yang-version 1;
3     namespace "urn:model:abstract:topology";
4     prefix "tp";
5
6     revision "2013-02-08" {
7     }
8
9     typedef node-id-ref {
10         type leafref {
11             path "/tp:topology/tp:network-nodes/tp:network-node/tp:node-id";
12         }
13     }
14
15     typedef link-id-ref {
16         type leafref {
17             path "/tp:topology/tp:network-links/tp:network-link/tp:link-id";
18         }
19     }
20
21     typedef uri {
22         type string;
23     }
24
25     container topology {
26
27         leaf topology-id {
28             type uri;
29         }
30
31         container network-nodes {
32             list network-node {
33                 key "node-id";
34
35                 leaf node-id {
36                     type uri;
37                 }
38
39                 container attributes {
40                 }
41             }
42         }
43
44         container network-links {
45             list network-link {
46                 key "link-id";
47
48                 leaf link-id {
49                     type uri;
50                     description "";
51                 }
52
53                 container source-node {
54                     leaf id {
55                         type node-id-ref;
56                     }
57                 }
58
59                 container destination-node {
60                     leaf id {
61                         type node-id-ref;
62                     }
63                 }
64
65                 container attributes {
66                 }
67             }
68         }
69     }
70
71 }