2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
12 namespace "urn:opendaylight:groupbasedpolicy:forwarding";
15 import gbp-common { prefix gbp-common; revision-date 2014-04-21; }
17 revision "2016-04-27" {
22 identity address-type {
23 description "Address type used in endoints.";
26 identity network-domain {
27 description "Basic forwarding entity";
30 identity context-type {
31 description "Type of context.";
35 typedef address-type-ref {
36 description "Reference to address type.";
42 typedef network-domain-ref {
43 description "Reference to network domain.";
49 typedef context-type-ref {
50 description "Reference to context type.";
56 grouping network-domain-key {
57 leaf network-domain-type {
58 type network-domain-ref;
61 leaf network-domain-id {
62 type gbp-common:network-domain-id;
67 grouping context-key {
69 type context-type-ref;
73 type gbp-common:context-id;
78 grouping has-address-type {
80 type address-type-ref;
85 grouping forwarding-with-tenant-fields {
87 type gbp-common:tenant-id;
89 "The tenant with which forwarding-context is associated";
92 list forwarding-context {
93 key "context-type context-id";
96 uses has-address-type;
102 list network-domain {
103 key "network-domain-type network-domain-id";
104 uses network-domain-key;
110 description "Network domain can be augmented with further information.";
114 container forwarding {
115 list forwarding-by-tenant {
117 uses forwarding-with-tenant-fields;