Added revisions into imports in yang
[groupbasedpolicy.git] / neutron-mapper / src / main / yang / mapper.yang
1 module neutron-mapper {
2     yang-version 1;
3
4     namespace "urn:opendaylight:groupbasedpolicy:neutron-mapper";
5     prefix "gbp-neutron-mapper";
6
7     import gbp-common {prefix gbp-common;}
8     import endpoint {prefix gbp-endpoint;}
9     import ietf-inet-types {
10         prefix inet;
11         revision-date 2010-09-24;
12     }
13
14     description 
15         "This module defines the mapping model between Neutron IDs and GBP IDs. 
16         These mappings are used just internaly and are NOT EXPORTED.";
17
18     revision "2015-02-23" {
19         description
20             "Initial revision.";
21     }
22
23     grouping tenant-id-fields {
24         leaf tenant-id {
25                 description "A unique ID for the tenant";
26                 mandatory true;
27                 type gbp-common:tenant-id;
28         }
29     }
30
31     container mappings {
32         config false;
33         container network-mappings {
34             list network-mapping {
35                 key network-id;
36                 leaf network-id {
37                     description "A unique ID for the neutron network == gbp l2-flood-domain";
38                     type gbp-common:unique-id;
39                 }
40                 leaf l2-bridge-domain-id {
41                     description "A unique ID of l2-bridge-domain generated for neutron network";
42                     type gbp-common:l2-bridge-domain-id;
43                 }
44                 leaf l3-context-id {
45                     description "A unique ID of l3-context generated for neutron network";
46                     type gbp-common:l3-context-id;
47                 }
48             }
49         }
50     }
51
52 }