c101b5c26366c2bedeca8ab63a63ac501ca0c54c
[honeycomb.git] / vpp-common / naming-context-api / src / main / yang / naming-context.yang
1 module naming-context {
2     yang-version 1;
3     namespace "urn:honeycomb:params:xml:ns:yang:naming:context";
4     prefix "nc";
5
6     description
7         "This module contains data definition for naming mapping context";
8
9     revision "2016-05-13" {
10         description
11             "Initial revision.";
12     }
13
14     container contexts {
15         config false;
16         // context data
17
18         list naming-context {
19
20             key "name";
21
22             leaf name {
23                 type string;
24             }
25
26             container mappings {
27                 list mapping {
28
29                     key "name";
30                     unique "index";
31
32                     leaf name {
33                         type string;
34                     }
35
36                     leaf index {
37                         type int32;
38                     }
39                 }
40             }
41         }
42     }
43
44 }