e972b38ba113669dc93e2de0ff791d76bc31e629
[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 {prefix inet;}
10
11     description 
12         "This module defines the mapping model between Neutron IDs and GBP IDs. 
13         These mappings are used just internaly and are NOT EXPORTED.";
14
15     revision "2015-02-23" {
16         description
17             "Initial revision.";
18     }
19
20     grouping tenant-id-fields {
21         leaf tenant-id {
22                 description "A unique ID for the tenant";
23                 mandatory true;
24                 type gbp-common:tenant-id;
25         }
26     }
27
28     container mappings {
29         config false;
30         container network-mappings {
31             list network-mapping {
32                 key network-id;
33                 leaf network-id {
34                     description "A unique ID for the neutron network == gbp l2-flood-domain";
35                     type gbp-common:unique-id;
36                 }
37                 leaf l2-bridge-domain-id {
38                     description "A unique ID of l2-bridge-domain generated for neutron network";
39                     type gbp-common:l2-bridge-domain-id;
40                 }
41                 leaf l3-context-id {
42                     description "A unique ID of l3-context generated for neutron network";
43                     type gbp-common:l3-context-id;
44                 }
45             }
46         }
47     }
48
49 }