1 module neutron-mapper {
4 namespace "urn:opendaylight:groupbasedpolicy:neutron-mapper";
5 prefix "gbp-neutron-mapper";
7 import gbp-common {prefix gbp-common;}
8 import endpoint {prefix gbp-endpoint;}
9 import ietf-inet-types {prefix inet;}
12 "This module defines the mapping model between Neutron IDs and GBP IDs.";
14 revision "2015-02-23" {
19 grouping tenant-id-fields {
21 description "A unique ID for the tenant";
23 type gbp-common:tenant-id;
27 grouping endpoint-group-pair-fields {
28 leaf provider-epg-id {
29 type gbp-common:endpoint-group-id;
31 leaf consumer-epg-id {
32 type gbp-common:endpoint-group-id;
35 type gbp-common:contract-id;
41 container network-mappings {
42 list network-mapping {
45 description "A unique ID for the neutron network == gbp l2-flood-domain";
46 type gbp-common:unique-id;
48 leaf l2-bridge-domain-id {
49 description "A unique ID of l2-bridge-domain generated for neutron network";
50 type gbp-common:l2-bridge-domain-id;
53 description "A unique ID of l3-context generated for neutron network";
54 type gbp-common:l3-context-id;
58 container endpoint-group-pair-to-contract-mappings {
59 list endpoint-group-pair-to-contract-mapping {
60 key "provider-epg-id consumer-epg-id";
61 uses endpoint-group-pair-fields;